Make WordPress Core


Ignore:
Timestamp:
12/01/2011 04:38:51 AM (13 years ago)
Author:
nacin
Message:

Finalize the code which redirects to about.php after a core update. Only triggers on update-core.php in case wp_update_core() is called in a different context.
props ocean90 for initial patch. fixes #18467.

File:
1 edited

Legend:

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

    r19511 r19524  
    379379        if ('up_to_date' != $result->get_error_code() )
    380380            show_message( __('Installation Failed') );
    381     } else {
    382         show_message( __('WordPress updated successfully') );
    383         show_message( '<a href="' . esc_url( self_admin_url() ) . '">' . __('Go to Dashboard') . '</a>' );
    384     }
    385     echo '</div>';
     381        echo '</div>';
     382        return;
     383    }
     384
     385    show_message( __('WordPress updated successfully') );
     386    show_message( __('WordPress updated successfully') );
     387    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>' );
     388    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>' );
     389    ?>
     390    </div>
     391    <script type="text/javascript">
     392    //window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>';
     393    </script>
     394    <?php
    386395}
    387396
Note: See TracChangeset for help on using the changeset viewer.