Skip to content

Commit

Permalink
WP 5.4.2; Language Switcher Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpenguin committed Jun 23, 2020
1 parent 1b27beb commit 0f2a692
Show file tree
Hide file tree
Showing 30 changed files with 649 additions and 509 deletions.
41 changes: 33 additions & 8 deletions wp-admin/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,42 @@
</nav>
</div>

<div class="about__section is-feature has-accent-background-color">
<h1><?php _e( 'Say hello to more and better.' ); ?></h1>

<p><?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever&mdash;and boosts in speed you can feel.' ); ?></p>
</div>

<hr />

<div class="about__section changelog">
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
23
),
'5.4.2',
number_format_i18n( 23 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.4.2' )
)
);
?>
</p>
<p>
<?php
printf(
Expand Down Expand Up @@ -73,14 +106,6 @@

<hr />

<div class="about__section is-feature has-accent-background-color">
<h1><?php _e( 'Say hello to more and better.' ); ?></h1>

<p><?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever&mdash;and boosts in speed you can feel.' ); ?></p>
</div>

<hr />

<div class="about__section has-2-columns has-subtle-background-color">
<h2 class="is-section-header">
<?php
Expand Down
4 changes: 1 addition & 3 deletions wp-admin/css/common-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3923,8 +3923,7 @@ img {
}

.fileedit-sub input[type="submit"] {
margin-bottom: 0px;
padding: 0px 18px;
margin-bottom: 0;
}

#documentation label[for="docs-list"] {
Expand All @@ -3938,7 +3937,6 @@ img {

#documentation input[type="button"] {
margin-bottom: 0;
padding: 8px 18px;
}

#wpfooter {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/common-rtl.min.css

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -3922,8 +3922,7 @@ img {
}

.fileedit-sub input[type="submit"] {
margin-bottom: 0px;
padding: 0px 18px;
margin-bottom: 0;
}

#documentation label[for="docs-list"] {
Expand All @@ -3937,7 +3936,6 @@ img {

#documentation input[type="button"] {
margin-bottom: 0;
padding: 8px 18px;
}

#wpfooter {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/common.min.css

Large diffs are not rendered by default.

Binary file modified wp-admin/images/w-logo-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public function get_test_php_version() {
sprintf(
/* translators: %s: The minimum recommended PHP version. */
__( 'PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are faster and more secure, so staying up to date will help your site&#8217;s overall performance and security. The minimum recommended version of PHP is %s.' ),
$response['recommended_version']
$response ? $response['recommended_version'] : ''
)
),
'actions' => sprintf(
Expand Down Expand Up @@ -2289,7 +2289,13 @@ public function wp_cron_scheduled_check() {
}

if ( ! is_wp_error( $result_fetch ) ) {
$results[] = json_decode( wp_remote_retrieve_body( $result_fetch ) );
$result = json_decode( wp_remote_retrieve_body( $result_fetch ), true );
} else {
$result = false;
}

if ( is_array( $result ) ) {
$results[] = $result;
} else {
$results[] = array(
'status' => 'recommended',
Expand Down
5 changes: 3 additions & 2 deletions wp-admin/includes/class-wp-terms-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,14 @@ protected function handle_row_actions( $tag, $column_name, $primary ) {
* Filters the action links displayed for each term in the Tags list table.
*
* @since 2.8.0
* @deprecated 3.0.0 Use {@see '{$taxonomy}_row_actions'} instead.
* @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter.
* @since 5.4.2 Restored (un-deprecated).
*
* @param string[] $actions An array of action links to be displayed. Default
* 'Edit', 'Quick Edit', 'Delete', and 'View'.
* @param WP_Term $tag Term object.
*/
$actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' );
$actions = apply_filters( 'tag_row_actions', $actions, $tag );

/**
* Filters the action links displayed for each term in the terms list table.
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/includes/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@ function edit_form_image_editor( $post ) {

?>
</label>
<?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>

</div>
<?php
Expand Down
37 changes: 30 additions & 7 deletions wp-admin/includes/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,23 +686,46 @@ function set_screen_options() {
}
break;
default:
if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) {
/**
* Filters a screen option value before it is set.
*
* The filter can also be used to modify non-standard [items]_per_page
* settings. See the parent function for a full list of standard options.
*
* Returning false to the filter will skip saving the current option.
*
* @since 2.8.0
* @since 5.4.2 Only applied to options ending with '_page',
* or the 'layout_columns' option.
*
* @see set_screen_options()
*
* @param bool $keep Whether to save or skip saving the screen option value.
* Default false.
* @param string $option The option name.
* @param int $value The number of rows to use.
*/
$value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}

/**
* Filters a screen option value before it is set.
*
* The filter can also be used to modify non-standard [items]_per_page
* settings. See the parent function for a full list of standard options.
* The dynamic portion of the hook, `$option`, refers to the option name.
*
* Returning false to the filter will skip saving the current option.
*
* @since 2.8.0
* @since 5.4.2
*
* @see set_screen_options()
*
* @param bool $keep Whether to save or skip saving the screen option value. Default false.
* @param string $option The option name.
* @param int $value The number of rows to use.
* @param bool $keep Whether to save or skip saving the screen option value.
* Default false.
* @param string $option The option name.
* @param int $value The number of rows to use.
*/
$value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
$value = apply_filters( "set_screen_option_{$option}", false, $option, $value );

if ( false === $value ) {
return;
Expand Down
2 changes: 2 additions & 0 deletions wp-admin/includes/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ function get_theme_feature_list( $api = true ) {

__( 'Features' ) => array(
'accessibility-ready' => __( 'Accessibility Ready' ),
'block-styles' => __( 'Block Editor Styles' ),
'custom-background' => __( 'Custom Background' ),
'custom-colors' => __( 'Custom Colors' ),
'custom-header' => __( 'Custom Header' ),
Expand All @@ -300,6 +301,7 @@ function get_theme_feature_list( $api = true ) {
'four-columns' => __( 'Four Columns' ),
'left-sidebar' => __( 'Left Sidebar' ),
'right-sidebar' => __( 'Right Sidebar' ),
'wide-blocks' => __( 'Wide Blocks' ),
),

);
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
</tr>
<?php foreach ( $broken_themes as $broken_theme ) : ?>
<tr>
<td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?></td>
<td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td>
<td><?php echo $broken_theme->errors()->get_error_message(); ?></td>
<?php
if ( $can_resume ) {
Expand Down
4 changes: 2 additions & 2 deletions wp-comments-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;

// Add specific query arguments to display the awaiting moderation message.
if ( 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message.
if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
$location = add_query_arg(
array(
'unapproved' => $comment->comment_ID,
Expand Down
4 changes: 2 additions & 2 deletions wp-content/themes/guny/assets/js/bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0f2a692

Please sign in to comment.