WordPress.org

Make WordPress Core

Ticket #19697: welcome.diff

File welcome.diff, 1.0 KB (added by tw2113, 3 years ago)

Changed destination of "Create an About Me" link in the initial welcome display, and had it auto-add "About Me" as a title

  • wp-admin/includes/dashboard.php

     
    13071307                <ul> 
    13081308                <li><?php echo sprintf( __( 'View the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ), esc_url( get_permalink( 2 ) ), esc_url( get_permalink( 1 ) ) ); ?></li> 
    13091309                <li><?php echo sprintf( __( 'Delete the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ), esc_url( admin_url('edit.php?post_type=page') ), esc_url( admin_url('edit.php') ) ); ?></li> 
    1310                 <li><?php echo sprintf( __( '<a href="%s">Create an About Me page</a>' ), esc_url( admin_url('edit.php?post_type=page') ) ); ?></li> 
     1310                <li><?php echo sprintf( __( '<a href="%s">Create an About Me page</a>' ), esc_url( admin_url('post-new.php?post_type=page&post_title=About%20Me') ) ); ?></li> 
    13111311                <li><?php echo sprintf( __( '<a href="%s">Write your first post</a>' ), esc_url( admin_url('post-new.php') ) ); ?></li> 
    13121312                </ul> 
    13131313        </div>