Ticket #19697: welcome.diff

File welcome.diff, 1.0 KB (added by tw2113, 17 months ago)

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

Line 
1Index: wp-admin/includes/dashboard.php
2===================================================================
3--- wp-admin/includes/dashboard.php     (revision 19650)
4+++ wp-admin/includes/dashboard.php     (working copy)
5@@ -1307,7 +1307,7 @@
6                <ul>
7                <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>
8                <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>
9-               <li><?php echo sprintf( __( '<a href="%s">Create an About Me page</a>' ), esc_url( admin_url('edit.php?post_type=page') ) ); ?></li>
10+               <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>
11                <li><?php echo sprintf( __( '<a href="%s">Write your first post</a>' ), esc_url( admin_url('post-new.php') ) ); ?></li>
12                </ul>
13        </div>