Commit Graph

36157 Commits

Author SHA1 Message Date
Sergey Biryukov
4ec8c0bcfe Docs: Add missing @since entry for Walker::unset_children().
Props chiragpatel.
Fixes #39506.

git-svn-id: https://develop.svn.wordpress.org/trunk@39741 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 14:52:24 +00:00
Sergey Biryukov
b2fe8ed9f6 Docs: Use 3-digit, x.x.x style semantic versioning for @since entries in wp-admin/js/image-edit.js.
See #38748.

git-svn-id: https://develop.svn.wordpress.org/trunk@39740 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 14:38:11 +00:00
Sergey Biryukov
f216c498c2 Docs: Use 3-digit, x.x.x style semantic versioning for @since entries in wp-admin/js/word-count.js.
See #37718.

git-svn-id: https://develop.svn.wordpress.org/trunk@39739 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 14:18:43 +00:00
Sergey Biryukov
795e4a1db5 Docs: Add documentation for wp-admin/js/editor.js.
Props terwdan, ireneyoast.
Fixes #38933.

git-svn-id: https://develop.svn.wordpress.org/trunk@39738 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 14:13:44 +00:00
Sergey Biryukov
9e798d1bcb Docs: Correct @access entries for WP_Locale::init() and WP_Locale::register_globals().
Props keesiemeijer.
Fixes #39504.

git-svn-id: https://develop.svn.wordpress.org/trunk@39737 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 14:04:32 +00:00
Sergey Biryukov
d9d5174c29 Docs: Add missing @since entries for WP_Theme class methods.
Props keesiemeijer.
Fixes #39503.

git-svn-id: https://develop.svn.wordpress.org/trunk@39736 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 13:47:16 +00:00
Sergey Biryukov
e3dc88108d Docs: Correct @access entry for WP_User::filter property.
Add missing `@since` entries for `WP_User::back_compat_keys` and `WP_User::init()`.

Props keesiemeijer, prosti.
Fixes #39502, #39278.

git-svn-id: https://develop.svn.wordpress.org/trunk@39735 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 13:43:44 +00:00
Sergey Biryukov
5be7eb5ac3 Docs: Correct @access entries and duplicate hook references in WP_Customize_Selective_Refresh.
Props keesiemeijer.
Fixes #39501.

git-svn-id: https://develop.svn.wordpress.org/trunk@39734 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 13:37:54 +00:00
Sergey Biryukov
ddbf104453 Twenty Seventeen: Correct @param entries for twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons filters.
Props Jaydeep Rami, BharatKambariya.
Fixes #39488.

git-svn-id: https://develop.svn.wordpress.org/trunk@39733 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 13:34:13 +00:00
Sergey Biryukov
c7389223cd Twenty Seventeen: Correct @param entry for twentyseventeen_front_page_sections filter.
Props ketuchetan, priyankabehera155.
Fixes #39488.

git-svn-id: https://develop.svn.wordpress.org/trunk@39732 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 11:24:42 +00:00
Dominik Schilling (ocean90)
6cbe5b7a02 Twenty Seventeen: Introduce a theme-specific filter twentyseventeen_starter_content for customizing the starter content array.
Add some documentation to the default starter content.

Props sanket.parmar, celloexpressions.
Fixes #39109.

git-svn-id: https://develop.svn.wordpress.org/trunk@39720 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 19:28:27 +00:00
Sergey Biryukov
1601b92164 Docs: Add missing @param tag for show_post_locked_dialog filter.
Props keesiemeijer.
Fixes #39479.

git-svn-id: https://develop.svn.wordpress.org/trunk@39710 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 12:36:28 +00:00
Sergey Biryukov
fac3bbb51d Docs: Move install_network() DocBlock after the function_exists() call.
Props keesiemeijer.
Fixes #39478.

git-svn-id: https://develop.svn.wordpress.org/trunk@39709 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 12:33:34 +00:00
Sergey Biryukov
494340c71f Docs: Add variable to @param entry for whitelist_options filter.
Props keesiemeijer.
Fixes #39477.

