Changeset 19699
- Timestamp:
- 01/06/2012 05:53:41 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/about.php
r19663 r19699 14 14 list( $display_version ) = explode( '-', $wp_version ); 15 15 16 include( './admin-header.php' );16 include( ABSPATH . 'wp-admin/admin-header.php' ); 17 17 ?> 18 18 <div class="wrap about-wrap"> … … 39 39 <div class="feature-section images-stagger-right"> 40 40 <div class="feature-images"> 41 <img src=" images/screenshots/media-icon.png" width="200" class="angled-right" />42 <img src=" images/screenshots/drag-and-drop.png" width="200" class="angled-left" />41 <img src="<?php echo admin_url( 'images/screenshots/media-icon.png' ); ?>" width="200" class="angled-right" /> 42 <img src="<?php echo admin_url( 'images/screenshots/drag-and-drop.png' ); ?>" width="200" class="angled-left" /> 43 43 </div> 44 44 <div class="left-feature"> … … 70 70 <div class="feature-section screenshot-features"> 71 71 <div class="angled-left"> 72 <img src=" images/screenshots/admin-flyouts.png" />72 <img src="<?php echo admin_url( 'images/screenshots/admin-flyouts.png' ); ?>" /> 73 73 <h4><?php _e( 'Responsive Design' ); ?></h4> 74 74 <p><?php _e( 'Certain dashboard screens have been updated to look better at various sizes, including improved iPad/tablet support.' ); ?></p> 75 75 </div> 76 76 <div class="angled-right"> 77 <img src=" images/screenshots/help-screen.png" />77 <img src="<?php echo admin_url( 'images/screenshots/help-screen.png' ); ?>" /> 78 78 <h4><?php _e( 'Help Tabs' ); ?></h4> 79 79 <p><?php _e( 'The Help tabs located in the upper corner of the dashboard screens below your name have gotten a facelift. Help content is broken into smaller sections for easier access, with links to relevant documentation and the support forums always visible.' ); ?></p> … … 87 87 <div class="feature-section images-stagger-right"> 88 88 <div class="feature-images"> 89 <img src=" images/screenshots/new-feature-pointer.png" class="angled-right" />90 <img src=" images/screenshots/welcome-screen.png" class="angled-left" />89 <img src="<?php echo admin_url( 'images/screenshots/new-feature-pointer.png' ); ?>" class="angled-right" /> 90 <img src="<?php echo admin_url( 'images/screenshots/welcome-screen.png' ); ?>" class="angled-left" /> 91 91 </div> 92 92 <div class="left-feature"> … … 110 110 <div> 111 111 <h4><?php _e( 'Better Co-Editing' ); ?></h4> 112 <img src=" images/screenshots/coediting.png" class="element-screenshot" />112 <img src="<?php echo admin_url( 'images/screenshots/coediting.png' ); ?>" class="element-screenshot" /> 113 113 <p><?php _e( 'Have you ever gone to edit a post after someone else has finished with it, only to get an alert that tells you the other person is still editing the post? From now on, you’ll only get that alert if another person is still on the editing screen — no more time lag.' ); ?></p> 114 114 </div> … … 162 162 <div class="return-to-dashboard"> 163 163 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> 164 <a href="<?php echo esc_url( network_admin_url( 'update-core.php' ) ); ?>"><?php164 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php 165 165 is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); 166 166 ?></a> | 167 167 <?php endif; ?> 168 <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Go to Dashboard → Home' ); ?></a> 168 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php 169 is_network_admin() ? _e( 'Go to Dashboard' ) : _e( 'Go to Dashboard → Home' ); ?></a> 169 170 </div> 170 171 … … 172 173 <?php 173 174 174 include( './admin-footer.php' );175 include( ABSPATH . 'wp-admin/admin-footer.php' ); 175 176 176 177 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings. -
trunk/wp-admin/credits.php
r19571 r19699 45 45 list( $display_version ) = explode( '-', $wp_version ); 46 46 47 include( './admin-header.php' );47 include( ABSPATH . 'wp-admin/admin-header.php' ); 48 48 ?> 49 49 <div class="wrap about-wrap"> … … 74 74 /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */ 75 75 __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ) . '</p>'; 76 include( './admin-footer.php' );76 include( ABSPATH . 'wp-admin/admin-footer.php' ); 77 77 exit; 78 78 } … … 135 135 <?php 136 136 137 include( './admin-footer.php' );137 include( ABSPATH . 'wp-admin/admin-footer.php' ); 138 138 139 139 return; -
trunk/wp-admin/freedoms.php
r19536 r19699 14 14 list( $display_version ) = explode( '-', $wp_version ); 15 15 16 include( './admin-header.php' );16 include( ABSPATH . 'wp-admin/admin-header.php' ); 17 17 ?> 18 18 <div class="wrap about-wrap"> … … 55 55 56 56 </div> 57 <?php include( './admin-footer.php' ); ?>57 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> -
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 -
trunk/wp-admin/update-core.php
r19684 r19699 181 181 } else { 182 182 list( $normalized_version ) = explode( '-', $wp_version ); 183 echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( admin_url( 'about.php' ) ), $normalized_version ) . '</p>';183 echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '</p>'; 184 184 } 185 185 dismissed_updates(); … … 383 383 384 384 show_message( __('WordPress updated successfully') ); 385 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>.' ), $result, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' );386 show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $result, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' );385 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>.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); 386 show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '</span>' ); 387 387 ?> 388 388 </div> 389 389 <script type="text/javascript"> 390 window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>';390 window.location = '<?php echo self_admin_url( 'about.php?upgraded' ); ?>'; 391 391 </script> 392 392 <?php -
trunk/wp-includes/admin-bar.php
r19610 r19699 76 76 'id' => 'wp-logo', 77 77 'title' => '<span class="ab-icon"></span>', 78 'href' => admin_url( 'about.php' ),78 'href' => is_network_admin() ? network_admin_url( 'about.php' ) : admin_url( 'about.php' ), 79 79 'meta' => array( 80 80 'title' => __('About WordPress'), … … 88 88 'id' => 'about', 89 89 'title' => __('About WordPress'), 90 'href' => admin_url('about.php'),90 'href' => is_network_admin() ? network_admin_url( 'about.php' ) : admin_url( 'about.php' ), 91 91 ) ); 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.