diff --git a/includes/class-bsr-admin.php b/includes/class-bsr-admin.php index a9cbf00..2449cb4 100755 --- a/includes/class-bsr-admin.php +++ b/includes/class-bsr-admin.php @@ -64,13 +64,13 @@ public function enqueue_scripts( $hook ) { wp_enqueue_script( 'thickbox' ); wp_localize_script( 'better-search-replace', 'bsr_object_vars', array( - 'page_size' => get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000, - 'endpoint' => BSR_AJAX::get_endpoint(), - 'ajax_nonce' => wp_create_nonce( 'bsr_ajax_nonce' ), - 'no_search' => __( 'No search string was defined, please enter a URL or string to search for.', 'better-search-replace' ), - 'no_tables' => __( 'Please select the tables that you want to update.', 'better-search-replace' ), - 'unknown' => __( 'An error occurred processing your request. Try decreasing the "Max Page Size", or contact support.', 'better-search-replace' ), - 'processing' => __( 'Processing...', 'better-search-replace' ) + 'page_size' => get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000, + 'endpoint' => BSR_AJAX::get_endpoint(), + 'ajax_nonce' => wp_create_nonce( 'bsr_ajax_nonce' ), + 'no_search' => __( 'No search string was defined, please enter a URL or string to search for.', 'better-search-replace' ), + 'no_tables' => __( 'Please select the tables that you want to update.', 'better-search-replace' ), + 'unknown' => __( 'An error occurred processing your request. Try decreasing the "Max Page Size", or contact support.', 'better-search-replace' ), + 'processing' => __( 'Processing...', 'better-search-replace' ) ) ); } } @@ -101,7 +101,7 @@ public static function render_result() { if ( isset( $_GET['result'] ) && $result = get_transient( 'bsr_results' ) ) { - if ( isset( $result['dry_run'] ) && $result['dry_run'] === 'on' ) { + if ( isset( $result['dry_run'] ) && 'on' === $result['dry_run'] ) { $msg = sprintf( __( '

DRY RUN: %d tables were searched, %d cells were found that need to be updated, and %d changes were made.

Click here for more details, or use the form below to run the search/replace.

', 'better-search-replace' ), $result['tables'], $result['change'], @@ -159,8 +159,8 @@ public static function prefill_value( $value, $type = 'text' ) { public static function load_tables() { // Get the tables and their sizes. - $tables = BSR_DB::get_tables(); - $sizes = BSR_DB::get_sizes(); + $tables = BSR_DB::get_tables(); + $sizes = BSR_DB::get_sizes(); echo '