: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$( document ).ready( function () {
$( '#wp-admin-bar-delete-cache' ).on( 'click', function () {
$( '#wp-admin-bar-delete-cache' ).fadeOut( 'slow' );
action: 'ajax-delete-cache',
// send the nonce along with the request
success: function ( msg ) {
wpsc_ajax.admin == 1 && console.log( 'Deleted entire cache' );
wpsc_ajax.admin == 0 && console.log( 'Deleted cache for this page and reloading' );
window.location.reload();
complete: function ( msg ) {
$( '#wp-admin-bar-delete-cache' ).fadeIn( 'slow' );