Changeset 21716
- Timestamp:
- 09/04/2012 02:46:01 AM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r20715 r21716 2 2 /** 3 3 * Dashboard Administration Screen 4 * 5 * @internal This file should be parseable by PHP4. 4 6 * 5 7 * @package WordPress … … 33 35 $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>'; 34 36 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( 36 41 'id' => 'overview', 37 42 'title' => __( 'Overview' ), … … 44 49 $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>'; 45 50 46 get_current_screen()->add_help_tab( array(51 $screen->add_help_tab( array( 47 52 'id' => 'help-navigation', 48 53 'title' => __('Navigation'), … … 55 60 $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 “Configure” link in the title bar if you hover over it.') . '</p>'; 56 61 57 get_current_screen()->add_help_tab( array(62 $screen->add_help_tab( array( 58 63 'id' => 'help-layout', 59 64 'title' => __('Layout'), … … 79 84 $help .= '<p>' . __('<strong>Welcome</strong> - Shows links for some of the most common tasks when setting up a new site.') . '</p>'; 80 85 81 get_current_screen()->add_help_tab( array(86 $screen->add_help_tab( array( 82 87 'id' => 'help-content', 83 88 'title' => __('Content'), … … 87 92 unset( $help ); 88 93 89 get_current_screen()->set_help_sidebar(94 $screen->set_help_sidebar( 90 95 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 91 96 '<p>' . __( '<a href="http://codex.wordpress.org/Dashboard_Screen" target="_blank">Documentation on Dashboard</a>' ) . '</p>' . -
trunk/wp-admin/setup-config.php
r21715 r21716 220 220 221 221 $key = 0; 222 foreach ( $config_file as &$line ) { 222 // Not a PHP5-style by-reference foreach, as this file must be parseable by PHP4. 223 foreach ( $config_file as $line_num => $line ) { 223 224 if ( '$table_prefix =' == substr( $line, 0, 16 ) ) { 224 $ line= '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n";225 $config_file[ $line_num ] = '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n"; 225 226 continue; 226 227 } … … 237 238 case 'DB_PASSWORD' : 238 239 case 'DB_HOST' : 239 $ line= "define('" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "');\r\n";240 $config_file[ $line_num ] = "define('" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "');\r\n"; 240 241 break; 241 242 case 'AUTH_KEY' : … … 247 248 case 'LOGGED_IN_SALT' : 248 249 case 'NONCE_SALT' : 249 $ line= "define('" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "');\r\n";250 $config_file[ $line_num ] = "define('" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "');\r\n"; 250 251 break; 251 252 }
Note: See TracChangeset
for help on using the changeset viewer.