Changeset 3200971
- Timestamp:
- 12/02/2024 02:11:33 PM (14 months ago)
- Location:
- wp-search-insights
- Files:
-
- 92 added
- 2 edited
-
tags/1.4.0 (added)
-
tags/1.4.0/assets (added)
-
tags/1.4.0/assets/blueprints (added)
-
tags/1.4.0/assets/blueprints/blueprint.json (added)
-
tags/1.4.0/assets/css (added)
-
tags/1.4.0/assets/css/style.css (added)
-
tags/1.4.0/assets/css/style.css.map (added)
-
tags/1.4.0/assets/css/style.less (added)
-
tags/1.4.0/assets/css/style.min.css (added)
-
tags/1.4.0/assets/datepicker (added)
-
tags/1.4.0/assets/datepicker/datepicker.css (added)
-
tags/1.4.0/assets/datepicker/datepicker.js (added)
-
tags/1.4.0/assets/datepicker/datepicker.min.css (added)
-
tags/1.4.0/assets/datepicker/moment.js (added)
-
tags/1.4.0/assets/images (added)
-
tags/1.4.0/assets/images/logo.png (added)
-
tags/1.4.0/assets/images/noname_logo.png (added)
-
tags/1.4.0/assets/images/sort_asc.png (added)
-
tags/1.4.0/assets/images/sort_asc.svg (added)
-
tags/1.4.0/assets/images/sort_both.png (added)
-
tags/1.4.0/assets/images/sort_both.svg (added)
-
tags/1.4.0/assets/images/sort_desc.png (added)
-
tags/1.4.0/assets/images/sort_desc.svg (added)
-
tags/1.4.0/assets/js (added)
-
tags/1.4.0/assets/js/dataTables.conditionalPaging.js (added)
-
tags/1.4.0/assets/js/datatables.min.js (added)
-
tags/1.4.0/assets/js/frontend.js (added)
-
tags/1.4.0/assets/js/frontend.min.js (added)
-
tags/1.4.0/assets/js/scripts.js (added)
-
tags/1.4.0/assets/js/scripts.min.js (added)
-
tags/1.4.0/class-admin.php (added)
-
tags/1.4.0/class-export.php (added)
-
tags/1.4.0/class-help.php (added)
-
tags/1.4.0/class-review.php (added)
-
tags/1.4.0/class-search.php (added)
-
tags/1.4.0/cron.php (added)
-
tags/1.4.0/dashboard_tabs.php (added)
-
tags/1.4.0/grid (added)
-
tags/1.4.0/grid/css (added)
-
tags/1.4.0/grid/css/muuri.css (added)
-
tags/1.4.0/grid/css/muuri.css.map (added)
-
tags/1.4.0/grid/css/muuri.less (added)
-
tags/1.4.0/grid/css/muuri.min.css (added)
-
tags/1.4.0/grid/grid-enqueue.php (added)
-
tags/1.4.0/grid/grid.php (added)
-
tags/1.4.0/grid/js (added)
-
tags/1.4.0/grid/js/grid.js (added)
-
tags/1.4.0/grid/js/grid.min.js (added)
-
tags/1.4.0/grid/js/muuri.js (added)
-
tags/1.4.0/grid/js/muuri.min.js (added)
-
tags/1.4.0/grid/templates (added)
-
tags/1.4.0/grid/templates/grid-container.php (added)
-
tags/1.4.0/grid/templates/grid-element.php (added)
-
tags/1.4.0/index.php (added)
-
tags/1.4.0/integrations (added)
-
tags/1.4.0/integrations/bbpress.php (added)
-
tags/1.4.0/integrations/integrations.php (added)
-
tags/1.4.0/integrations/toolset.php (added)
-
tags/1.4.0/readme.txt (added)
-
tags/1.4.0/shepherd (added)
-
tags/1.4.0/shepherd/css (added)
-
tags/1.4.0/shepherd/css/shepherd-theme-arrows.css (added)
-
tags/1.4.0/shepherd/css/shepherd-theme-arrows.min.css (added)
-
tags/1.4.0/shepherd/css/wpsi-tour.css (added)
-
tags/1.4.0/shepherd/css/wpsi-tour.css.map (added)
-
tags/1.4.0/shepherd/css/wpsi-tour.less (added)
-
tags/1.4.0/shepherd/css/wpsi-tour.min.css (added)
-
tags/1.4.0/shepherd/js (added)
-
tags/1.4.0/shepherd/js/wpsi-tour.js (added)
-
tags/1.4.0/shepherd/js/wpsi-tour.min.js (added)
-
tags/1.4.0/shepherd/shepherd (added)
-
tags/1.4.0/shepherd/shepherd/tour.js (added)
-
tags/1.4.0/shepherd/tether (added)
-
tags/1.4.0/shepherd/tether-shepherd (added)
-
tags/1.4.0/shepherd/tether-shepherd/LICENSE (added)
-
tags/1.4.0/shepherd/tether-shepherd/shepherd.js (added)
-
tags/1.4.0/shepherd/tether-shepherd/shepherd.min.js (added)
-
tags/1.4.0/shepherd/tether-shepherd/tether.js (added)
-
tags/1.4.0/shepherd/tether-shepherd/tether.min.js (added)
-
tags/1.4.0/shepherd/tether/LICENSE (added)
-
tags/1.4.0/shepherd/tether/tether.js (added)
-
tags/1.4.0/shepherd/tether/tether.min.js (added)
-
tags/1.4.0/shepherd/tour.php (added)
-
tags/1.4.0/templates (added)
-
tags/1.4.0/templates/dashboard-row.php (added)
-
tags/1.4.0/templates/dashboard-widget.php (added)
-
tags/1.4.0/templates/grid-dashboard-row.php (added)
-
tags/1.4.0/templates/grid-dashboard-widget.php (added)
-
tags/1.4.0/templates/tipstricks-element.php (added)
-
tags/1.4.0/uninstall.php (added)
-
tags/1.4.0/upgrade.php (added)
-
tags/1.4.0/wp-search-insights.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-search-insights.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-search-insights/trunk/readme.txt
r3199839 r3200971 5 5 Requires at least: 4.8 6 6 License: GPL2 7 Tested up to: 6. 77 Tested up to: 6.5 8 8 Requires PHP: 5.6 9 Stable tag: 1. 3.910 Gain valuable insights into your website's search performance and user behavior. Optimize your content based on real search data .9 Stable tag: 1.4.0 10 Gain valuable insights into your website's search performance and user behavior. Optimize your content based on real search data and boost engagement. 11 11 12 12 == Description == … … 25 25 26 26 == Improve Your WordPress Search Experience == 27 WP Search Insights helps you improve the WordPress earch experience in the following ways: 28 27 29 = Understand Your Users' Search Behavior = 28 30 By understanding what your users are searching for, you can optimize your website's content to better meet their needs. WP Search Insights provides you with the data you need to make informed decisions about your content strategy, ultimately leading to a better user experience and increased engagement. … … 67 69 68 70 == Changelog == 71 = 1.4.0 = 72 * Fixed a textdomain notification introduced in WordPress 6.7 73 69 74 = 1.3.9 = 70 75 * Fixed an issue with overlapping blocks on settings page which caused the save button to disappear -
wp-search-insights/trunk/wp-search-insights.php
r3063875 r3200971 3 3 * Plugin Name: WP Search Insights - Privacy-Friendly Search Analytics 4 4 * Plugin URI: https://www.wordpress.org/plugins/wp-search-insights 5 * Description: Gain valuable insights into your website's search performance and user behavior. Optimize your content based on real search data.6 * Version: 1. 3.95 * Description: WP Search Insights shows you what your users are looking for on your site, and which searches don't have results 6 * Version: 1.4.0 7 7 * Text Domain: wp-search-insights 8 8 * Domain Path: /languages 9 9 * Author: Mark Wolters 10 * Author URI: https://www.wpsi.io11 10 * Requires PHP: 7.0 12 11 * Requires at least: 4.8 12 * Author URI: https://www.wpsi.io 13 13 */ 14 14 … … 36 36 */ 37 37 if (!function_exists('wpsi_activation_check')) { 38 function wpsi_activation_check()39 {40 if (version_compare(PHP_VERSION, '5.6', '<')) {41 deactivate_plugins(plugin_basename(__FILE__));42 wp_die(__('WP Search Insights cannot be activated. The plugin requires PHP 5.6 or higher', 'wp-search-insights'));43 }38 function wpsi_activation_check() 39 { 40 if (version_compare(PHP_VERSION, '5.6', '<')) { 41 deactivate_plugins(plugin_basename(__FILE__)); 42 wp_die(__('WP Search Insights cannot be activated. The plugin requires PHP 5.6 or higher', 'wp-search-insights')); 43 } 44 44 45 global $wp_version;46 if (version_compare($wp_version, '4.6', '<')) {47 deactivate_plugins(plugin_basename(__FILE__));48 wp_die(__('WP Search Insights cannot be activated. The plugin requires WordPress 4.6 or higher', 'wp-search-insights'));49 }50 }45 global $wp_version; 46 if (version_compare($wp_version, '4.6', '<')) { 47 deactivate_plugins(plugin_basename(__FILE__)); 48 wp_die(__('WP Search Insights cannot be activated. The plugin requires WordPress 4.6 or higher', 'wp-search-insights')); 49 } 50 } 51 51 } 52 52 register_activation_hook( __FILE__, 'wpsi_activation_check' ); 53 53 54 54 if ( ! class_exists( 'WPSI' ) ) { 55 class WPSI {56 public static $instance;57 public static $search;58 public static $admin;59 public static $tour;60 public static $review;61 public static $help;62 public static $export;55 class WPSI { 56 public static $instance; 57 public static $search; 58 public static $admin; 59 public static $tour; 60 public static $review; 61 public static $help; 62 public static $export; 63 63 64 private function __construct() { 65 self::setup_constants(); 66 self::includes(); 67 self::load_translation(); 64 private function __construct() { 65 self::setup_constants(); 66 self::includes(); 68 67 69 self::$search = new search();68 self::$search = new search(); 70 69 71 if ( is_admin() ) {72 self::$review = new wpsi_review();73 self::$admin = new WPSI_ADMIN();74 self::$export = new WPSI_EXPORT();75 self::$tour = new wpsi_tour();76 self::$help = new wpsi_help();77 }70 if ( is_admin() ) { 71 self::$review = new wpsi_review(); 72 self::$admin = new WPSI_ADMIN(); 73 self::$export = new WPSI_EXPORT(); 74 self::$tour = new wpsi_tour(); 75 self::$help = new wpsi_help(); 76 } 78 77 79 self::hooks();80 }78 self::hooks(); 79 } 81 80 82 /**83 * Instantiate the class.84 *85 * @return WPSI86 * @since 1.0.087 *88 */89 public static function get_instance() {90 if ( ! isset( self::$instance )91 && ! ( self::$instance instanceof WPSI )92 ) {93 self::$instance = new self();94 }81 /** 82 * Instantiate the class. 83 * 84 * @return WPSI 85 * @since 1.0.0 86 * 87 */ 88 public static function get_instance() { 89 if ( ! isset( self::$instance ) 90 && ! ( self::$instance instanceof WPSI ) 91 ) { 92 self::$instance = new self(); 93 } 95 94 96 return self::$instance;97 }95 return self::$instance; 96 } 98 97 99 private function setup_constants() {100 define( 'wpsi_url', plugin_dir_url( __FILE__ ) );101 define( 'wpsi_path',102 trailingslashit( plugin_dir_path( __FILE__ ) ) );103 define( 'wpsi_plugin', plugin_basename( __FILE__ ) );104 define( 'wpsi_plugin_file', __FILE__ );98 private function setup_constants() { 99 define( 'wpsi_url', plugin_dir_url( __FILE__ ) ); 100 define( 'wpsi_path', 101 trailingslashit( plugin_dir_path( __FILE__ ) ) ); 102 define( 'wpsi_plugin', plugin_basename( __FILE__ ) ); 103 define( 'wpsi_plugin_file', __FILE__ ); 105 104 106 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 107 $plugin_data = get_plugin_data( __FILE__ ); 108 $debug = defined( "WP_DEBUG" ) && WP_DEBUG ? time() : ""; 109 define( 'wpsi_version', 110 $plugin_data['Version'] . $debug ); 111 } 105 define( 'wpsi_version', '1.4.0'); 106 } 112 107 113 private function includes() {114 if ( is_admin() ) {115 require_once( wpsi_path . 'upgrade.php' );116 require_once( wpsi_path . 'class-admin.php' );117 require_once( wpsi_path . 'class-export.php' );118 require_once( wpsi_path . 'dashboard_tabs.php' );119 require_once( wpsi_path . 'class-help.php' );120 require_once( wpsi_path . 'class-review.php' );121 require_once( wpsi_path . 'shepherd/tour.php' );122 require_once( wpsi_path . 'grid/grid-enqueue.php' );123 }124 require_once( wpsi_path . 'class-search.php' );125 require_once( wpsi_path . 'integrations/integrations.php' );126 }108 private function includes() { 109 if ( is_admin() ) { 110 require_once( wpsi_path . 'upgrade.php' ); 111 require_once( wpsi_path . 'class-admin.php' ); 112 require_once( wpsi_path . 'class-export.php' ); 113 require_once( wpsi_path . 'dashboard_tabs.php' ); 114 require_once( wpsi_path . 'class-help.php' ); 115 require_once( wpsi_path . 'class-review.php' ); 116 require_once( wpsi_path . 'shepherd/tour.php' ); 117 require_once( wpsi_path . 'grid/grid-enqueue.php' ); 118 } 119 require_once( wpsi_path . 'class-search.php' ); 120 require_once( wpsi_path . 'integrations/integrations.php' ); 121 } 127 122 128 /** 129 * Load plugin translations. 130 * 131 * @return void 132 * @since 1.0.0 133 * 134 */ 135 private function load_translation() { 136 load_plugin_textdomain( 'wp-search-insights', false, 137 wpsi_path . '/languages/' ); 138 } 123 /** 124 * Get directory of free plugin 125 * @return string 126 */ 139 127 140 /** 141 * Get directory of free plugin 142 * @return string 143 */ 128 public static function get_actual_directory_name() { 129 return basename( __DIR__ ); 130 } 144 131 145 public static function get_actual_directory_name() { 146 return basename( __DIR__ ); 147 } 132 private function hooks() { 148 133 149 private function hooks() { 134 } 135 } 150 136 151 } 152 } 153 154 /** 155 * Load the plugins main class. 156 */ 157 add_action( 158 'plugins_loaded', 159 function () { 160 WPSI::get_instance(); 161 }, 162 9 163 ); 137 /** 138 * Load the plugins main class. 139 */ 140 add_action( 141 'plugins_loaded', 142 function () { 143 WPSI::get_instance(); 144 }, 145 9 146 ); 164 147 } 165 148 166 149 function search_insights_activation_hook() { 167 update_option( 'wpsi_min_term_length', 0 );168 update_option( 'wpsi_max_term_length', 50 );169 update_option( 'wpsi_select_dashboard_capability', 'activate_plugins' );150 update_option( 'wpsi_min_term_length', 0 ); 151 update_option( 'wpsi_max_term_length', 50 ); 152 update_option( 'wpsi_select_dashboard_capability', 'activate_plugins' ); 170 153 update_option( 'wpsi_select_term_deletion_period', 'never' ); 171 154 } … … 175 158 176 159 function wpsi_clear_scheduled_hooks(){ 177 wp_clear_scheduled_hook( 'wpsi_every_five_minutes_hook' );160 wp_clear_scheduled_hook( 'wpsi_every_five_minutes_hook' ); 178 161 } 179 162 register_deactivation_hook( __FILE__, 'wpsi_clear_scheduled_hooks' );
Note: See TracChangeset
for help on using the changeset viewer.