From: Zachary Vance Date: Tue, 21 Jun 2016 00:56:46 +0000 (-0700) Subject: Update to wordpress 4.5.2 X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=a819bb212218e7b34e6a47225bfa90688b811d46;p=za3k_blog.git Update to wordpress 4.5.2 --- diff --git a/license.txt b/license.txt index 93c3881..9166e62 100644 --- a/license.txt +++ b/license.txt @@ -1,6 +1,6 @@ WordPress - Web publishing software -Copyright 2014 by the contributors +Copyright 2011-2016 by the contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/readme.html b/readme.html index faad3e9..d4ef782 100644 --- a/readme.html +++ b/readme.html @@ -9,15 +9,15 @@

WordPress -
Version 3.9.1 +
Version 4.5.2

Semantic Personal Publishing Platform

-

First Things First

+

First Things First

Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I’m proud to be a part of. Thousands of hours have gone into WordPress, and we’re dedicated to making it better every day. Thank you for making it part of your world.

— Matt Mullenweg

-

Installation: Famous 5-minute install

+

Installation: Famous 5-minute install

  1. Unzip the package in an empty directory and upload everything.
  2. Open wp-admin/install.php in your browser. It will take you through the process to set up a wp-config.php file with your database connection details. @@ -32,15 +32,15 @@
  3. The installer should then send you to the login page. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on “Profile” to change the password.
-

Updating

-

Using the Automatic Updater

+

Updating

+

Using the Automatic Updater

If you are updating from version 2.7 or higher, you can use the automatic updater:

  1. Open wp-admin/update-core.php in your browser and follow the instructions.
  2. You wanted more, perhaps? That’s it!
-

Updating Manually

+

Updating Manually

  1. Before you update anything, make sure you have backup copies of any files you may have modified such as index.php.
  2. Delete your old WordPress files, saving ones you’ve modified.
  3. @@ -48,48 +48,50 @@
  4. Point your browser to /wp-admin/upgrade.php.
-

Migrating from other systems

-

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

+

Migrating from other systems

+

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

-

System Requirements

+

System Requirements

-

System Recommendations

+

Recommendations

-

Online Resources

+

Online Resources

If you have any questions that aren’t addressed in this document, please take advantage of WordPress’ numerous online resources:

-
The WordPress Codex
+
The WordPress Codex
The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.
The WordPress Blog
This is where you’ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.
-
WordPress Planet
+
WordPress Planet
The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.
WordPress Support Forums
If you’ve looked everywhere and still can’t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.
-
WordPress IRC Channel
+
WordPress IRC Channel
There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (irc.freenode.net #wordpress)
-

Final Notes

+

Final Notes

-

Share the Love

+

Share the Love

WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.

WordPress is the official continuation of b2/cafélog, which came from Michel V. The work has been continued by the WordPress developers. If you would like to support WordPress, please consider donating.

-

License

+

License

WordPress is free software, and is released under the terms of the GPL version 2 or (at your option) any later version. See license.txt.

diff --git a/wp-activate.php b/wp-activate.php index 5e9be6e..bfd5620 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -1,7 +1,7 @@ -
+
+

@@ -84,7 +85,7 @@ get_header(); get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); @@ -105,28 +106,32 @@ get_header(); echo '

'.$result->get_error_message().'

'; } } else { - extract($result); - $url = get_blogaddress_by_id( (int) $blog_id); - $user = get_userdata( (int) $user_id); + $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : ''; + $user = get_userdata( (int) $result['user_id'] ); ?>

user_login ?>

-

+

- -

View your site or Log in'), $url, $url . 'wp-login.php' ); ?>

+ +

View your site or Log in' ), $url, esc_url( $login_url ) ); ?>

Log in or go back to the homepage.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?>

+
- + - -
- -

- -
- -
- - - -
-

-

Version %1$s addressed %2$s bug.', - 'Version %1$s addressed %2$s bugs.', 34 ), '3.9.1', number_format_i18n( 34 ) ); ?> - the release notes.' ), 'http://codex.wordpress.org/Version_3.9.1' ); ?> -

-
- -
-
- - - - - -
-

-
-
- -

-

+
+

+ +
+
+ + + +
+

+

Version %s addressed some security issues.' ), '4.5.2' ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.5.2' ); ?> +

+

Version %1$s addressed %2$s bug.', + 'Version %1$s addressed %2$s bugs.', 12 ), '4.5.1', number_format_i18n( 12 ) ); ?> + the release notes.' ), 'https://codex.wordpress.org/Version_4.5.1' ); ?> +