git-svn-id: https://develop.svn.wordpress.org/trunk@39708 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 11:57:17 +00:00
Dion Hulse
c1fc065ac4 Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts.
Props dlh.
Fixes #39194.


git-svn-id: https://develop.svn.wordpress.org/trunk@39692 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:11:30 +00:00
Dion Hulse
bc231804a3 Mail: In PHPMailer 5.2.7 the case of the Send() method changed to send(), update our call for consistency with the library.
Props michalzuber.
Fixes #39469.


git-svn-id: https://develop.svn.wordpress.org/trunk@39691 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:09:06 +00:00
Dion Hulse
7cfb768da3 Updates: Properly define $filesystemForm to handle error in modals.
Ammends [39657].
See #39057.


git-svn-id: https://develop.svn.wordpress.org/trunk@39689 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 07:23:10 +00:00
Weston Ruter
de72bafedc Customize: Ensure theme_mod-cache of custom_css lookup of -1 short-circuits a WP_Query from being made.
Props dlh.
See #35395.
Fixes #39259.


git-svn-id: https://develop.svn.wordpress.org/trunk@39688 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 07:12:23 +00:00
dd32
134d073f3a Upgrade: Fix the installation of TwentySeventeen upon upgrade from an early version.
This reverts part of [31124] which incorrectly caused `$old_wp_version` to equal the version of WordPress being upgraded to due to global variable access changes.

See #38551, #30799.
Fixes #39138 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@39687 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 06:12:03 +00:00
westonruter
dcddb45ba0 Customize: Update customize.php URL with changeset_uuid param the instant a change is made instead of deferring until the changeset update request responds.
Props asalce.
Fixes #39227.


git-svn-id: https://develop.svn.wordpress.org/trunk@39686 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 05:17:39 +00:00
westonruter
5aa4339693 Customize: Remove extra left padding in core for site title and widgets in preview.
These styles should only be applied by theme stylesheets as needed.

Props sirbrillig.
Reverts parts of [39202] and [39233].
See #38651.
Fixes #39349.


git-svn-id: https://develop.svn.wordpress.org/trunk@39685 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 04:33:01 +00:00
rmccue
485afd7017 Upgrade/Install: Avoid creating nonce during installation.
When installing and using database-saved salts, wp_create_nonce() causes database errors as wp_salt() attempts to insert into the not-yet-created options table. Since authentication isn't available during installation, we can safely skip creating a nonce.

Props nullvariable, pento, dd32.
Fixes #39047.


git-svn-id: https://develop.svn.wordpress.org/trunk@39684 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 04:10:03 +00:00
rmccue
48ec643441 Feeds: Don't override the Content-Type header inside fetc_feed()
SimplePie can set the Content-Type header automatically with the correct charset for convenience, but we already force the charset to match the site's, making it redundant at best. At worst, SimplePie incorrectly overrides the content-type for non-HTML content (such as API requests).

Props dlh, stevenkword.
Fixes #39066.


git-svn-id: https://develop.svn.wordpress.org/trunk@39681 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 03:05:53 +00:00
adamsilverstein
b55c941b37 REST API: Add error handling for fetch error in buildModelGetter of wp-api.js.
When a call to a model getter method fails, reject the returned deferred object. Enables better handling of fetch errors.

Props westonruter, adamsilverstein.
Fixes #39314.


git-svn-id: https://develop.svn.wordpress.org/trunk@39680 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 03:02:39 +00:00
azaozz
9c509a1eae Always add page-template-default class to the editor body when the template is not specified. This matches the behavior on the front-end.
Props timph (for the detailed bug report), azaozz.
Fixes #39368 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@39678 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 01:52:06 +00:00
westonruter
4e549946ba Customize: Prevent removal of underline upon hover/focus for nav menu deletion links.
Props monikarao.
Amends [38503].
See #37527.
Fixes #39444.


