Make WordPress Core

Changeset 38899


Ignore:
Timestamp:
10/25/2016 03:14:31 AM (8 years ago)
Author:
dd32
Message:

Drop the requirement for the entry points to WordPress to be parsable by PHP4.

Previously we ensured that the entry points to WordPress were parsable by PHP4 in order to display a friendly not-supported-php error message.
However, for the last two years the main entry points have not actually parsed, and we've only added extra parse errors since it last worked in 3.9, so it's time we just remove this 'feature'.
The PHP version checks are still there for PHP 5.0/5.1, and so it's inplace when we eventually drop PHP 5.2 support.

See #29489.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/index.php

    r38725 r38899  
    3434$help = '<p>' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.' ) . '</p>';
    3535
    36 // Not using chaining here, so as to be parseable by PHP4.
    3736$screen = get_current_screen();
    3837
  • trunk/src/wp-admin/setup-config.php

    r38424 r38899  
    55 * The permissions for the base directory must allow for writing files in order
    66 * for the wp-config.php to be created using this page.
    7  *
    8  * @internal This file must be parsable by PHP4.
    97 *
    108 * @package WordPress
     
    317315
    318316    $key = 0;
    319     // Not a PHP5-style by-reference foreach, as this file must be parseable by PHP4.
    320317    foreach ( $config_file as $line_num => $line ) {
    321318        if ( '$table_prefix  =' == substr( $line, 0, 16 ) ) {
  • trunk/src/wp-includes/load.php

    r38814 r38899  
    22/**
    33 * These functions are needed to load WordPress.
    4  *
    5  * @internal This file must be parsable by PHP4.
    64 *
    75 * @package WordPress
  • trunk/src/wp-load.php

    r37207 r38899  
    1313 * directory to allow the WordPress directory to remain
    1414 * untouched.
    15  *
    16  * @internal This file must be parsable by PHP4.
    1715 *
    1816 * @package WordPress
  • trunk/src/wp-settings.php

    r38863 r38899  
    55 *
    66 * Allows for some configuration in wp-config.php (see default-constants.php)
    7  *
    8  * @internal This file must be parsable by PHP4.
    97 *
    108 * @package WordPress
Note: See TracChangeset for help on using the changeset viewer.