id ) || false === strpos( $current_screen->id, 'wsrw-search-replace' ) ) { return; } $admin_asset_file = WSRW_PLUGIN_PATH . 'build/admin.asset.php'; if ( ! file_exists( $admin_asset_file ) ) { return; } $asset = require $admin_asset_file; wp_enqueue_style( 'wsrw-admin-css', WSRW_PLUGIN_URL . 'build/admin.css', null, $asset['version'] ); wp_enqueue_script( 'wsrw-admin-js', WSRW_PLUGIN_URL . 'build/admin.js', $asset['dependencies'], $asset['version'], true ); wp_localize_script( 'wsrw-admin-js', 'wsrwjs', apply_filters( 'wsrw_admin_js_data', array( 'nonce' => wp_create_nonce( 'wsrw_admin' ), 'yes' => esc_html__( 'Yes', 'search-replace-wpcode' ), 'no' => esc_html__( 'No', 'search-replace-wpcode' ), 'ok' => esc_html__( 'OK', 'search-replace-wpcode' ), 'close' => esc_html__( 'Close', 'search-replace-wpcode' ), 'error_title' => esc_html__( 'Error', 'search-replace-wpcode' ), 'unsupported_file_title' => esc_html__( 'Unsupported File Type', 'search-replace-wpcode' ), 'unsupported_file_description' => esc_html__( 'The replacement file you selected does not appear to be supported by WordPress. This may lead to unexpected issues. Please choose a different file.', 'search-replace-wpcode' ), 'please_wait' => esc_html__( 'Please Wait', 'search-replace-wpcode' ), 'upgrade_to_pro' => esc_html__( 'Upgrade to Pro', 'search-replace-wpcode' ), 'check_row_title' => esc_html__( 'Replacing individual items is a Pro feature', 'search-replace-wpcode' ), 'check_row_content' => esc_html__( 'Upgrade to Search & Replace Everything Pro today and choose exactly which rows you want to replace from the results without having to do complex queries.', 'search-replace-wpcode' ), 'check_row_url' => esc_url( wsrw_utm_url( 'https://wpcode.com/srlite/', 'search-preview', 'check-row' ) ), 'row_info_title' => esc_html__( 'Full Row Info is a Pro Feature', 'search-replace-wpcode' ), 'row_info_content' => esc_html__( 'Upgrade to Search & Replace Everything Pro today and view the full row information and easily trace back results to the original content without having to leave the admin.', 'search-replace-wpcode' ), 'row_info_url' => esc_url( wsrw_utm_url( 'https://wpcode.com/srlite/', 'search-preview', 'row-info' ) ), 'upgrade_bonus' => wpautop( wp_kses( __( 'Bonus: Search & Replace Everything Lite users get $30 off regular price, automatically applied at checkout.', 'search-replace-wpcode' ), array( 'strong' => array(), 'span' => array(), ) ) ), 'lock_icon' => wsrw_get_icon( 'lock', '22', '28', '0 0 22 28' ), 'pro_feature_title' => esc_html__( 'Replace File Extension is a Premium Feature', 'search-replace-wpcode' ), 'keep_extension_message' => esc_html__( 'Upgrade to PRO today and enable easily updating your images with different extensions (for example: .jpg to .webp) across your database. Save time and space without having to duplicate uploads.', 'search-replace-wpcode' ), 'upgrade_url' => esc_url( wsrw_utm_url( 'https://wpcode.com/srlite/', 'replace-extension', 'upgrade' ) ), 'discount_note' => wpautop( wp_kses( __( 'Search & Replace Everything Lite users get $30 off regular price, automatically applied at checkout.', 'search-replace-wpcode' ), array( 'span' => array(), ) ) ), 'purchased' => esc_html__( 'Already purchased? Click here to install Search & Replace Everything Pro', 'search-replace-wpcode' ), 'upgrade_link' => esc_url( admin_url( 'admin.php?page=wsrw-search-replace-settings' ) ), 'image_replace_error' => esc_html__( 'Images cannot be replaced with non-image files. Please select an image file.', 'search-replace-wpcode' ), ) ) ); }