Make WordPress Core


Ignore:
Timestamp:
01/06/2012 05:53:41 PM (15 years ago)
Author:
nacin
Message:

Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r19684 r19699  
    181181        } else {
    182182                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>';
    184184        }
    185185        dismissed_updates();
     
    383383
    384384        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>' );
    387387        ?>
    388388        </div>
    389389        <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' ); ?>';
    391391        </script>
    392392        <?php
Note: See TracChangeset for help on using the changeset viewer.