Plugin Directory

Changeset 3473176


Ignore:
Timestamp:
03/03/2026 01:36:37 AM (8 days ago)
Author:
wpscholar
Message:

Update to version 1.1.8 from GitHub

Location:
mpress-hide-from-search
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mpress-hide-from-search/tags/1.1.8/includes/MetaBox.php

    r2906632 r3473176  
    8787        }
    8888    }
    89 
    9089}
  • mpress-hide-from-search/tags/1.1.8/includes/Plugin.php

    r3200473 r3473176  
    2525    public static function initialize() {
    2626        self::setUpContainer();
    27         self::registerFields();
    2827        self::setUpHooks();
    2928
     
    9998     */
    10099    public static function loadTextDomain() {
    101         load_plugin_textdomain( 'hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );
     100        load_plugin_textdomain( 'mpress-hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );
    102101    }
    103102
     
    187186     */
    188187    public static function setUpHooks() {
    189         add_action( 'plugins_loaded', array( __CLASS__, 'loadTextDomain' ) );
     188        add_action( 'init', array( __CLASS__, 'loadTextDomain' ) );
     189        add_action( 'init', array( __CLASS__, 'registerFields' ) );
    190190        add_action( 'wp_head', array( __CLASS__, 'hideFromSearchEngines' ), 5 );
    191191        add_filter( 'posts_where', array( __CLASS__, 'hideFromWordPressSearch' ) );
  • mpress-hide-from-search/tags/1.1.8/mpress-hide-from-search.php

    r3200473 r3473176  
    1212 * Plugin URI:        https://wordpress.org/plugins/mpress-hide-from-search/
    1313 * Description:       Hide individual WordPress pages from search engines and/or WordPress search results.
    14  * Version:           1.1.7
     14 * Version:           1.1.8
    1515 * Requires PHP:      7.4
    1616 * Requires at least: 6.0
     
    2323 */
    2424
    25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1.7' );
     25define( 'HIDE_FROM_SEARCH_VERSION', '1.1.8' );
    2626define( 'HIDE_FROM_SEARCH_FILE', __FILE__ );
    2727
  • mpress-hide-from-search/tags/1.1.8/readme.txt

    r3200473 r3473176  
    55Requires at least: 6.0
    66Requires PHP: 7.4
    7 Tested up to: 6.7
    8 Stable tag: 1.1.7
     7Tested up to: 6.9
     8Stable tag: 1.1.8
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.1.8 =
     70* General maintenance
    6871
    6972= 1.1.7 =
  • mpress-hide-from-search/tags/1.1.8/vendor/autoload.php

    r3200473 r3473176  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • mpress-hide-from-search/tags/1.1.8/vendor/composer/InstalledVersions.php

    r2906632 r3473176  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332364                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • mpress-hide-from-search/tags/1.1.8/vendor/composer/autoload_static.php

    r3200473 r3473176  
    88{
    99    public static $prefixLengthsPsr4 = array (
    10         'W' => 
     10        'W' =>
    1111        array (
    1212            'WP_Forge\\UpgradeHandler\\' => 24,
    1313            'WP_Forge\\Container\\' => 19,
    1414        ),
    15         'P' => 
     15        'P' =>
    1616        array (
    1717            'Psr\\Container\\' => 14,
    1818        ),
    19         'H' => 
     19        'H' =>
    2020        array (
    2121            'HideFromSearch\\' => 15,
     
    2424
    2525    public static $prefixDirsPsr4 = array (
    26         'WP_Forge\\UpgradeHandler\\' => 
     26        'WP_Forge\\UpgradeHandler\\' =>
    2727        array (
    2828            0 => __DIR__ . '/..' . '/wp-forge/wp-upgrade-handler/includes',
    2929        ),
    30         'WP_Forge\\Container\\' => 
     30        'WP_Forge\\Container\\' =>
    3131        array (
    3232            0 => __DIR__ . '/..' . '/wp-forge/container/includes',
    3333        ),
    34         'Psr\\Container\\' => 
     34        'Psr\\Container\\' =>
    3535        array (
    3636            0 => __DIR__ . '/..' . '/psr/container/src',
    3737        ),
    38         'HideFromSearch\\' => 
     38        'HideFromSearch\\' =>
    3939        array (
    4040            0 => __DIR__ . '/../..' . '/includes',
  • mpress-hide-from-search/tags/1.1.8/vendor/composer/installed.php

    r3200473 r3473176  
    22    'root' => array(
    33        'name' => 'wpscholar/mpress-hide-from-search',
    4         'pretty_version' => '1.1.7',
    5         'version' => '1.1.7.0',
    6         'reference' => 'b430164a4247fc85d43126cf897d270551846190',
     4        'pretty_version' => '1.1.8',
     5        'version' => '1.1.8.0',
     6        'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    4848        ),
    4949        'wpscholar/mpress-hide-from-search' => array(
    50             'pretty_version' => '1.1.7',
    51             'version' => '1.1.7.0',
    52             'reference' => 'b430164a4247fc85d43126cf897d270551846190',
     50            'pretty_version' => '1.1.8',
     51            'version' => '1.1.8.0',
     52            'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4',
    5353            'type' => 'wordpress-plugin',
    5454            'install_path' => __DIR__ . '/../../',
  • mpress-hide-from-search/trunk/includes/MetaBox.php

    r2906632 r3473176  
    8787        }
    8888    }
    89 
    9089}
  • mpress-hide-from-search/trunk/includes/Plugin.php

    r3200473 r3473176  
    2525    public static function initialize() {
    2626        self::setUpContainer();
    27         self::registerFields();
    2827        self::setUpHooks();
    2928
     
    9998     */
    10099    public static function loadTextDomain() {
    101         load_plugin_textdomain( 'hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );
     100        load_plugin_textdomain( 'mpress-hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );
    102101    }
    103102
     
    187186     */
    188187    public static function setUpHooks() {
    189         add_action( 'plugins_loaded', array( __CLASS__, 'loadTextDomain' ) );
     188        add_action( 'init', array( __CLASS__, 'loadTextDomain' ) );
     189        add_action( 'init', array( __CLASS__, 'registerFields' ) );
    190190        add_action( 'wp_head', array( __CLASS__, 'hideFromSearchEngines' ), 5 );
    191191        add_filter( 'posts_where', array( __CLASS__, 'hideFromWordPressSearch' ) );
  • mpress-hide-from-search/trunk/mpress-hide-from-search.php

    r3200473 r3473176  
    1212 * Plugin URI:        https://wordpress.org/plugins/mpress-hide-from-search/
    1313 * Description:       Hide individual WordPress pages from search engines and/or WordPress search results.
    14  * Version:           1.1.7
     14 * Version:           1.1.8
    1515 * Requires PHP:      7.4
    1616 * Requires at least: 6.0
     
    2323 */
    2424
    25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1.7' );
     25define( 'HIDE_FROM_SEARCH_VERSION', '1.1.8' );
    2626define( 'HIDE_FROM_SEARCH_FILE', __FILE__ );
    2727
  • mpress-hide-from-search/trunk/readme.txt

    r3200473 r3473176  
    55Requires at least: 6.0
    66Requires PHP: 7.4
    7 Tested up to: 6.7
    8 Stable tag: 1.1.7
     7Tested up to: 6.9
     8Stable tag: 1.1.8
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.1.8 =
     70* General maintenance
    6871
    6972= 1.1.7 =
  • mpress-hide-from-search/trunk/vendor/autoload.php

    r3200473 r3473176  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • mpress-hide-from-search/trunk/vendor/composer/InstalledVersions.php

    r2906632 r3473176  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332364                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • mpress-hide-from-search/trunk/vendor/composer/autoload_static.php

    r3200473 r3473176  
    88{
    99    public static $prefixLengthsPsr4 = array (
    10         'W' => 
     10        'W' =>
    1111        array (
    1212            'WP_Forge\\UpgradeHandler\\' => 24,
    1313            'WP_Forge\\Container\\' => 19,
    1414        ),
    15         'P' => 
     15        'P' =>
    1616        array (
    1717            'Psr\\Container\\' => 14,
    1818        ),
    19         'H' => 
     19        'H' =>
    2020        array (
    2121            'HideFromSearch\\' => 15,
     
    2424
    2525    public static $prefixDirsPsr4 = array (
    26         'WP_Forge\\UpgradeHandler\\' => 
     26        'WP_Forge\\UpgradeHandler\\' =>
    2727        array (
    2828            0 => __DIR__ . '/..' . '/wp-forge/wp-upgrade-handler/includes',
    2929        ),
    30         'WP_Forge\\Container\\' => 
     30        'WP_Forge\\Container\\' =>
    3131        array (
    3232            0 => __DIR__ . '/..' . '/wp-forge/container/includes',
    3333        ),
    34         'Psr\\Container\\' => 
     34        'Psr\\Container\\' =>
    3535        array (
    3636            0 => __DIR__ . '/..' . '/psr/container/src',
    3737        ),
    38         'HideFromSearch\\' => 
     38        'HideFromSearch\\' =>
    3939        array (
    4040            0 => __DIR__ . '/../..' . '/includes',
  • mpress-hide-from-search/trunk/vendor/composer/installed.php

    r3200473 r3473176  
    22    'root' => array(
    33        'name' => 'wpscholar/mpress-hide-from-search',
    4         'pretty_version' => '1.1.7',
    5         'version' => '1.1.7.0',
    6         'reference' => 'b430164a4247fc85d43126cf897d270551846190',
     4        'pretty_version' => '1.1.8',
     5        'version' => '1.1.8.0',
     6        'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    4848        ),
    4949        'wpscholar/mpress-hide-from-search' => array(
    50             'pretty_version' => '1.1.7',
    51             'version' => '1.1.7.0',
    52             'reference' => 'b430164a4247fc85d43126cf897d270551846190',
     50            'pretty_version' => '1.1.8',
     51            'version' => '1.1.8.0',
     52            'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4',
    5353            'type' => 'wordpress-plugin',
    5454            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.