git-svn-id: https://develop.svn.wordpress.org/trunk@39677 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 19:12:39 +00:00
SergeyBiryukov
cd97be6df7 Docs: Correct the DocBlock for get_header_video_url().
Props keesiemeijer.
Fixes #39468.

git-svn-id: https://develop.svn.wordpress.org/trunk@39676 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:43:40 +00:00
SergeyBiryukov
e2e43dade9 Docs: Correct @since and @access tags for WP_Term_Query::get_terms() and WP_Term_Query::parse_orderby_meta().
Props keesiemeijer.
Fixes #39467.

git-svn-id: https://develop.svn.wordpress.org/trunk@39675 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:38:10 +00:00
SergeyBiryukov
9369e432a5 Docs: Correct @access tag for WP_Customize_Partial::id_data property.
Props keesiemeijer.
Fixes #39464.

git-svn-id: https://develop.svn.wordpress.org/trunk@39674 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:35:22 +00:00
SergeyBiryukov
99e7e759ec Docs: Add missing @since and @access tags for WP_Widget_Form_Customize_Control::to_json() and ::render_content().
Props keesiemeijer.
Fixes #39463.

git-svn-id: https://develop.svn.wordpress.org/trunk@39673 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:33:03 +00:00
SergeyBiryukov
0df296a519 Docs: Add missing @since and @access tags for WP_Date_Query::is_first_order_clause().
Props keesiemeijer.
#39462.

git-svn-id: https://develop.svn.wordpress.org/trunk@39672 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:25:27 +00:00
SergeyBiryukov
7bd9bc5208 Docs: Correct rest_insert_* duplicate hook references in REST API.
Props keesiemeijer.
Fixes #39371.

git-svn-id: https://develop.svn.wordpress.org/trunk@39671 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:22:49 +00:00
SergeyBiryukov
10fbee7158 Docs: Add missing session_token_manager duplicate hook reference in wp-includes/class-wp-session-tokens.php.
Props keesiemeijer.
See #39371.

git-svn-id: https://develop.svn.wordpress.org/trunk@39670 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:21:41 +00:00
SergeyBiryukov
fb2da144c4 Docs: Correct comment_email duplicate hook reference in wp-admin/includes/class-wp-comments-list-table.php.
Props keesiemeijer.
See #39371.

git-svn-id: https://develop.svn.wordpress.org/trunk@39669 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:20:24 +00:00
SergeyBiryukov
6377db170b Docs: Add missing duplicate hook references in wp-admin/includes/ajax-actions.php.
Props keesiemeijer.
See #39371.

git-svn-id: https://develop.svn.wordpress.org/trunk@39668 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 13:19:02 +00:00
SergeyBiryukov
53e6e1f5d3 I18N: Add post type context to "Featured Image" post labels.
Fixes #39458.

git-svn-id: https://develop.svn.wordpress.org/trunk@39667 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 08:39:29 +00:00
SergeyBiryukov
0f6f7f207d Posts, Post Types: Add a @since entry for archives post type label introduced in [35382].
See #16075.

git-svn-id: https://develop.svn.wordpress.org/trunk@39666 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-04 08:20:14 +00:00
dd32
298b0d0676 Shortcodes: Clarify the docs for pre_do_shortcode_tag and do_shortcode_tag.
Props dhanendran.
Fixes #39294.


git-svn-id: https://develop.svn.wordpress.org/trunk@39665 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-03 03:57:03 +00:00
boonebgorges
80905ab4b1 Ignore the 'comment_order' setting when determining comment pagination.
[38740] incorrectly introduced logic that changed a comment's page when
'comment_order' was set to 'desc'. This is in violation of the design
of the comment pagination system: a comment's page is designed not to
change when 'comment_order' or 'default_comment_page' are changed.
See #31101.

Props rachelbaker.
Fixes #39280.

