Changeset 3400952
- Timestamp:
- 11/22/2025 01:21:12 PM (6 months ago)
- Location:
- apcu-manager
- Files:
-
- 14 edited
- 1 copied
-
tags/4.3.0 (copied) (copied from apcu-manager/trunk)
-
tags/4.3.0/CHANGELOG.md (modified) (1 diff)
-
tags/4.3.0/admin/class-apcu-manager-admin.php (modified) (1 diff)
-
tags/4.3.0/apcu-manager.php (modified) (1 diff)
-
tags/4.3.0/includes/plugin/class-updater.php (modified) (5 diffs)
-
tags/4.3.0/includes/system/class-form.php (modified) (2 diffs)
-
tags/4.3.0/init.php (modified) (1 diff)
-
tags/4.3.0/readme.txt (modified) (1 diff)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/admin/class-apcu-manager-admin.php (modified) (1 diff)
-
trunk/apcu-manager.php (modified) (1 diff)
-
trunk/includes/plugin/class-updater.php (modified) (5 diffs)
-
trunk/includes/system/class-form.php (modified) (2 diffs)
-
trunk/init.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
apcu-manager/tags/4.3.0/CHANGELOG.md
r3330106 r3400952 3 3 4 4 The 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. 5 10 6 11 ## [4.2.1] - 2025-07-18 -
apcu-manager/tags/4.3.0/admin/class-apcu-manager-admin.php
r2873847 r3400952 510 510 $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' ); 511 511 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' ) ); 513 513 } else { 514 514 $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 11 11 * Plugin URI: https://perfops.one/apcu-manager 12 12 * Description: APCu statistics and management right in the WordPress admin dashboard. 13 * Version: 4. 2.113 * Version: 4.3.0 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 8.1 -
apcu-manager/tags/4.3.0/includes/plugin/class-updater.php
r3272123 r3400952 66 66 } 67 67 if ( ! ( defined( 'POO_SELFUPDATE_BYPASS' ) && POO_SELFUPDATE_BYPASS ) ) { 68 add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_M AX, 3 );68 add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MIN, 3 ); 69 69 add_filter( 'site_transient_update_plugins', [ $this, 'info_update' ] ); 70 70 add_action( 'upgrader_process_complete', [ $this, 'info_reset' ], 10, 2 ); … … 131 131 } 132 132 $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'; 134 134 $remotes->requires = $plugin_info['requires'] ?? '6.2'; 135 135 $remotes->requires_php = $plugin_info['requires_php'] ?? '7.1'; … … 207 207 return $res; 208 208 } 209 $md = new Markdown(); 210 $res = new \stdClass(); 209 $md = new Markdown(); 210 if ( ! is_object( $res ) ) { 211 $res = new \stdClass(); 212 } 211 213 $res->name = $this->name; 212 214 $res->homepage = 'https://perfops.one/' . $this->slug; … … 223 225 $res->download_link = $infos->download_url; 224 226 $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 232 244 return $res; 233 245 } … … 250 262 $res->plugin = $this->slug . '/' . $this->slug . '.php'; 251 263 $res->new_version = $remote->version; 252 $res->tested = $remote->tested;264 //$res->tested = $remote->tested . '.99999'; 253 265 $res->package = $remote->download_url; 254 266 $res->icons = [ -
apcu-manager/tags/4.3.0/includes/system/class-form.php
r2281886 r3400952 52 52 $width = ''; 53 53 } 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"/>'; 55 55 if ( isset( $unit ) ) { 56 $html .= ' <label for="' . $id . '">' . $unit. '</label>';57 } 58 if ( isset( $description ) ) { 59 $html .= '<p class="description">' . $description. '</p>';56 $html .= ' <label for="' . esc_html( $id ) . '">' . esc_html( $unit ) . '</label>'; 57 } 58 if ( isset( $description ) ) { 59 $html .= '<p class="description">' . esc_html( $description ) . '</p>'; 60 60 } 61 61 return $html; … … 69 69 */ 70 70 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'] )); 72 72 } 73 73 -
apcu-manager/tags/4.3.0/init.php
r3330106 r3400952 13 13 define( 'APCM_PRODUCT_ABBREVIATION', 'apcm' ); 14 14 define( 'APCM_SLUG', 'apcu-manager' ); 15 define( 'APCM_VERSION', '4. 2.1' );15 define( 'APCM_VERSION', '4.3.0' ); 16 16 define( 'APCM_CODENAME', '"-"' ); 17 17 -
apcu-manager/tags/4.3.0/readme.txt
r3330106 r3400952 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 4. 2.16 Tested up to: 6.9 7 Stable tag: 4.3.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
apcu-manager/trunk/CHANGELOG.md
r3330106 r3400952 3 3 4 4 The 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. 5 10 6 11 ## [4.2.1] - 2025-07-18 -
apcu-manager/trunk/admin/class-apcu-manager-admin.php
r2873847 r3400952 510 510 $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' ); 511 511 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' ) ); 513 513 } else { 514 514 $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 11 11 * Plugin URI: https://perfops.one/apcu-manager 12 12 * Description: APCu statistics and management right in the WordPress admin dashboard. 13 * Version: 4. 2.113 * Version: 4.3.0 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 8.1 -
apcu-manager/trunk/includes/plugin/class-updater.php
r3272123 r3400952 66 66 } 67 67 if ( ! ( defined( 'POO_SELFUPDATE_BYPASS' ) && POO_SELFUPDATE_BYPASS ) ) { 68 add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_M AX, 3 );68 add_filter( 'plugins_api', [ $this, 'plugin_info' ], PHP_INT_MIN, 3 ); 69 69 add_filter( 'site_transient_update_plugins', [ $this, 'info_update' ] ); 70 70 add_action( 'upgrader_process_complete', [ $this, 'info_reset' ], 10, 2 ); … … 131 131 } 132 132 $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'; 134 134 $remotes->requires = $plugin_info['requires'] ?? '6.2'; 135 135 $remotes->requires_php = $plugin_info['requires_php'] ?? '7.1'; … … 207 207 return $res; 208 208 } 209 $md = new Markdown(); 210 $res = new \stdClass(); 209 $md = new Markdown(); 210 if ( ! is_object( $res ) ) { 211 $res = new \stdClass(); 212 } 211 213 $res->name = $this->name; 212 214 $res->homepage = 'https://perfops.one/' . $this->slug; … … 223 225 $res->download_link = $infos->download_url; 224 226 $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 232 244 return $res; 233 245 } … … 250 262 $res->plugin = $this->slug . '/' . $this->slug . '.php'; 251 263 $res->new_version = $remote->version; 252 $res->tested = $remote->tested;264 //$res->tested = $remote->tested . '.99999'; 253 265 $res->package = $remote->download_url; 254 266 $res->icons = [ -
apcu-manager/trunk/includes/system/class-form.php
r2281886 r3400952 52 52 $width = ''; 53 53 } 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"/>'; 55 55 if ( isset( $unit ) ) { 56 $html .= ' <label for="' . $id . '">' . $unit. '</label>';57 } 58 if ( isset( $description ) ) { 59 $html .= '<p class="description">' . $description. '</p>';56 $html .= ' <label for="' . esc_html( $id ) . '">' . esc_html( $unit ) . '</label>'; 57 } 58 if ( isset( $description ) ) { 59 $html .= '<p class="description">' . esc_html( $description ) . '</p>'; 60 60 } 61 61 return $html; … … 69 69 */ 70 70 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'] )); 72 72 } 73 73 -
apcu-manager/trunk/init.php
r3330106 r3400952 13 13 define( 'APCM_PRODUCT_ABBREVIATION', 'apcm' ); 14 14 define( 'APCM_SLUG', 'apcu-manager' ); 15 define( 'APCM_VERSION', '4. 2.1' );15 define( 'APCM_VERSION', '4.3.0' ); 16 16 define( 'APCM_CODENAME', '"-"' ); 17 17 -
apcu-manager/trunk/readme.txt
r3330106 r3400952 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 4. 2.16 Tested up to: 6.9 7 Stable tag: 4.3.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.
