Ticket #4009: 4009.2.diff
File 4009.2.diff, 5.8 KB (added by , 6 years ago) |
---|
-
api.wordpress.org/public_html/core/serve-happy/1.0/config.php
1 1 <?php 2 2 namespace WordPressdotorg\API\Serve_Happy; 3 3 4 // The latest branch of PHP which WordPress.org recommends. 5 define( 'RECOMMENDED_PHP', '7.3' ); 6 7 // The lowest branch of PHP which is actively supported. 8 define( 'SUPPORTED_PHP', '7.2' ); 9 10 // The lowest branch of PHP which is receiving security updates. 11 define( 'SECURE_PHP', '7.1' ); 12 13 // The lowest branch of PHP which is still considered acceptable in WordPress. 14 define( 'ACCEPTABLE_PHP', '5.6' ); 4 // Load constants from wordpress.org must-use plugin that has the sole purpose of exposing them globally. 5 require_once dirname( dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) ) . '/wordpress.org/public_html/wp-content/mu-plugins/pub/servehappy-versions.php'; -
api.wordpress.org/public_html/core/serve-happy/1.0/include.php
26 26 27 27 return array( 28 28 'recommended_version' => RECOMMENDED_PHP, 29 'minimum_version' => MINIMUM_PHP, 29 30 'is_supported' => version_compare( $php_version, SUPPORTED_PHP, '>=' ), 30 31 'is_secure' => version_compare( $php_version, SECURE_PHP, '>=' ), 31 32 'is_acceptable' => version_compare( $php_version, ACCEPTABLE_PHP, '>=' ), -
wordpress.org/public_html/wp-content/mu-plugins/pub/servehappy-versions.php
1 <?php 2 /** 3 * Plugin Name: Servehappy Versions 4 * Description: Defines PHP version constants used by the Servehappy API and throughout wordpress.org. 5 * Version: 1.0 6 * Author: WordPress.org 7 * Author URI: https://wordpress.org/ 8 * License: GPLv2 or later 9 * 10 * @package WordPressdotorg\TwoFactor 11 */ 12 13 // The latest branch of PHP which WordPress.org recommends. 14 define( 'RECOMMENDED_PHP', '7.3' ); 15 16 // The oldest branch of PHP which WordPress core still works with. 17 define( 'MINIMUM_PHP', '5.2.4' ); 18 19 // The lowest branch of PHP which is actively supported. 20 define( 'SUPPORTED_PHP', '7.2' ); 21 22 // The lowest branch of PHP which is receiving security updates. 23 define( 'SECURE_PHP', '7.1' ); 24 25 // The lowest branch of PHP which is still considered acceptable in WordPress. 26 define( 'ACCEPTABLE_PHP', '5.6' ); -
wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-requirements.php
43 43 <li> 44 44 <?php 45 45 /* translators: 1: URL to PHP; 2: PHP Version */ 46 printf( wp_kses_post( __( '<a href="%1$s">PHP</a> version %2$s or greater.', 'wporg' ) ), esc_url( 'http://www.php.net/' ), '7.2');46 printf( wp_kses_post( __( '<a href="%1$s">PHP</a> version %2$s or greater.', 'wporg' ) ), esc_url( 'http://www.php.net/' ), RECOMMENDED_PHP ); 47 47 ?> 48 48 </li> 49 49 <li> … … 72 72 printf( 73 73 /* translators: 1: PHP Version including; 2: MySQL Version */ 74 74 wp_kses_post( __( 'Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP %1$s+ and MySQL %2$s+, but these versions have reached official End Of Life and as such <strong>may expose your site to security vulnerabilities</strong>.', 'wporg' ) ), 75 '5.2.4',75 MINIMUM_PHP, 76 76 '5.0' 77 77 ); 78 78 ?> … … 89 89 <li> 90 90 <?php 91 91 /* translators: PHP Version */ 92 printf( esc_html__( 'PHP %s or greater', 'wporg' ), '7.2');92 printf( esc_html__( 'PHP %s or greater', 'wporg' ), RECOMMENDED_PHP ); 93 93 ?> 94 94 </li> 95 95 <li> -
wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php
146 146 <p> 147 147 <?php 148 148 printf( 149 /* translators: 1: URL to PHP website; 2: URL to MySQL website; 3: URL to MariaDB website*/150 wp_kses_post( __( 'We recommend servers running version 7.2 or greater of <a href="%1$s">PHP</a> and <a href="%2$s">MySQL</a> version 5.6 <em>OR</em> <a href="%3$s">MariaDB</a> version 10.0or greater.', 'wporg' ) ),149 /* translators: 1: URL to PHP website; 2: PHP version; 3: URL to MySQL website; 4: MySQL version; 5: URL to MariaDB website; 6: MariaDB version */ 150 wp_kses_post( __( 'We recommend servers running version %2$s or greater of <a href="%1$s">PHP</a> and <a href="%3$s">MySQL</a> version %4$s <em>OR</em> <a href="%5$s">MariaDB</a> version %6$s or greater.', 'wporg' ) ), 151 151 esc_url( 'http://www.php.net/' ), 152 RECOMMENDED_PHP, 152 153 esc_url( 'https://www.mysql.com/' ), 153 esc_url( 'https://mariadb.org/' ) 154 '5.6', 155 esc_url( 'https://mariadb.org/' ), 156 '10.0' 154 157 ); 155 158 ?> 156 159 <br>