diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/includes/dashboard.php --- a/wp/wp-admin/includes/dashboard.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/includes/dashboard.php Tue Sep 27 16:37:53 2022 +0200 @@ -242,7 +242,7 @@ wp_dashboard_trigger_widget_control( $meta_box['id'] ); wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' ); echo ''; - submit_button( __( 'Submit' ) ); + submit_button( __( 'Save Changes' ) ); echo ''; } @@ -685,7 +685,7 @@ if ( $comment->comment_post_ID > 0 ) { $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); $comment_post_url = get_the_permalink( $comment->comment_post_ID ); - $comment_post_link = "$comment_post_title"; + $comment_post_link = '' . $comment_post_title . ''; } else { $comment_post_link = ''; } @@ -1350,8 +1350,9 @@

-

@@ -1413,7 +1414,7 @@ * that they match the expected location before including them. * Use endonyms (native locale names) whenever possible. */ - __( 'We couldn’t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ), + __( '%s could not be located. Please try another nearby city. For example: Kansas City; Springfield; Portland.' ), '{{data.unknownCity}}' ); ?> @@ -1461,7 +1462,7 @@ organize a WordPress event?' ), + __( 'There are no events scheduled near %1$s at the moment. Would you like to organize a WordPress event?' ), '{{ data.location.description }}', __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) ); @@ -1471,7 +1472,7 @@ organize a WordPress event?' ), + __( 'There are no events scheduled near you at the moment. Would you like to organize a WordPress event?' ), __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) ); ?> @@ -1689,7 +1690,7 @@ if ( ! empty( $response['img_src'] ) ) { $img_src = ( is_ssl() && ! empty( $response['img_src_ssl'] ) ) ? $response['img_src_ssl'] : $response['img_src']; - $notice .= '
'; + $notice .= '
'; $browser_nag_class = ' has-browser-icon'; } $notice .= "

{$msg}

"; @@ -1726,8 +1727,9 @@ * * @since 3.2.0 * - * @param string $notice The notice content. - * @param array $response An array containing web browser information. See `wp_check_browser_version()`. + * @param string $notice The notice content. + * @param array|false $response An array containing web browser information, or + * false on failure. See `wp_check_browser_version()`. */ echo apply_filters( 'browse-happy-notice', $notice, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } @@ -1985,62 +1987,67 @@ * Displays a welcome panel to introduce users to WordPress. * * @since 3.3.0 + * @since 5.9.0 Send users to the Site Editor if the active theme is block-based. */ function wp_welcome_panel() { + list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); + $can_customize = current_user_can( 'customize' ); + $is_block_theme = wp_is_block_theme(); ?>
-

-

-
-
- -

- - - - true ) ) ) > 1 ) ) : ?> - -

- change your theme completely' ), $themes_link ); - ?> -

- +
+
+ +
+

+

+ + + +

-
-

-
    - -
  • ' . __( 'Edit your front page' ) . '', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?>
  • -
  • ' . __( 'Add additional pages' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • - -
  • ' . __( 'Edit your front page' ) . '', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?>
  • -
  • ' . __( 'Add additional pages' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • -
  • ' . __( 'Add a blog post' ) . '', admin_url( 'post-new.php' ) ); ?>
  • - -
  • ' . __( 'Write your first blog post' ) . '', admin_url( 'post-new.php' ) ); ?>
  • -
  • ' . __( 'Add an About page' ) . '', admin_url( 'post-new.php?post_type=page' ) ); ?>
  • -
  • ' . __( 'Set up your homepage' ) . '', current_user_can( 'customize' ) ? add_query_arg( 'autofocus[section]', 'static_front_page', admin_url( 'customize.php' ) ) : admin_url( 'options-reading.php' ) ); ?>
  • - -
  • ' . __( 'View your site' ) . '', home_url( '/' ) ); ?>
  • -
-
-
-

-
    - -
  • ' . __( 'Manage widgets' ) . '', admin_url( 'widgets.php' ) ); ?>
  • - - -
  • ' . __( 'Manage menus' ) . '', admin_url( 'nav-menus.php' ) ); ?>
  • - - -
  • ' . __( 'Turn comments on or off' ) . '', admin_url( 'options-discussion.php' ) ); ?>
  • - -
  • ' . __( 'Learn more about getting started' ) . '', __( 'https://wordpress.org/support/article/first-steps-with-wordpress/' ) ); ?>
  • -
-
+
+
+
+
+

+

+ +
+
+
+
+
+ +

+

+ + +

+

+ + + + +
+
+
+
+
+ +

+

+ + +

+

+ + +
+