芝麻web文件管理V1.00
编辑当前文件:/home/dcqnetm/intedgroupnew/wp-content/plugins/better-search-replace/better-search-replace.php
. */ // If this file was called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } if ( ! function_exists( 'run_better_search_replace' ) ) { // Defines the path to the main plugin file. define( 'BSR_FILE', __FILE__ ); // Defines the path to be used for includes. define( 'BSR_PATH', plugin_dir_path( BSR_FILE ) ); // Defines the URL to the plugin. define( 'BSR_URL', plugin_dir_url( BSR_FILE ) ); // Defines the current version of the plugin. define( 'BSR_VERSION', '1.4.10' ); // Defines the name of the plugin. define( 'BSR_NAME', 'Better Search Replace' ); /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_better_search_replace() { if ( bsr_enabled_for_user() ) { /** * The core plugin class that is used to define internationalization, * dashboard-specific hooks, and public-facing site hooks. */ require BSR_PATH . 'includes/class-bsr-main.php'; $plugin = new Better_Search_Replace(); $plugin->run(); } } add_action( 'after_setup_theme', 'run_better_search_replace' ); } if ( ! function_exists( 'bsr_enabled_for_user' ) ) { /** * Is the current user allowed to use BSR? * * @return bool */ function bsr_enabled_for_user() { // Allows for overriding the capability required to run the plugin. $cap = apply_filters( 'bsr_capability', 'manage_options' ); return current_user_can( $cap ); } } if ( file_exists( BSR_PATH . 'ext/bsr-ext-functions.php' ) ) { require_once BSR_PATH . 'ext/bsr-ext-functions.php'; }