Make WordPress Core


Ignore:
Timestamp:
09/04/2012 08:31:14 PM (13 years ago)
Author:
nacin
Message:

Ensure we are parseable by PHP4 until wp_check_php_mysql_versions() has a chance to run.

Merges [21715], [21716] to the 3.4 branch.
props SergeyBiryukov.
fixes #21316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-admin/index.php

    r20715 r21739  
    22/**
    33 * Dashboard Administration Screen
     4 *
     5 * @internal This file should be parseable by PHP4.
    46 *
    57 * @package WordPress
     
    3335$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 in the upper corner.' ) . '</p>';
    3436
    35 get_current_screen()->add_help_tab( array(
     37// Not using chaining here, so as to be parseable by PHP4.
     38$screen = get_current_screen();
     39
     40$screen->add_help_tab( array(
    3641    'id'      => 'overview',
    3742    'title'   => __( 'Overview' ),
     
    4449$help .= '<p>' . __('Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '</p>';
    4550
    46 get_current_screen()->add_help_tab( array(
     51$screen->add_help_tab( array(
    4752    'id'      => 'help-navigation',
    4853    'title'   => __('Navigation'),
     
    5560$help .= '<p>' . __('<strong>Box Controls</strong> - Click the title bar of the box to expand or collapse it. In addition, some box have configurable content, and will show a &#8220;Configure&#8221; link in the title bar if you hover over it.') . '</p>';
    5661
    57 get_current_screen()->add_help_tab( array(
     62$screen->add_help_tab( array(
    5863    'id'      => 'help-layout',
    5964    'title'   => __('Layout'),
     
    7984    $help .= '<p>' . __('<strong>Welcome</strong> - Shows links for some of the most common tasks when setting up a new site.') . '</p>';
    8085
    81 get_current_screen()->add_help_tab( array(
     86$screen->add_help_tab( array(
    8287    'id'      => 'help-content',
    8388    'title'   => __('Content'),
     
    8792unset( $help );
    8893
    89 get_current_screen()->set_help_sidebar(
     94$screen->set_help_sidebar(
    9095    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    9196    '<p>' . __( '<a href="http://codex.wordpress.org/Dashboard_Screen" target="_blank">Documentation on Dashboard</a>' ) . '</p>' .
Note: See TracChangeset for help on using the changeset viewer.