Changeset 3103982
- Timestamp:
- 06/18/2024 09:31:47 AM (18 months ago)
- Location:
- atlas-search
- Files:
-
- 8 edited
- 1 copied
-
tags/0.2.49 (copied) (copied from atlas-search/trunk)
-
tags/0.2.49/README.txt (modified) (2 diffs)
-
tags/0.2.49/atlas-search.php (modified) (2 diffs)
-
tags/0.2.49/helper/api/sync-data/sync-data-controller.php (modified) (1 diff)
-
tags/0.2.49/helper/search/search.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/atlas-search.php (modified) (2 diffs)
-
trunk/helper/api/sync-data/sync-data-controller.php (modified) (1 diff)
-
trunk/helper/search/search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
atlas-search/tags/0.2.49/README.txt
r3090985 r3103982 3 3 Tested up to: 6.5 4 4 Requires PHP: 7.4 5 Stable tag: 0.2.4 85 Stable tag: 0.2.49 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 49 49 == Changelog == 50 = 0.2.49 = 51 * **Fixed:** WP Engine Smart Search not running for admin searches. 52 * **Fixed:** All sites are indexed in multisite. 53 50 54 = 0.2.48 = 51 55 * **Added:** Basic support for Polylang plugin. -
atlas-search/tags/0.2.49/atlas-search.php
r3090985 r3103982 16 16 * Plugin URI: https://developers.wpengine.com/ 17 17 * Description: Searching WordPress data with WP Engine Smart Search. 18 * Version: 0.2.4 818 * Version: 0.2.49 19 19 * Author: WP Engine 20 20 * Author URI: https://wpengine.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.4 8' );43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.49' ); 44 44 45 45 /** -
atlas-search/tags/0.2.49/helper/api/sync-data/sync-data-controller.php
r3090985 r3103982 115 115 116 116 private function get_site_ids( $is_network_activated ) { 117 return $is_network_activated ? get_sites( array( 'fields' => 'ids' ) ) : array( get_current_blog_id() ); 117 return $is_network_activated ? get_sites( 118 array( 119 'fields' => 'ids', 120 'number' => 0, 121 ) 122 ) : array( get_current_blog_id() ); 118 123 } 119 124 -
atlas-search/tags/0.2.49/helper/search/search.php
r3087199 r3103982 196 196 197 197 private function is_admin_search_request(): bool { 198 return is_user_logged_in() && is_admin() && ! $this->is_graphql_request(); 198 $is_wp_admin = $this->is_referer_wp_admin() || is_admin(); 199 return is_user_logged_in() && $is_wp_admin && ! $this->is_graphql_request(); 200 } 201 202 private function is_referer_wp_admin(): bool { 203 $referer = wp_get_referer(); 204 return isset( $referer ) && strpos( $referer, admin_url() ) !== false; 199 205 } 200 206 -
atlas-search/trunk/README.txt
r3090985 r3103982 3 3 Tested up to: 6.5 4 4 Requires PHP: 7.4 5 Stable tag: 0.2.4 85 Stable tag: 0.2.49 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 49 49 == Changelog == 50 = 0.2.49 = 51 * **Fixed:** WP Engine Smart Search not running for admin searches. 52 * **Fixed:** All sites are indexed in multisite. 53 50 54 = 0.2.48 = 51 55 * **Added:** Basic support for Polylang plugin. -
atlas-search/trunk/atlas-search.php
r3090985 r3103982 16 16 * Plugin URI: https://developers.wpengine.com/ 17 17 * Description: Searching WordPress data with WP Engine Smart Search. 18 * Version: 0.2.4 818 * Version: 0.2.49 19 19 * Author: WP Engine 20 20 * Author URI: https://wpengine.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.4 8' );43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.49' ); 44 44 45 45 /** -
atlas-search/trunk/helper/api/sync-data/sync-data-controller.php
r3090985 r3103982 115 115 116 116 private function get_site_ids( $is_network_activated ) { 117 return $is_network_activated ? get_sites( array( 'fields' => 'ids' ) ) : array( get_current_blog_id() ); 117 return $is_network_activated ? get_sites( 118 array( 119 'fields' => 'ids', 120 'number' => 0, 121 ) 122 ) : array( get_current_blog_id() ); 118 123 } 119 124 -
atlas-search/trunk/helper/search/search.php
r3087199 r3103982 196 196 197 197 private function is_admin_search_request(): bool { 198 return is_user_logged_in() && is_admin() && ! $this->is_graphql_request(); 198 $is_wp_admin = $this->is_referer_wp_admin() || is_admin(); 199 return is_user_logged_in() && $is_wp_admin && ! $this->is_graphql_request(); 200 } 201 202 private function is_referer_wp_admin(): bool { 203 $referer = wp_get_referer(); 204 return isset( $referer ) && strpos( $referer, admin_url() ) !== false; 199 205 } 200 206
Note: See TracChangeset
for help on using the changeset viewer.