Sergey Biryukov
e8c65e0df1
Docs: Use 3-digit, x.x.x style semantic versioning for @since
entries in wp-admin/js/word-count.js
.
...
See #37718 .
Built from https://develop.svn.wordpress.org/trunk@39739
git-svn-id: http://core.svn.wordpress.org/trunk@39679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:12:39 +00:00
Sergey Biryukov
e654c81f10
Docs: Add documentation for wp-admin/js/editor.js
.
...
Props terwdan, ireneyoast.
Fixes #38933 .
Built from https://develop.svn.wordpress.org/trunk@39738
git-svn-id: http://core.svn.wordpress.org/trunk@39678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:11:57 +00:00
Sergey Biryukov
008c1f7e60
Docs: Correct @access
entries for WP_Locale::init()
and WP_Locale::register_globals()
.
...
Props keesiemeijer.
Fixes #39504 .
Built from https://develop.svn.wordpress.org/trunk@39737
git-svn-id: http://core.svn.wordpress.org/trunk@39677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:11:16 +00:00
Sergey Biryukov
64675a6a0b
Docs: Add missing @since
entries for WP_Theme
class methods.
...
Props keesiemeijer.
Fixes #39503 .
Built from https://develop.svn.wordpress.org/trunk@39736
git-svn-id: http://core.svn.wordpress.org/trunk@39676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:10:35 +00:00
Sergey Biryukov
b971410d2f
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 .
Built from https://develop.svn.wordpress.org/trunk@39735
git-svn-id: http://core.svn.wordpress.org/trunk@39675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:09:55 +00:00
Sergey Biryukov
ff749bc66c
Docs: Correct @access
entries and duplicate hook references in WP_Customize_Selective_Refresh
.
...
Props keesiemeijer.
Fixes #39501 .
Built from https://develop.svn.wordpress.org/trunk@39734
git-svn-id: http://core.svn.wordpress.org/trunk@39674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:09:13 +00:00
Sergey Biryukov
f6cd778c84
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 .
Built from https://develop.svn.wordpress.org/trunk@39733
git-svn-id: http://core.svn.wordpress.org/trunk@39673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:08:33 +00:00
Sergey Biryukov
2f50816f32
Twenty Seventeen: Correct @param
entry for twentyseventeen_front_page_sections
filter.
...
Props ketuchetan, priyankabehera155.
Fixes #39488 .
Built from https://develop.svn.wordpress.org/trunk@39732
git-svn-id: http://core.svn.wordpress.org/trunk@39672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:07:52 +00:00
Dominik Schilling
2e81d3ed88
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 .
Built from https://develop.svn.wordpress.org/trunk@39720
git-svn-id: http://core.svn.wordpress.org/trunk@39660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:02:58 +00:00
Sergey Biryukov
93d4caaccd
Docs: Add missing @param
tag for show_post_locked_dialog
filter.
...
Props keesiemeijer.
Fixes #39479 .
Built from https://develop.svn.wordpress.org/trunk@39710
git-svn-id: http://core.svn.wordpress.org/trunk@39650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:59:04 +00:00
Sergey Biryukov
6e5d66c10e
Docs: Move install_network()
DocBlock after the function_exists()
call.
...
Props keesiemeijer.
Fixes #39478 .
Built from https://develop.svn.wordpress.org/trunk@39709
git-svn-id: http://core.svn.wordpress.org/trunk@39649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:58:23 +00:00
Sergey Biryukov
ead8c38f38
Docs: Add variable to @param
entry for whitelist_options
filter.
...
Props keesiemeijer.
Fixes #39477 .
Built from https://develop.svn.wordpress.org/trunk@39708
git-svn-id: http://core.svn.wordpress.org/trunk@39648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:57:42 +00:00
Dion Hulse
9f381dbea6
Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts.
...
Props dlh.
Fixes #39194 .
Built from https://develop.svn.wordpress.org/trunk@39692
git-svn-id: http://core.svn.wordpress.org/trunk@39632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:12:42 +00:00
Dion Hulse
577a192ebd
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 .
Built from https://develop.svn.wordpress.org/trunk@39691
git-svn-id: http://core.svn.wordpress.org/trunk@39631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:10:42 +00:00
Dion Hulse
8912d6b134
Updates: Properly define $filesystemForm
to handle error in modals.
...
Ammends [39657].
See #39057 .
Built from https://develop.svn.wordpress.org/trunk@39689
git-svn-id: http://core.svn.wordpress.org/trunk@39629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:24:43 +00:00
Weston Ruter
2ed703ed78
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 .
Built from https://develop.svn.wordpress.org/trunk@39688
git-svn-id: http://core.svn.wordpress.org/trunk@39628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:13:42 +00:00
Dion Hulse
b5dbe61dab
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.
Built from https://develop.svn.wordpress.org/trunk@39687
git-svn-id: http://core.svn.wordpress.org/trunk@39627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 06:13:41 +00:00
Weston Ruter
5468850b10
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 .
Built from https://develop.svn.wordpress.org/trunk@39686
git-svn-id: http://core.svn.wordpress.org/trunk@39626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 05:18:43 +00:00
Weston Ruter
ea0f8b53f1
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 .
Built from https://develop.svn.wordpress.org/trunk@39685
git-svn-id: http://core.svn.wordpress.org/trunk@39625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 04:33:43 +00:00
Ryan McCue
a676166a63
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 .
Built from https://develop.svn.wordpress.org/trunk@39684
git-svn-id: http://core.svn.wordpress.org/trunk@39624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 04:11:43 +00:00
Ryan McCue
952b6873e7
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 .
Built from https://develop.svn.wordpress.org/trunk@39681
git-svn-id: http://core.svn.wordpress.org/trunk@39621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:06:42 +00:00
Adam Silverstein
c8a3496ebe
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 .
Built from https://develop.svn.wordpress.org/trunk@39680
git-svn-id: http://core.svn.wordpress.org/trunk@39620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:03:42 +00:00
Andrew Ozz
e2166de4b0
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.
Built from https://develop.svn.wordpress.org/trunk@39678
git-svn-id: http://core.svn.wordpress.org/trunk@39618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 01:53:43 +00:00
Weston Ruter
ef882e918e
Customize: Prevent removal of underline upon hover/focus for nav menu deletion links.
...
Props monikarao.
Amends [38503].
See #37527 .
Fixes #39444 .
Built from https://develop.svn.wordpress.org/trunk@39677
git-svn-id: http://core.svn.wordpress.org/trunk@39617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 19:13:40 +00:00
Sergey Biryukov
7a83036227
Docs: Correct the DocBlock for get_header_video_url()
.
...
Props keesiemeijer.
Fixes #39468 .
Built from https://develop.svn.wordpress.org/trunk@39676
git-svn-id: http://core.svn.wordpress.org/trunk@39616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:44:43 +00:00
Sergey Biryukov
64bb76d122
Docs: Correct @since
and @access
tags for WP_Term_Query::get_terms()
and WP_Term_Query::parse_orderby_meta()
.
...
Props keesiemeijer.
Fixes #39467 .
Built from https://develop.svn.wordpress.org/trunk@39675
git-svn-id: http://core.svn.wordpress.org/trunk@39615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:39:43 +00:00
Sergey Biryukov
868f642cc1
Docs: Correct @access
tag for WP_Customize_Partial::id_data
property.
...
Props keesiemeijer.
Fixes #39464 .
Built from https://develop.svn.wordpress.org/trunk@39674
git-svn-id: http://core.svn.wordpress.org/trunk@39614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:36:41 +00:00
Sergey Biryukov
88d2bb035a
Docs: Add missing @since
and @access
tags for WP_Widget_Form_Customize_Control::to_json()
and ::render_content()
.
...
Props keesiemeijer.
Fixes #39463 .
Built from https://develop.svn.wordpress.org/trunk@39673
git-svn-id: http://core.svn.wordpress.org/trunk@39613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:34:44 +00:00
Sergey Biryukov
625849cc60
Docs: Add missing @since
and @access
tags for WP_Date_Query::is_first_order_clause()
.
...
Props keesiemeijer.
#39462 .
Built from https://develop.svn.wordpress.org/trunk@39672
git-svn-id: http://core.svn.wordpress.org/trunk@39612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:26:43 +00:00
Sergey Biryukov
fd78085a92
Docs: Correct rest_insert_*
duplicate hook references in REST API.
...
Props keesiemeijer.
Fixes #39371 .
Built from https://develop.svn.wordpress.org/trunk@39671
git-svn-id: http://core.svn.wordpress.org/trunk@39611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:23:40 +00:00
Sergey Biryukov
b737cce497
Docs: Add missing session_token_manager
duplicate hook reference in wp-includes/class-wp-session-tokens.php
.
...
Props keesiemeijer.
See #39371 .
Built from https://develop.svn.wordpress.org/trunk@39670
git-svn-id: http://core.svn.wordpress.org/trunk@39610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:22:42 +00:00
Sergey Biryukov
d16bdab87d
Docs: Correct comment_email
duplicate hook reference in wp-admin/includes/class-wp-comments-list-table.php
.
...
Props keesiemeijer.
See #39371 .
Built from https://develop.svn.wordpress.org/trunk@39669
git-svn-id: http://core.svn.wordpress.org/trunk@39609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:21:41 +00:00
Sergey Biryukov
179a40d969
Docs: Add missing duplicate hook references in wp-admin/includes/ajax-actions.php
.
...
Props keesiemeijer.
See #39371 .
Built from https://develop.svn.wordpress.org/trunk@39668
git-svn-id: http://core.svn.wordpress.org/trunk@39608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:20:44 +00:00
Sergey Biryukov
f3a9d2bd9a
I18N: Add post type context to "Featured Image" post labels.
...
Fixes #39458 .
Built from https://develop.svn.wordpress.org/trunk@39667
git-svn-id: http://core.svn.wordpress.org/trunk@39607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 08:40:41 +00:00
Sergey Biryukov
962db75ace
Posts, Post Types: Add a @since
entry for archives
post type label introduced in [35382].
...
See #16075 .
Built from https://develop.svn.wordpress.org/trunk@39666
git-svn-id: http://core.svn.wordpress.org/trunk@39606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 08:21:43 +00:00
Dion Hulse
5eb2277dce
Shortcodes: Clarify the docs for pre_do_shortcode_tag
and do_shortcode_tag
.
...
Props dhanendran.
Fixes #39294 .
Built from https://develop.svn.wordpress.org/trunk@39665
git-svn-id: http://core.svn.wordpress.org/trunk@39605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-03 04:00:18 +00:00
Boone Gorges
324e79a506
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 .
Built from https://develop.svn.wordpress.org/trunk@39663
git-svn-id: http://core.svn.wordpress.org/trunk@39603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 20:00:31 +00:00
Boone Gorges
5fc3bbbfd2
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 .
Built from https://develop.svn.wordpress.org/trunk@39662
git-svn-id: http://core.svn.wordpress.org/trunk@39602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 19:40:19 +00:00
Rachel Baker
66551de94c
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 .
Built from https://develop.svn.wordpress.org/trunk@39660
git-svn-id: http://core.svn.wordpress.org/trunk@39600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 18:43:44 +00:00
Rachel Baker
5c5dbc95f4
General: Update copyright year to 2017 in license.txt.
...
Props Nikschavan.
Fixes #39433 .
Built from https://develop.svn.wordpress.org/trunk@39659
git-svn-id: http://core.svn.wordpress.org/trunk@39599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 17:58:42 +00:00
Dion Hulse
05f07e13d9
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.
Built from https://develop.svn.wordpress.org/trunk@39657
git-svn-id: http://core.svn.wordpress.org/trunk@39597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 07:44:41 +00:00
Dion Hulse
6066654967
Updates: Remove a stray "
from a tag.
...
Props afercia.
See #39057 .
Built from https://develop.svn.wordpress.org/trunk@39656
git-svn-id: http://core.svn.wordpress.org/trunk@39596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 07:42:42 +00:00
Dion Hulse
1a40f6b7ae
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 .
Built from https://develop.svn.wordpress.org/trunk@39655
git-svn-id: http://core.svn.wordpress.org/trunk@39595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 06:44:40 +00:00
Peter Wilson
25e462dbe7
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.
Built from https://develop.svn.wordpress.org/trunk@39649
git-svn-id: http://core.svn.wordpress.org/trunk@39589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 03:11:42 +00:00
Rachel Baker
c6f8182eb0
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 .
Built from https://develop.svn.wordpress.org/trunk@39648
git-svn-id: http://core.svn.wordpress.org/trunk@39588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-29 18:45:40 +00:00
Rachel Baker
158f302112
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 .
Built from https://develop.svn.wordpress.org/trunk@39647
git-svn-id: http://core.svn.wordpress.org/trunk@39587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-29 17:28:45 +00:00
Dion Hulse
24767c76d3
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.
Built from https://develop.svn.wordpress.org/trunk@39645
git-svn-id: http://core.svn.wordpress.org/trunk@39585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-29 02:53:44 +00:00
Dion Hulse
4efebd4b71
Filesystem: Add return
statement to WP_Filesystem_ftpsockets->rmdir
...
Props tymvie.
Fixes #39405 .
Built from https://develop.svn.wordpress.org/trunk@39644
git-svn-id: http://core.svn.wordpress.org/trunk@39584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-28 03:52:42 +00:00
Rachel Baker
df256f9fee
REST API: Remove errant annotation from test_get_items_pagination_headers()
method.
...
Removes the debugging group notation left in the `WP_Test_REST_Users_Controller` and `WP_Test_REST_Posts_Controller` classes pagination headers method. Introduced in [38832].
Props sanket.parmar.
Fixes #39398 .
Built from https://develop.svn.wordpress.org/trunk@39643
git-svn-id: http://core.svn.wordpress.org/trunk@39583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-27 18:04:43 +00:00
Rachel Baker
82c7fd2493
Comments: Fix placement of the wp_update_comment_data
filter to safeguard filtered data from triggering a database error.
...
Introduced in [38674], the `wp_update_comment_data` filter took place after the `$data` was sliced and prepared for the database update statement. The location of the filter assumed the result of anyone applying it would not change the data type or make structural modifications or additions to the $data array. 😅
This moves the `wp_update_comment_data` filter to take place before the `$data` is sliced and prepared for the database update statement.
Props dshanske for initial patch.
Fixes #39380 .
Built from https://develop.svn.wordpress.org/trunk@39640
git-svn-id: http://core.svn.wordpress.org/trunk@39580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-27 17:22:45 +00:00