Changeset 2753044
- Timestamp:
- 07/07/2022 11:46:12 AM (4 years ago)
- Location:
- searchwp-live-ajax-search
- Files:
-
- 19 deleted
- 10 edited
- 27 copied
-
tags/1.7.2 (copied) (copied from searchwp-live-ajax-search/trunk)
-
tags/1.7.2/README.md (copied) (copied from searchwp-live-ajax-search/trunk/README.md)
-
tags/1.7.2/assets/javascript/dist/script.js (copied) (copied from searchwp-live-ajax-search/trunk/assets/javascript/dist/script.js)
-
tags/1.7.2/assets/javascript/dist/script.min.js (copied) (copied from searchwp-live-ajax-search/trunk/assets/javascript/dist/script.min.js)
-
tags/1.7.2/assets/javascript/src/script.js (copied) (copied from searchwp-live-ajax-search/trunk/assets/javascript/src/script.js)
-
tags/1.7.2/assets/js (copied) (copied from searchwp-live-ajax-search/trunk/assets/js)
-
tags/1.7.2/assets/js/admin/menu.js (modified) (5 diffs)
-
tags/1.7.2/assets/js/admin/notices.js (modified) (6 diffs)
-
tags/1.7.2/assets/styles/admin (copied) (copied from searchwp-live-ajax-search/trunk/assets/styles/admin)
-
tags/1.7.2/assets/vendor (copied) (copied from searchwp-live-ajax-search/trunk/assets/vendor)
-
tags/1.7.2/direct.php (copied) (copied from searchwp-live-ajax-search/trunk/direct.php)
-
tags/1.7.2/includes/class-client.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-client.php) (1 diff)
-
tags/1.7.2/includes/class-container.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-container.php)
-
tags/1.7.2/includes/class-form.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-form.php)
-
tags/1.7.2/includes/class-install.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-install.php) (1 diff)
-
tags/1.7.2/includes/class-menu.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-menu.php) (4 diffs)
-
tags/1.7.2/includes/class-notice.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-notice.php)
-
tags/1.7.2/includes/class-plugin.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-plugin.php)
-
tags/1.7.2/includes/class-relevanssi-bridge.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-relevanssi-bridge.php)
-
tags/1.7.2/includes/class-settings-api.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-settings-api.php)
-
tags/1.7.2/includes/class-settings.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-settings.php) (1 diff)
-
tags/1.7.2/includes/class-template.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-template.php)
-
tags/1.7.2/includes/class-utils.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-utils.php)
-
tags/1.7.2/includes/class-widget.php (copied) (copied from searchwp-live-ajax-search/trunk/includes/class-widget.php)
-
tags/1.7.2/languages/nl_NL.mo (deleted)
-
tags/1.7.2/languages/nl_NL.po (deleted)
-
tags/1.7.2/languages/searchwp-live-ajax-search.pot (copied) (copied from searchwp-live-ajax-search/trunk/languages/searchwp-live-ajax-search.pot)
-
tags/1.7.2/languages/swplas-de_DE.mo (deleted)
-
tags/1.7.2/languages/swplas-de_DE.po (deleted)
-
tags/1.7.2/languages/swplas-en_US.mo (deleted)
-
tags/1.7.2/languages/swplas-en_US.po (deleted)
-
tags/1.7.2/languages/swplas-fa_IR.mo (deleted)
-
tags/1.7.2/languages/swplas-fa_IR.po (deleted)
-
tags/1.7.2/languages/swplas-fr_CA.mo (deleted)
-
tags/1.7.2/languages/swplas-fr_CA.po (deleted)
-
tags/1.7.2/languages/swplas-fr_FR.mo (deleted)
-
tags/1.7.2/languages/swplas-fr_FR.po (deleted)
-
tags/1.7.2/languages/swplas-nl_NL.mo (deleted)
-
tags/1.7.2/languages/swplas-nl_NL.po (deleted)
-
tags/1.7.2/languages/swplas-pl_PL.mo (deleted)
-
tags/1.7.2/languages/swplas-pl_PL.po (deleted)
-
tags/1.7.2/languages/swplas-sr_RS.mo (deleted)
-
tags/1.7.2/languages/swplas-sr_RS.po (deleted)
-
tags/1.7.2/languages/swplas.pot (deleted)
-
tags/1.7.2/package-lock.json (copied) (copied from searchwp-live-ajax-search/trunk/package-lock.json)
-
tags/1.7.2/package.json (copied) (copied from searchwp-live-ajax-search/trunk/package.json)
-
tags/1.7.2/readme.txt (copied) (copied from searchwp-live-ajax-search/trunk/readme.txt) (2 diffs)
-
tags/1.7.2/searchwp-live-ajax-search.php (copied) (copied from searchwp-live-ajax-search/trunk/searchwp-live-ajax-search.php) (2 diffs)
-
trunk/assets/js/admin/menu.js (modified) (5 diffs)
-
trunk/assets/js/admin/notices.js (modified) (6 diffs)
-
trunk/includes/class-client.php (modified) (1 diff)
-
trunk/includes/class-install.php (modified) (1 diff)
-
trunk/includes/class-menu.php (modified) (4 diffs)
-
trunk/includes/class-settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/searchwp-live-ajax-search.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
searchwp-live-ajax-search/tags/1.7.2/assets/js/admin/menu.js
r2748631 r2753044 2 2 * SearchWP Live Search Admin Menu. 3 3 * 4 * @since {VERSION}4 * @since 1.7.0 5 5 */ 6 6 … … 12 12 * Public functions and properties. 13 13 * 14 * @since {VERSION}14 * @since 1.7.0 15 15 * 16 16 * @type {object} … … 21 21 * Start the engine. 22 22 * 23 * @since {VERSION}23 * @since 1.7.0 24 24 */ 25 25 init: function() { … … 31 31 * Document ready. 32 32 * 33 * @since {VERSION}33 * @since 1.7.0 34 34 */ 35 35 ready: function() { … … 41 41 * Add 'target="_blank"' and 'rel="noopener noreferrer"' to the "Upgrade to Pro" menu link. 42 42 * 43 * @since {VERSION}43 * @since 1.7.0 44 44 */ 45 45 addParamsToUpgradeLink: function() { -
searchwp-live-ajax-search/tags/1.7.2/assets/js/admin/notices.js
r2748631 r2753044 4 4 * SearchWP Live Search Dismissible Notices. 5 5 * 6 * @since {VERSION}6 * @since 1.7.0 7 7 */ 8 8 … … 14 14 * Public functions and properties. 15 15 * 16 * @since {VERSION}16 * @since 1.7.0 17 17 * 18 18 * @type {object} … … 23 23 * Start the engine. 24 24 * 25 * @since {VERSION}25 * @since 1.7.0 26 26 */ 27 27 init: function() { … … 33 33 * Document ready. 34 34 * 35 * @since {VERSION}35 * @since 1.7.0 36 36 */ 37 37 ready: function() { … … 43 43 * Dismissible notices events. 44 44 * 45 * @since {VERSION}45 * @since 1.7.0 46 46 */ 47 47 events: function() { … … 57 57 * Dismiss notice event handler. 58 58 * 59 * @since {VERSION}59 * @since 1.7.0 60 60 * 61 61 * @param {object} e Event object. -
searchwp-live-ajax-search/tags/1.7.2/includes/class-client.php
r2748630 r2753044 293 293 * @return int $per_page the number of items to display 294 294 */ 295 p rivatefunction get_posts_per_page() {295 public function get_posts_per_page() { 296 296 297 297 // The default is 7 posts, but that can be filtered. -
searchwp-live-ajax-search/tags/1.7.2/includes/class-install.php
r2748631 r2753044 116 116 117 117 // Initial install. 118 wp_safe_redirect( admin_url( ' index.php?page=searchwp-live-search' ) );118 wp_safe_redirect( admin_url( 'admin.php?page=searchwp-live-search' ) ); 119 119 exit; 120 120 } -
searchwp-live-ajax-search/tags/1.7.2/includes/class-menu.php
r2748631 r2753044 33 33 } else { 34 34 add_action( 'admin_menu', [ $this, 'add_menus_searchwp_disabled' ] ); 35 add_action( 'admin_menu', [ $this, 'add_upgrade_pro_link_searchwp_disabled' ], 100 ); 35 36 add_action( 'admin_head', [ $this, 'style_upgrade_pro_link_searchwp_disabled' ] ); 36 37 } … … 86 87 [ $settings, 'page_searchwp_disabled' ] 87 88 ); 89 } 88 90 89 add_submenu_page( 90 self::MENU_SLUG, 91 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 92 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 93 SearchWP_Live_Search_Settings_Api::CAPABILITY, 94 esc_url( 'https://searchwp.com/?utm_source=WordPress&utm_medium=Admin+Menu+Upgrade+Link&utm_campaign=Live+Ajax+Search&utm_content=Upgrade+to+Pro' ) 95 ); 91 /** 92 * Add "Upgrade to Pro" menu link if SearchWP is disabled. 93 * 94 * @since {VERSION} 95 */ 96 public function add_upgrade_pro_link_searchwp_disabled() { 97 98 add_submenu_page( 99 self::MENU_SLUG, 100 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 101 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 102 SearchWP_Live_Search_Settings_Api::CAPABILITY, 103 esc_url( 'https://searchwp.com/?utm_source=WordPress&utm_medium=Admin+Menu+Upgrade+Link&utm_campaign=Live+Ajax+Search&utm_content=Upgrade+to+Pro' ) 104 ); 96 105 97 106 // Enqueue the menu script only if the menu is registered. 98 107 $this->enqueues_searchwp_disabled(); 99 }108 } 100 109 101 110 /** … … 124 133 global $submenu; 125 134 126 // The "Upgrade to Pro" is [1] submenu item. 127 if ( ! isset( $submenu['searchwp-live-search'][1] ) ) { 135 if ( ! isset( $submenu[ self::MENU_SLUG ] ) ) { 128 136 return; 129 137 } 130 138 139 $menu_keys = array_keys( $submenu[ self::MENU_SLUG ] ); 140 $upgrade_item_key = array_pop( $menu_keys ); 141 131 142 // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes. 132 if ( strpos( $submenu[ 'searchwp-live-search'][1][2], 'https://searchwp.com/' ) !== 0 ) {143 if ( strpos( $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][2], 'https://searchwp.com/' ) !== 0 ) { 133 144 return; 134 145 } … … 136 147 // Prepare a HTML class. 137 148 // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited 138 if ( isset( $submenu[ 'searchwp-live-search'][1][4] ) ) {139 $submenu[ 'searchwp-live-search'][1][4] .= ' searchwp-sidebar-upgrade-pro';149 if ( isset( $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][4] ) ) { 150 $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][4] .= ' searchwp-sidebar-upgrade-pro'; 140 151 } else { 141 $submenu[ 'searchwp-live-search'][1][] = 'searchwp-sidebar-upgrade-pro';152 $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][] = 'searchwp-sidebar-upgrade-pro'; 142 153 } 143 154 // phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited -
searchwp-live-ajax-search/tags/1.7.2/includes/class-settings.php
r2748631 r2753044 465 465 ] 466 466 ), 467 '<strong>SearchWP </strong>',467 '<strong>SearchWP Live Ajax Search</strong>', 468 468 $url, 469 469 $url -
searchwp-live-ajax-search/tags/1.7.2/readme.txt
r2748884 r2753044 4 4 Requires at least: 3.9 5 5 Tested up to: 5.9.1 6 Stable tag: 1.7. 16 Stable tag: 1.7.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 77 77 == Changelog == 78 79 = 1.7.2 = 80 * Adds a compatibility with the upcoming version of the SearchWP Modal Search Form plugin. 81 * Fixes an issue with a legacy version of the SearchWP plugin. 78 82 79 83 = 1.7.1 = -
searchwp-live-ajax-search/tags/1.7.2/searchwp-live-ajax-search.php
r2748884 r2753044 4 4 Plugin URI: https://searchwp.com/ 5 5 Description: Enhance your search forms with live search, powered by SearchWP (if installed) 6 Version: 1.7. 16 Version: 1.7.2 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 37 37 * @since 1.7.0 38 38 */ 39 define( 'SEARCHWP_LIVE_SEARCH_VERSION', '1.7. 1' );39 define( 'SEARCHWP_LIVE_SEARCH_VERSION', '1.7.2' ); 40 40 } 41 41 -
searchwp-live-ajax-search/trunk/assets/js/admin/menu.js
r2748631 r2753044 2 2 * SearchWP Live Search Admin Menu. 3 3 * 4 * @since {VERSION}4 * @since 1.7.0 5 5 */ 6 6 … … 12 12 * Public functions and properties. 13 13 * 14 * @since {VERSION}14 * @since 1.7.0 15 15 * 16 16 * @type {object} … … 21 21 * Start the engine. 22 22 * 23 * @since {VERSION}23 * @since 1.7.0 24 24 */ 25 25 init: function() { … … 31 31 * Document ready. 32 32 * 33 * @since {VERSION}33 * @since 1.7.0 34 34 */ 35 35 ready: function() { … … 41 41 * Add 'target="_blank"' and 'rel="noopener noreferrer"' to the "Upgrade to Pro" menu link. 42 42 * 43 * @since {VERSION}43 * @since 1.7.0 44 44 */ 45 45 addParamsToUpgradeLink: function() { -
searchwp-live-ajax-search/trunk/assets/js/admin/notices.js
r2748631 r2753044 4 4 * SearchWP Live Search Dismissible Notices. 5 5 * 6 * @since {VERSION}6 * @since 1.7.0 7 7 */ 8 8 … … 14 14 * Public functions and properties. 15 15 * 16 * @since {VERSION}16 * @since 1.7.0 17 17 * 18 18 * @type {object} … … 23 23 * Start the engine. 24 24 * 25 * @since {VERSION}25 * @since 1.7.0 26 26 */ 27 27 init: function() { … … 33 33 * Document ready. 34 34 * 35 * @since {VERSION}35 * @since 1.7.0 36 36 */ 37 37 ready: function() { … … 43 43 * Dismissible notices events. 44 44 * 45 * @since {VERSION}45 * @since 1.7.0 46 46 */ 47 47 events: function() { … … 57 57 * Dismiss notice event handler. 58 58 * 59 * @since {VERSION}59 * @since 1.7.0 60 60 * 61 61 * @param {object} e Event object. -
searchwp-live-ajax-search/trunk/includes/class-client.php
r2748630 r2753044 293 293 * @return int $per_page the number of items to display 294 294 */ 295 p rivatefunction get_posts_per_page() {295 public function get_posts_per_page() { 296 296 297 297 // The default is 7 posts, but that can be filtered. -
searchwp-live-ajax-search/trunk/includes/class-install.php
r2748631 r2753044 116 116 117 117 // Initial install. 118 wp_safe_redirect( admin_url( ' index.php?page=searchwp-live-search' ) );118 wp_safe_redirect( admin_url( 'admin.php?page=searchwp-live-search' ) ); 119 119 exit; 120 120 } -
searchwp-live-ajax-search/trunk/includes/class-menu.php
r2748631 r2753044 33 33 } else { 34 34 add_action( 'admin_menu', [ $this, 'add_menus_searchwp_disabled' ] ); 35 add_action( 'admin_menu', [ $this, 'add_upgrade_pro_link_searchwp_disabled' ], 100 ); 35 36 add_action( 'admin_head', [ $this, 'style_upgrade_pro_link_searchwp_disabled' ] ); 36 37 } … … 86 87 [ $settings, 'page_searchwp_disabled' ] 87 88 ); 89 } 88 90 89 add_submenu_page( 90 self::MENU_SLUG, 91 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 92 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 93 SearchWP_Live_Search_Settings_Api::CAPABILITY, 94 esc_url( 'https://searchwp.com/?utm_source=WordPress&utm_medium=Admin+Menu+Upgrade+Link&utm_campaign=Live+Ajax+Search&utm_content=Upgrade+to+Pro' ) 95 ); 91 /** 92 * Add "Upgrade to Pro" menu link if SearchWP is disabled. 93 * 94 * @since {VERSION} 95 */ 96 public function add_upgrade_pro_link_searchwp_disabled() { 97 98 add_submenu_page( 99 self::MENU_SLUG, 100 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 101 esc_html__( 'Upgrade to Pro', 'searchwp-live-ajax-search' ), 102 SearchWP_Live_Search_Settings_Api::CAPABILITY, 103 esc_url( 'https://searchwp.com/?utm_source=WordPress&utm_medium=Admin+Menu+Upgrade+Link&utm_campaign=Live+Ajax+Search&utm_content=Upgrade+to+Pro' ) 104 ); 96 105 97 106 // Enqueue the menu script only if the menu is registered. 98 107 $this->enqueues_searchwp_disabled(); 99 }108 } 100 109 101 110 /** … … 124 133 global $submenu; 125 134 126 // The "Upgrade to Pro" is [1] submenu item. 127 if ( ! isset( $submenu['searchwp-live-search'][1] ) ) { 135 if ( ! isset( $submenu[ self::MENU_SLUG ] ) ) { 128 136 return; 129 137 } 130 138 139 $menu_keys = array_keys( $submenu[ self::MENU_SLUG ] ); 140 $upgrade_item_key = array_pop( $menu_keys ); 141 131 142 // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes. 132 if ( strpos( $submenu[ 'searchwp-live-search'][1][2], 'https://searchwp.com/' ) !== 0 ) {143 if ( strpos( $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][2], 'https://searchwp.com/' ) !== 0 ) { 133 144 return; 134 145 } … … 136 147 // Prepare a HTML class. 137 148 // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited 138 if ( isset( $submenu[ 'searchwp-live-search'][1][4] ) ) {139 $submenu[ 'searchwp-live-search'][1][4] .= ' searchwp-sidebar-upgrade-pro';149 if ( isset( $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][4] ) ) { 150 $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][4] .= ' searchwp-sidebar-upgrade-pro'; 140 151 } else { 141 $submenu[ 'searchwp-live-search'][1][] = 'searchwp-sidebar-upgrade-pro';152 $submenu[ self::MENU_SLUG ][ $upgrade_item_key ][] = 'searchwp-sidebar-upgrade-pro'; 142 153 } 143 154 // phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited -
searchwp-live-ajax-search/trunk/includes/class-settings.php
r2748631 r2753044 465 465 ] 466 466 ), 467 '<strong>SearchWP </strong>',467 '<strong>SearchWP Live Ajax Search</strong>', 468 468 $url, 469 469 $url -
searchwp-live-ajax-search/trunk/readme.txt
r2748884 r2753044 4 4 Requires at least: 3.9 5 5 Tested up to: 5.9.1 6 Stable tag: 1.7. 16 Stable tag: 1.7.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 77 77 == Changelog == 78 79 = 1.7.2 = 80 * Adds a compatibility with the upcoming version of the SearchWP Modal Search Form plugin. 81 * Fixes an issue with a legacy version of the SearchWP plugin. 78 82 79 83 = 1.7.1 = -
searchwp-live-ajax-search/trunk/searchwp-live-ajax-search.php
r2748884 r2753044 4 4 Plugin URI: https://searchwp.com/ 5 5 Description: Enhance your search forms with live search, powered by SearchWP (if installed) 6 Version: 1.7. 16 Version: 1.7.2 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 37 37 * @since 1.7.0 38 38 */ 39 define( 'SEARCHWP_LIVE_SEARCH_VERSION', '1.7. 1' );39 define( 'SEARCHWP_LIVE_SEARCH_VERSION', '1.7.2' ); 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.