-
- -

-

-
-
- -

-

-
-
- -
-
-
- -

-

+
+ +
-
-
-
- -
-
- - +
+ +
+

+
+ +

+

+
+
+ +

+

<code>.' ); ?>

-

-

-
-
- -
-
-
-
- '//s.w.org/images/core/3.9/widgets.mp4', - 'ogv' => '//s.w.org/images/core/3.9/widgets.ogv', - 'webm' => '//s.w.org/images/core/3.9/widgets.webm', - 'loop' => true, - 'autoplay' => true, - 'width' => 499 - ) ); - ?> -

-

-

-
-
- -

-

- -

- +
+ +
+

+
+ +

+

+ customizer.' ), + esc_url( $customize_url ) + ); + } else { + _e( 'Preview mobile, tablet, and desktop views directly in the customizer.' ); + } + ?>

+
+
+ +

+

+ Site Identity section of the customizer.' ), + esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) ) + ); + } else { + _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' ); + } + ?>

+
-
-
-
- -
-

+
+ +
+

+ +
+
+

+

comprehensive framework for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), + 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' + ); + if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) { + if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) { + printf( + /* translators: %s: URL to Menus section of the customizer */ + ' ' . __( 'See it in action with Menus.' ), + esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ) + ); + } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget. + printf( + /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */ + ' ' . __( 'See it in action with Menus or Widgets.' ), + esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ), + esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) ) + ); + } + } + ?>

+
+
+

+

It’s really cool.' ), + 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + ); + ?>

+
+
+

+

+
+
-
-
-

-

+
+
+

+

wp_add_inline_script()' + ); + ?>

+
+
+

+

directly overridden by themes via the template hierarchy.' ), + 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' + ); + ?>

+
+
-

-

-
-
-

-

+
+ + + + | + + +
-

-

-
-
-

-

doing_action() and doing_filter(), and manipulate custom image sizes with has_image_size() and remove_image_size().' ); ?>

-

-
- -
- -
- - | - - -
- -
+
Version %1$s addressed a security issue.', - 'Version %1$s addressed some security issues.' ); +/* translators: %s: WordPress version number */ +__( 'Version %s addressed one security issue.' ); +/* translators: %s: WordPress version number */ +__( 'Version %s addressed some security issues.' ); /* translators: 1: WordPress version number, 2: plural number of bugs. */ _n_noop( 'Version %1$s addressed %2$s bug.', @@ -277,4 +224,5 @@ _n_noop( 'Version %1$s addressed a security issue and fixed %2$ _n_noop( 'Version %1$s addressed some security issues and fixed %2$s bug.', 'Version %1$s addressed some security issues and fixed %2$s bugs.' ); +/* translators: %s: Codex URL */ __( 'For more information, see the release notes.' ); diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index f7aae0f..f3a816a 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -5,7 +5,7 @@ * @package WordPress * @subpackage Administration * - * @link http://codex.wordpress.org/AJAX_in_Plugins + * @link https://codex.wordpress.org/AJAX_in_Plugins */ /** @@ -14,12 +14,14 @@ * @since 2.1.0 */ define( 'DOING_AJAX', true ); -define( 'WP_ADMIN', true ); +if ( ! defined( 'WP_ADMIN' ) ) { + define( 'WP_ADMIN', true ); +} /** Load WordPress Bootstrap */ require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); -/** Allow for cross-domain requests (from the frontend). */ +/** Allow for cross-domain requests (from the front end). */ send_origin_headers(); // Require an action parameter @@ -54,13 +56,18 @@ $core_actions_post = array( 'hidden-columns', 'update-welcome-panel', 'menu-get-metabox', 'wp-link-ajax', 'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink', 'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order', - 'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-fullscreen-save-post', + 'save-widget', 'delete-inactive-widgets', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment', 'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor', 'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs', - 'save-user-color-scheme', 'update-widget', 'query-themes', + 'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail', + 'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post', + 'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', ); +// Deprecated +$core_actions_post[] = 'wp-fullscreen-save-post'; + // Register core Ajax calls. if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get ) ) add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 ); @@ -74,7 +81,7 @@ if ( is_user_logged_in() ) { /** * Fires authenticated AJAX actions for logged-in users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.1.0 @@ -84,7 +91,7 @@ if ( is_user_logged_in() ) { /** * Fires non-authenticated AJAX actions for logged-out users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.8.0 diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 0619c86..a99eaba 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -15,7 +15,7 @@ if ( !defined('ABSPATH') )
-