Changeset 8065
- Timestamp:
- 01/10/2019 05:45:59 AM (6 years ago)
- Location:
- sites/trunk
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/serve-happy/1.0/include.php
r6806 r8065 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, '>=' ), -
sites/trunk/api.wordpress.org/public_html/core/serve-happy/1.0/index.php
r6728 r8065 7 7 8 8 require __DIR__ . '/include.php'; 9 require __DIR__ . '/config.php';9 require WPORGPATH . 'wp-content/mu-plugins/pub/servehappy-config.php'; 10 10 11 11 // Output the API response. -
sites/trunk/api.wordpress.org/public_html/core/serve-happy/1.0/tests/bootstrap.php
r6728 r8065 22 22 } 23 23 24 require dirname( __DIR__ ) . '/config.php';25 24 require dirname( __DIR__ ) . '/include.php'; 25 if ( defined( 'WPORGPATH' ) ) { 26 // Running on WordPress.org, include the main mu-plugins config 27 require WPORGPATH . 'wp-content/mu-plugins/pub/servehappy-config.php'; 28 } else { 29 // Assume meta-environment. 30 require dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) . '/wordpress.org/public_html/wp-content/mu-plugins/pub/servehappy-config.php'; 31 } -
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/servehappy-config.php
r8064 r8065 1 1 <?php 2 2 namespace WordPressdotorg\API\Serve_Happy; 3 /** 4 * Plugin Name: Servehappy Versions 5 * Description: Defines PHP version constants used by the Servehappy API and throughout wordpress.org. 6 * Version: 1.0 7 * Author: WordPress.org 8 * Author URI: https://wordpress.org/ 9 * License: GPLv2 or later 10 */ 3 11 4 12 // The latest branch of PHP which WordPress.org recommends. 5 13 define( 'RECOMMENDED_PHP', '7.3' ); 14 15 // The oldest branch of PHP which WordPress core still works with. 16 define( 'MINIMUM_PHP', '5.2.4' ); 6 17 7 18 // The lowest branch of PHP which is actively supported.
Note: See TracChangeset
for help on using the changeset viewer.