git-svn-id: https://develop.svn.wordpress.org/trunk@39663 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 19:58:09 +00:00
boonebgorges
3418d831a5 Don't double-escape terms payload in WP_Tax_Query::transform_query().
`terms` values are passed through `sanitize_term_field()` with the 'db'
flag, which add slashes. Because `terms` are subsequently run through
`esc_sql()`, these slashes must be removed. See [36348], which added
a similar step to sanitization in `get_terms()`.

Props bcworkz.
Fixes #39315.

git-svn-id: https://develop.svn.wordpress.org/trunk@39662 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 19:38:07 +00:00
Rachel Baker
511e4c67dd REST API: Add missing assertions to the view and embed context response data for the Users Controller.
Adds tests for responses where `context != 'edit'` the following properties are not included in the response data:
- `email`
- `locale`
- `registered_date`

Props thepelkus, jnylen0.
Fixes #39399.


git-svn-id: https://develop.svn.wordpress.org/trunk@39660 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 18:42:22 +00:00
Rachel Baker
1aec30fba8 General: Update copyright year to 2017 in license.txt.
Props Nikschavan.
Fixes #39433.


git-svn-id: https://develop.svn.wordpress.org/trunk@39659 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 17:57:42 +00:00
Dion Hulse
16e8d82c89 Updates: Show the Authentication key settings after selecting the SSH transport in both the modal, and also on the plugin/theme updates screen.
Props afercia.
Fixes #39057 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@39657 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 07:43:41 +00:00
Dion Hulse
85ad040c97 Updates: Remove a stray " from a tag.
Props afercia.
See #39057.


git-svn-id: https://develop.svn.wordpress.org/trunk@39656 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 07:41:45 +00:00
Dion Hulse
247e08e84a Mail: Ensure that any phpmailerException exceptions generated by setFrom() are caught to avoid PHP Fatal errors.
This change avoids a PHP fatal error that can be encountered when the specified (or generated) source email is an invalid address, such as `wordpress@_`, it makes no effort to set a valid source, only avoid the fatal error.

See #25239 for correcting the email address.
Fixes #39360.


git-svn-id: https://develop.svn.wordpress.org/trunk@39655 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 06:43:07 +00:00
Peter Wilson
f6fa5ddda7 Taxonomy: Redirect to current taxonomy when adding a term without AJAX.
Fixes a regression in which adding terms via a full page refresh, ie without AJAX, would always redirect to the tags taxonomy.

Props szaqal21.
Fixes #39328 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@39649 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 03:10:34 +00:00
Rachel Baker
70085bd944 REST API: Merge similiar error message strings in the Terms Controller.
Replaces the "doesn't" contraction with "does not" to be consistent with similar strings in `WP_Error` messages when a specified term or parent term is missing in `WP_REST_Terms_Controller`.

Props ramiy, ocean90.
Fixes #39176.


git-svn-id: https://develop.svn.wordpress.org/trunk@39648 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-29 18:44:59 +00:00
Rachel Baker
fa3f97449e REST API: Add the supports property to the Post Type response object.
Includes a new `supports` property in the response object and schema for the `/types` endpoints for users with the `edit_posts` capability for the given post type. The `supports` property returns an object of the features the given post type *supports*.

Props timmydcrawford, tyxla.
Fixes #39033.


git-svn-id: https://develop.svn.wordpress.org/trunk@39647 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-29 17:27:37 +00:00
Dion Hulse
e0531dcaa3 Upgrade PHPMailer from 5.2.14 to 5.2.21.
The full list of changes is available here:
https://github.com/PHPMailer/PHPMailer/compare/v5.2.14...v5.2.21

Props sebastian.pisula, MattyRob, sfpt, dd32.
Fixes #37210 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@39645 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-29 02:52:08 +00:00
Dion Hulse
3a4aae8c20 Filesystem: Add return statement to WP_Filesystem_ftpsockets->rmdir
Props tymvie.
Fixes #39405.


git-svn-id: https://develop.svn.wordpress.org/trunk@39644 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-28 03:51:29 +00:00