Changeset 19699 for trunk/wp-admin/includes/update-core.php
- Timestamp:
- 01/06/2012 05:53:41 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/update-core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r19596 r19699 602 602 * Redirect to the About WordPress page after a successful upgrade. 603 603 * 604 * This function is only needed when the existing install is older than 3.3.0 .604 * This function is only needed when the existing install is older than 3.3.0 (3.4.0 for multisite). 605 605 * 606 606 * @since 3.3.0 … … 610 610 global $wp_version, $pagenow, $action; 611 611 612 if ( version_compare( $wp_version, '3.3', '>=' ) ) 612 if ( is_multisite() ) { 613 // Change to self_admin_url(). 614 if ( version_compare( $wp_version, '3.4-alpha', '>=' ) ) 615 return; 616 } elseif ( version_compare( $wp_version, '3.3', '>=' ) ) { 613 617 return; 618 } 614 619 615 620 // Ensure we only run this on the update-core.php page. wp_update_core() could be called in other contexts. … … 625 630 // See do_core_upgrade() 626 631 show_message( __('WordPress updated successfully') ); 627 show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' ), $new_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' );628 show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $new_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' );632 show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' ), $new_version, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); 633 show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $new_version, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); 629 634 echo '</div>'; 630 635 ?> 631 636 <script type="text/javascript"> 632 window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';637 window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>'; 633 638 </script> 634 639 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)