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

Update to WordPress version 4.7.4. #112

Merged
merged 1 commit into from Apr 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions wp-admin/about.php
Expand Up @@ -45,6 +45,10 @@

<div class="changelog point-releases">
<h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.', 47 ), '4.7.4', number_format_i18n( 47 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.4' ); ?>
</p>
<p><?php printf( _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.', 39 ), '4.7.3', number_format_i18n( 39 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.3' ); ?>
Expand Down
5 changes: 5 additions & 0 deletions wp-admin/css/customize-controls-rtl.css
Expand Up @@ -294,6 +294,11 @@ body {
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
}

#customize-theme-controls .customize-pane-child.skip-transition {
-webkit-transition: none;
transition: none;
}

#customize-info,
#customize-theme-controls .customize-pane-parent {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/customize-controls-rtl.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions wp-admin/css/customize-controls.css
Expand Up @@ -294,6 +294,11 @@ body {
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
}

#customize-theme-controls .customize-pane-child.skip-transition {
-webkit-transition: none;
transition: none;
}

#customize-info,
#customize-theme-controls .customize-pane-parent {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/customize-controls.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions wp-admin/css/customize-nav-menus-rtl.css
Expand Up @@ -161,6 +161,7 @@
outline: none;
overflow: hidden;
cursor: pointer;
text-align: center;
}

.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
Expand Down Expand Up @@ -532,6 +533,7 @@
box-shadow: none;
outline: none;
cursor: pointer;
text-align: center;
}

#available-menu-items .accordion-section-title .no-items,
Expand Down Expand Up @@ -623,6 +625,7 @@
box-shadow: none;
outline: none;
cursor: pointer;
text-align: center;
}

#available-menu-items .menu-item-handle .item-add:focus {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/customize-nav-menus-rtl.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions wp-admin/css/customize-nav-menus.css
Expand Up @@ -161,6 +161,7 @@
outline: none;
overflow: hidden;
cursor: pointer;
text-align: center;
}

.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
Expand Down Expand Up @@ -532,6 +533,7 @@
box-shadow: none;
outline: none;
cursor: pointer;
text-align: center;
}

#available-menu-items .accordion-section-title .no-items,
Expand Down Expand Up @@ -623,6 +625,7 @@
box-shadow: none;
outline: none;
cursor: pointer;
text-align: center;
}

#available-menu-items .menu-item-handle .item-add:focus {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/customize-nav-menus.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-admin/customize.php
Expand Up @@ -102,7 +102,7 @@
if ( is_rtl() ) {
$body_class .= ' rtl';
}
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );

$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading&hellip;' ) );

Expand Down
6 changes: 1 addition & 5 deletions wp-admin/includes/media.php
Expand Up @@ -2982,7 +2982,7 @@ function wp_add_id3_tag_data( &$metadata, $data ) {
if ( ! empty( $data[$version]['comments'] ) ) {
foreach ( $data[$version]['comments'] as $key => $list ) {
if ( 'length' !== $key && ! empty( $list ) ) {
$metadata[$key] = reset( $list );
$metadata[$key] = wp_kses_post( reset( $list ) );
// Fix bug in byte stream analysis.
if ( 'terms_of_use' === $key && 0 === strpos( $metadata[$key], 'yright notice.' ) )
$metadata[$key] = 'Cop' . $metadata[$key];
Expand Down Expand Up @@ -3072,8 +3072,6 @@ function wp_read_video_metadata( $file ) {

wp_add_id3_tag_data( $metadata, $data );

$metadata = wp_kses_post_deep( $metadata );

return $metadata;
}

Expand Down Expand Up @@ -3119,8 +3117,6 @@ function wp_read_audio_metadata( $file ) {

wp_add_id3_tag_data( $metadata, $data );

$metadata = wp_kses_post_deep( $metadata );

return $metadata;
}

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/includes/theme.php
Expand Up @@ -578,7 +578,7 @@ function wp_prepare_themes_for_js( $themes = null ) {
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
$customize_action = esc_url( add_query_arg(
array(
'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ),
'return' => urlencode( esc_url_raw( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ),
),
wp_customize_url( $slug )
) );
Expand Down
16 changes: 1 addition & 15 deletions wp-admin/install.php
Expand Up @@ -334,6 +334,7 @@ function display_setup_form( $error = null ) {

$scripts_to_print[] = 'user-profile';

display_header();
// Fill in the data we gathered
$weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';
$user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : '';
Expand All @@ -346,43 +347,28 @@ function display_setup_form( $error = null ) {
$error = false;
if ( empty( $user_name ) ) {
// TODO: poka-yoke
display_header();
display_setup_form( __( 'Please provide a valid username.' ) );
$error = true;
} elseif ( $user_name != sanitize_user( $user_name, true ) ) {
display_header();
display_setup_form( __( 'The username you provided has invalid characters.' ) );
$error = true;
} elseif ( $admin_password != $admin_password_check ) {
// TODO: poka-yoke
display_header();
display_setup_form( __( 'Your passwords do not match. Please try again.' ) );
$error = true;
} elseif ( empty( $admin_email ) ) {
// TODO: poka-yoke
display_header();
display_setup_form( __( 'You must provide an email address.' ) );
$error = true;
} elseif ( ! is_email( $admin_email ) ) {
// TODO: poka-yoke
display_header();
display_setup_form( __( 'Sorry, that isn&#8217;t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
$error = true;
}

if ( $error === false ) {
$wpdb->show_errors();
$result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );

// Log the user in and send them to wp-admin:
if ( ! headers_sent() ) {
wp_set_auth_cookie( $result['user_id'], true, is_ssl() );
wp_redirect( admin_url() );
exit;
}

// If headers have already been sent, fall back to a "Success!" message:
display_header();
?>

<h1><?php _e( 'Success!' ); ?></h1>
Expand Down