Skip to content

Commit 7e9848d

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38899 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7aa09b6 commit 7e9848d

5 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/wp-admin/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

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

3938
$screen->add_help_tab( array(

src/wp-admin/setup-config.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
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.
77
*
8-
* @internal This file must be parsable by PHP4.
9-
*
108
* @package WordPress
119
* @subpackage Administration
1210
*/
@@ -316,7 +314,6 @@ function setup_config_display_header( $body_classes = array() ) {
316314
}
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 ) ) {
322319
$config_file[ $line_num ] = '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n";

src/wp-includes/load.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
/**
33
* These functions are needed to load WordPress.
44
*
5-
* @internal This file must be parsable by PHP4.
6-
*
75
* @package WordPress
86
*/
97

src/wp-load.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
* directory to allow the WordPress directory to remain
1414
* untouched.
1515
*
16-
* @internal This file must be parsable by PHP4.
17-
*
1816
* @package WordPress
1917
*/
2018

src/wp-settings.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*
66
* Allows for some configuration in wp-config.php (see default-constants.php)
77
*
8-
* @internal This file must be parsable by PHP4.
9-
*
108
* @package WordPress
119
*/
1210

0 commit comments

Comments
 (0)