close

Plugin Directory

Changeset 3400952


Ignore:
Timestamp:
11/22/2025 01:21:12 PM (6 months ago)
Author:
PierreLannoy
Message:

APCu Manager 4.3.0 released from GitHub

Location:
apcu-manager
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • apcu-manager/tags/4.3.0/CHANGELOG.md

    r3330106 r3400952  
    33
    44The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **APCu Manager** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     5
     6## [4.3.0] - 2025-11-22
     7
     8### Added
     9- Compatibility with WordPress 6.9.
    510
    611## [4.2.1] - 2025-07-18
  • apcu-manager/tags/4.3.0/admin/class-apcu-manager-admin.php

    r2873847 r3400952  
    510510        $apcu_available = function_exists( 'apcu_delete' ) && function_exists( 'apcu_fetch' ) && function_exists( 'apcu_store' ) && function_exists( 'apcu_add' ) && function_exists( 'apcu_dec' ) && function_exists( 'apcu_inc' );
    511511        if ( $apcu_available ) {
    512             $note = sprintf( __( 'Note: %s is currently enabled on you %s.', 'apcu-manager' ), APCu::name(), Environment::is_wordpress_multisite() ? esc_html__( 'network', 'apcu-manager' ) : esc_html__( 'website', 'apcu-manager' ) );
     512            $note = sprintf( __( 'Note: %1$s is currently enabled on you %2$s.', 'apcu-manager' ), APCu::name(), Environment::is_wordpress_multisite() ? esc_html__( 'network', 'apcu-manager' ) : esc_html__( 'website', 'apcu-manager' ) );
    513513        } else {
    514514            $note = esc_html__( 'Note: to activate it, your must have APCu enabled in PHP. It is not currently the case.', 'apcu-manager' );
  • apcu-manager/tags/4.3.0/apcu-manager.php

    r3330106 r3400952  
    1111 * Plugin URI:        https://perfops.one/apcu-manager
    1212 * Description:       APCu statistics and management right in the WordPress admin dashboard.
    13  * Version:           4.2.1
     13 * Version:           4.3.0
    1414 * Requires at least: 6.2
    1515 * Requires PHP:      8.1
  • apcu-manager/tags/4.3.0/includes/plugin/class-updater.php

    r3272123 r3400952  
    6666        }
    6767        if ( ! ( defined( 'POO_SELFUPDATE_BYPASS' ) && POO_SELFUPDATE_BYPASS ) ) {
    68             add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MAX, 3 );
     68            add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MIN, 3 );
    6969            add_filter( 'site_transient_update_plugins', [ $this, 'info_update' ] );
    7070            add_action( 'upgrader_process_complete', [ $this, 'info_reset' ], 10, 2 );
     
    131131            }
    132132            $plugin_info             = json_decode( wp_remote_retrieve_body( $remote ), true );
    133             $remotes->tested         = $plugin_info['tested'] ?? '7.0';
     133            $remotes->tested         = '6.8.99999';// $plugin_info['tested'] ?? '10.0';
    134134            $remotes->requires       = $plugin_info['requires'] ?? '6.2';
    135135            $remotes->requires_php   = $plugin_info['requires_php'] ?? '7.1';
     
    207207            return $res;
    208208        }
    209         $md                           = new Markdown();
    210         $res                          = new \stdClass();
     209        $md = new Markdown();
     210        if ( ! is_object( $res ) ) {
     211            $res = new \stdClass();
     212        }
    211213        $res->name                    = $this->name;
    212214        $res->homepage                = 'https://perfops.one/' . $this->slug;
     
    223225        $res->download_link           = $infos->download_url;
    224226        $res->trunk                   = $infos->download_url;
    225         $res->sections                = [
    226             'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>',
    227         ];
    228         $res->banners                 = [
    229             "low"  => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg',
    230             "high" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'
    231         ];
     227        if ( isset( $res->sections['changelog'] ) ) {
     228            $res->sections['changelog'] = $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>';
     229        } else {
     230            $res->sections = [
     231                'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>',
     232            ];
     233        }
     234        if ( isset( $res->banners['low'] ) && isset( $res->banners['high'] )) {
     235            $res->banners['low'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg';
     236            $res->banners['high'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg';
     237        } else {
     238            $res->banners                 = [
     239                'low'  => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg',
     240                'high' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'
     241            ];
     242        }
     243
    232244        return $res;
    233245    }
     
    250262            $res->plugin                         = $this->slug . '/' . $this->slug . '.php';
    251263            $res->new_version                    = $remote->version;
    252             $res->tested                         = $remote->tested;
     264            //$res->tested                         = $remote->tested . '.99999';
    253265            $res->package                        = $remote->download_url;
    254266            $res->icons                          = [
  • apcu-manager/tags/4.3.0/includes/system/class-form.php

    r2281886 r3400952  
    5252            $width = '';
    5353        }
    54         $html = '<input' . ( $enabled ? '' : ' disabled' ) . ' name="' . $id . '" type="number" step="' . $step . '" min="' . $min . '" max="' . $max . '"id="' . $id . '" value="' . $value . '"' . $width . ' class="regular-text"/>';
     54        $html = '<input' . ( $enabled ? '' : ' disabled' ) . ' name="' . esc_html( $id ) . '" type="number" step="' . esc_html( $step ) . '" min="' . esc_html( $min ). '" max="' . esc_html( $max ). '"id="' .esc_html( $id ). '" value="' . esc_html( $value ). '"' . esc_html( $width ). ' class="regular-text"/>';
    5555        if ( isset( $unit ) ) {
    56             $html .= '&nbsp;<label for="' . $id . '">' . $unit . '</label>';
    57         }
    58         if ( isset( $description ) ) {
    59             $html .= '<p class="description">' . $description . '</p>';
     56            $html .= '&nbsp;<label for="' . esc_html( $id ) . '">' . esc_html( $unit ) . '</label>';
     57        }
     58        if ( isset( $description ) ) {
     59            $html .= '<p class="description">' . esc_html( $description ) . '</p>';
    6060        }
    6161        return $html;
     
    6969     */
    7070    public function echo_field_input_integer( $args ) {
    71         echo $this->field_input_integer( $args['id'], $args['value'], $args['min'], $args['max'], $args['step'], $args['description'], $args['full_width'], $args['enabled'] );
     71        echo $this->field_input_integer( esc_html( $args['id'] ), esc_html( $args['value'] ), esc_html( $args['min'] ), esc_html( $args['max'] ), esc_html( $args['step'] ), esc_html( $args['description'] ), esc_html( $args['full_width'] ), esc_html( $args['enabled'] ));
    7272    }
    7373
  • apcu-manager/tags/4.3.0/init.php

    r3330106 r3400952  
    1313define( 'APCM_PRODUCT_ABBREVIATION', 'apcm' );
    1414define( 'APCM_SLUG', 'apcu-manager' );
    15 define( 'APCM_VERSION', '4.2.1' );
     15define( 'APCM_VERSION', '4.3.0' );
    1616define( 'APCM_CODENAME', '"-"' );
    1717
  • apcu-manager/tags/4.3.0/readme.txt

    r3330106 r3400952  
    44Requires at least: 6.2
    55Requires PHP: 8.1
    6 Tested up to: 6.8
    7 Stable tag: 4.2.1
     6Tested up to: 6.9
     7Stable tag: 4.3.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • apcu-manager/trunk/CHANGELOG.md

    r3330106 r3400952  
    33
    44The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **APCu Manager** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     5
     6## [4.3.0] - 2025-11-22
     7
     8### Added
     9- Compatibility with WordPress 6.9.
    510
    611## [4.2.1] - 2025-07-18
  • apcu-manager/trunk/admin/class-apcu-manager-admin.php

    r2873847 r3400952  
    510510        $apcu_available = function_exists( 'apcu_delete' ) && function_exists( 'apcu_fetch' ) && function_exists( 'apcu_store' ) && function_exists( 'apcu_add' ) && function_exists( 'apcu_dec' ) && function_exists( 'apcu_inc' );
    511511        if ( $apcu_available ) {
    512             $note = sprintf( __( 'Note: %s is currently enabled on you %s.', 'apcu-manager' ), APCu::name(), Environment::is_wordpress_multisite() ? esc_html__( 'network', 'apcu-manager' ) : esc_html__( 'website', 'apcu-manager' ) );
     512            $note = sprintf( __( 'Note: %1$s is currently enabled on you %2$s.', 'apcu-manager' ), APCu::name(), Environment::is_wordpress_multisite() ? esc_html__( 'network', 'apcu-manager' ) : esc_html__( 'website', 'apcu-manager' ) );
    513513        } else {
    514514            $note = esc_html__( 'Note: to activate it, your must have APCu enabled in PHP. It is not currently the case.', 'apcu-manager' );
  • apcu-manager/trunk/apcu-manager.php

    r3330106 r3400952  
    1111 * Plugin URI:        https://perfops.one/apcu-manager
    1212 * Description:       APCu statistics and management right in the WordPress admin dashboard.
    13  * Version:           4.2.1
     13 * Version:           4.3.0
    1414 * Requires at least: 6.2
    1515 * Requires PHP:      8.1
  • apcu-manager/trunk/includes/plugin/class-updater.php

    r3272123 r3400952  
    6666        }
    6767        if ( ! ( defined( 'POO_SELFUPDATE_BYPASS' ) && POO_SELFUPDATE_BYPASS ) ) {
    68             add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MAX, 3 );
     68            add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MIN, 3 );
    6969            add_filter( 'site_transient_update_plugins', [ $this, 'info_update' ] );
    7070            add_action( 'upgrader_process_complete', [ $this, 'info_reset' ], 10, 2 );
     
    131131            }
    132132            $plugin_info             = json_decode( wp_remote_retrieve_body( $remote ), true );
    133             $remotes->tested         = $plugin_info['tested'] ?? '7.0';
     133            $remotes->tested         = '6.8.99999';// $plugin_info['tested'] ?? '10.0';
    134134            $remotes->requires       = $plugin_info['requires'] ?? '6.2';
    135135            $remotes->requires_php   = $plugin_info['requires_php'] ?? '7.1';
     
    207207            return $res;
    208208        }
    209         $md                           = new Markdown();
    210         $res                          = new \stdClass();
     209        $md = new Markdown();
     210        if ( ! is_object( $res ) ) {
     211            $res = new \stdClass();
     212        }
    211213        $res->name                    = $this->name;
    212214        $res->homepage                = 'https://perfops.one/' . $this->slug;
     
    223225        $res->download_link           = $infos->download_url;
    224226        $res->trunk                   = $infos->download_url;
    225         $res->sections                = [
    226             'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>',
    227         ];
    228         $res->banners                 = [
    229             "low"  => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg',
    230             "high" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'
    231         ];
     227        if ( isset( $res->sections['changelog'] ) ) {
     228            $res->sections['changelog'] = $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>';
     229        } else {
     230            $res->sections = [
     231                'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>',
     232            ];
     233        }
     234        if ( isset( $res->banners['low'] ) && isset( $res->banners['high'] )) {
     235            $res->banners['low'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg';
     236            $res->banners['high'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg';
     237        } else {
     238            $res->banners                 = [
     239                'low'  => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg',
     240                'high' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'
     241            ];
     242        }
     243
    232244        return $res;
    233245    }
     
    250262            $res->plugin                         = $this->slug . '/' . $this->slug . '.php';
    251263            $res->new_version                    = $remote->version;
    252             $res->tested                         = $remote->tested;
     264            //$res->tested                         = $remote->tested . '.99999';
    253265            $res->package                        = $remote->download_url;
    254266            $res->icons                          = [
  • apcu-manager/trunk/includes/system/class-form.php

    r2281886 r3400952  
    5252            $width = '';
    5353        }
    54         $html = '<input' . ( $enabled ? '' : ' disabled' ) . ' name="' . $id . '" type="number" step="' . $step . '" min="' . $min . '" max="' . $max . '"id="' . $id . '" value="' . $value . '"' . $width . ' class="regular-text"/>';
     54        $html = '<input' . ( $enabled ? '' : ' disabled' ) . ' name="' . esc_html( $id ) . '" type="number" step="' . esc_html( $step ) . '" min="' . esc_html( $min ). '" max="' . esc_html( $max ). '"id="' .esc_html( $id ). '" value="' . esc_html( $value ). '"' . esc_html( $width ). ' class="regular-text"/>';
    5555        if ( isset( $unit ) ) {
    56             $html .= '&nbsp;<label for="' . $id . '">' . $unit . '</label>';
    57         }
    58         if ( isset( $description ) ) {
    59             $html .= '<p class="description">' . $description . '</p>';
     56            $html .= '&nbsp;<label for="' . esc_html( $id ) . '">' . esc_html( $unit ) . '</label>';
     57        }
     58        if ( isset( $description ) ) {
     59            $html .= '<p class="description">' . esc_html( $description ) . '</p>';
    6060        }
    6161        return $html;
     
    6969     */
    7070    public function echo_field_input_integer( $args ) {
    71         echo $this->field_input_integer( $args['id'], $args['value'], $args['min'], $args['max'], $args['step'], $args['description'], $args['full_width'], $args['enabled'] );
     71        echo $this->field_input_integer( esc_html( $args['id'] ), esc_html( $args['value'] ), esc_html( $args['min'] ), esc_html( $args['max'] ), esc_html( $args['step'] ), esc_html( $args['description'] ), esc_html( $args['full_width'] ), esc_html( $args['enabled'] ));
    7272    }
    7373
  • apcu-manager/trunk/init.php

    r3330106 r3400952  
    1313define( 'APCM_PRODUCT_ABBREVIATION', 'apcm' );
    1414define( 'APCM_SLUG', 'apcu-manager' );
    15 define( 'APCM_VERSION', '4.2.1' );
     15define( 'APCM_VERSION', '4.3.0' );
    1616define( 'APCM_CODENAME', '"-"' );
    1717
  • apcu-manager/trunk/readme.txt

    r3330106 r3400952  
    44Requires at least: 6.2
    55Requires PHP: 8.1
    6 Tested up to: 6.8
    7 Stable tag: 4.2.1
     6Tested up to: 6.9
     7Stable tag: 4.3.0
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.