Plugin Directory

Changeset 3103982


Ignore:
Timestamp:
06/18/2024 09:31:47 AM (18 months ago)
Author:
wpengine
Message:

Tagging version 0.2.49

Location:
atlas-search
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • atlas-search/tags/0.2.49/README.txt

    r3090985 r3103982  
    33Tested up to: 6.5
    44Requires PHP: 7.4
    5 Stable tag: 0.2.48
     5Stable tag: 0.2.49
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== 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
    5054= 0.2.48 =
    5155* **Added:** Basic support for Polylang plugin.
  • atlas-search/tags/0.2.49/atlas-search.php

    r3090985 r3103982  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.48
     18 * Version:           0.2.49
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.48' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.49' );
    4444
    4545/**
  • atlas-search/tags/0.2.49/helper/api/sync-data/sync-data-controller.php

    r3090985 r3103982  
    115115
    116116    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() );
    118123    }
    119124
  • atlas-search/tags/0.2.49/helper/search/search.php

    r3087199 r3103982  
    196196
    197197    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;
    199205    }
    200206
  • atlas-search/trunk/README.txt

    r3090985 r3103982  
    33Tested up to: 6.5
    44Requires PHP: 7.4
    5 Stable tag: 0.2.48
     5Stable tag: 0.2.49
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== 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
    5054= 0.2.48 =
    5155* **Added:** Basic support for Polylang plugin.
  • atlas-search/trunk/atlas-search.php

    r3090985 r3103982  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.48
     18 * Version:           0.2.49
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.48' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.49' );
    4444
    4545/**
  • atlas-search/trunk/helper/api/sync-data/sync-data-controller.php

    r3090985 r3103982  
    115115
    116116    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() );
    118123    }
    119124
  • atlas-search/trunk/helper/search/search.php

    r3087199 r3103982  
    196196
    197197    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;
    199205    }
    200206
Note: See TracChangeset for help on using the changeset viewer.