Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General: Add Learn WordPress links to admin Help panel and default comment #7866

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/wp-admin/_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://wordpress.org/documentation/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' .
'<p>' . __( '<a href="https://learn.wordpress.org/">Learn WordPress</a>' ) . '</p>' .
'<p>' . $wp_version_text . '</p>'
);

Expand Down
10 changes: 6 additions & 4 deletions src/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,16 @@ function wp_install_defaults( $user_id ) {
$first_comment_email = ! empty( $first_comment_email ) ? $first_comment_email : '[email protected]';
$first_comment_url = ! empty( $first_comment_url ) ? $first_comment_url : esc_url( __( 'https://wordpress.org/' ) );
$first_comment = ! empty( $first_comment ) ? $first_comment : sprintf(
/* translators: %s: Gravatar URL. */
/* translators: %1$s: Gravatar URL, %2$s: Learn WordPress URL */
__(
'Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from <a href="%s">Gravatar</a>.'
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from <a href="%1$s">Gravatar</a>. If you\'re new to WordPress, check these free <a href="%2$s">online courses at Learn WordPress</a>.'
),
/* translators: The localized Gravatar URL. */
esc_url( __( 'https://gravatar.com/' ) )
esc_url( __( 'https://gravatar.com/' ) ),
/* translators: The localized Learn WordPress URL. */
esc_url( __( 'https://learn.wordpress.org/learning-pathway/user/' ) )
);
$wpdb->insert(
$wpdb->comments,
Expand Down
Loading