Dion Hulse
1ffeb0f19f
HTTP API: Restore backwards compatibility with the `http_api_curl` filter - it expects that the handle parameter is passed as a reference, however [39212] missed that.
...
Props pento.
Merges [40068] to the 4.7 branch.
Fixes #39783 .
Built from https://develop.svn.wordpress.org/branches/4.7@40069
git-svn-id: http://core.svn.wordpress.org/branches/4.7@40006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-17 05:07:33 +00:00
Aaron Campbell
aa89522a9b
Post-4.7.2 version bump for 4.7 branch.
...
Built from https://develop.svn.wordpress.org/branches/4.7@40018
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 21:58:35 +00:00
Aaron Campbell
665617103b
Fix version to 4.7.2 not 4.7.3.
...
Built from https://develop.svn.wordpress.org/branches/4.7@39997
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 18:19:35 +00:00
Aaron Campbell
befa21d88e
Bump 4.7 branch to version 4.7.2.
...
Built from https://develop.svn.wordpress.org/branches/4.7@39995
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 18:14:35 +00:00
Boone Gorges
89d7d9e70f
Revert to pre-4.7 behavior for fetching object instances by id.
...
This changeset reverts [38381], which caused inconsistencies in the way the
REST API fetches posts and other objects.
Merge of [39992] to the 4.7 branch.
See #38792 , #37738 .
Built from https://develop.svn.wordpress.org/branches/4.7@39993
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 16:57:32 +00:00
John Blackbourn
fa47298720
Posts, Post Types: When using Excerpt mode on the Posts list table, ensure the excerpt output matches what was manually entered into the Excerpt field.
...
Merges [39956] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39990
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 15:12:34 +00:00
Dominik Schilling
ad0f68291a
Press This: Do not show Categories & Tags UI for users who cannot assign terms to posts anyways.
...
Merge of [39968] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39969
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 14:01:34 +00:00
Dominik Schilling
599e703836
REST API: Unify object access handling for simplicity.
...
Rather than repeating ourselves, unifying the access into a single method keeps everything tidy. While we're at it, add in additional schema handling for common parameters.
Merge of [39954] to the 4.7 branch.
See #38792 .
Built from https://develop.svn.wordpress.org/branches/4.7@39957
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 13:47:34 +00:00
Dominik Schilling
5960939cca
Query: Ensure that queries work correctly with post type names with special characters.
...
Merge of [39952] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39953
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 13:36:37 +00:00
Aaron Campbell
7b45f8189d
Post-4.7.1 version bump for 4.7 branch.
...
Built from https://develop.svn.wordpress.org/branches/4.7@39883
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 21:36:35 +00:00
Joe McGill
0df6499c8d
Media: Fix exif_imagetype check in wp_get_image_mime
...
This is a follow up to [39831].
Merges [39850] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39851
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 16:38:32 +00:00
Aaron Campbell
5094cbd599
Bump 4.7 branch to version 4.7.1.
...
Built from https://develop.svn.wordpress.org/branches/4.7@39845
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 15:15:35 +00:00
Aaron Campbell
39b785c7f9
REST API: Change which users are shown in the users endpoint.
...
Only show users that have authored a post of a post type that has `show_in_rest` set to true.
Props rachelbaker, jnylen0.
Merges [39843] to 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39844
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 14:49:33 +00:00
Joe McGill
75df12f322
Media: Improve image filetype checking.
...
This adds a new function `wp_get_image_mime()` which is used by
`wp_check_filetype_and_ext()` to validate image files using
`exif_imagetype()` if available instead of `getimagesize()`.
`getimagesize()` is less performant than `exif_imagetype()` and is
dependent on GD. If `exif_imagetype()` is not available, it falls back to
`getimagesize()` as before.
If `wp_check_filetype_and_ext()` can't validate the filetype, we now return
`false` for ext/MIME values.
Merges [39831] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39832
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 13:12:34 +00:00
Dominik Schilling
3176a085da
Updates: Translate plugin data on the Updates screen.
...
Merge of [39808] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39820
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 11:39:34 +00:00
Dominik Schilling
e0b6a13194
Themes: Fix markup for theme name fallbacks.
...
Merge of [39807] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39809
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 11:08:37 +00:00
Jeremy Felt
871bb10c9a
Multisite: Use `wp_rand()` in signup key creation.
...
Merges [39795] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39796
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 05:31:35 +00:00
Dion Hulse
31c9a63bfb
Update PHPMailer to 5.2.22.
...
The full list of changes is available here:
https://github.com/PHPMailer/PHPMailer/compare/v5.2.21...v5.2.22
Merges [39759] to the 4.7 branch.
Fixes #37210 for 4.7.
Built from https://develop.svn.wordpress.org/branches/4.7@39783
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 05:21:59 +00:00
Jeremy Felt
63828d08a0
Mail: Disable wp-mail.php when `mailserver_url` is mail.example.com.
...
Merges [39772] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39773
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 05:15:34 +00:00
Aaron Campbell
189e5449a3
Add nonce for widget accessibility mode.
...
Props vortfu.
See #23328 .
Merges [39760] to 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39761
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 01:40:34 +00:00
Aaron Campbell
d47305bfe4
Add -src back to version
...
Built from https://develop.svn.wordpress.org/branches/4.7@39750
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 23:04:36 +00:00
Aaron Campbell
aa13103db8
Post 4.7.1-RC1 version bump
...
Built from https://develop.svn.wordpress.org/branches/4.7@39749
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:44:35 +00:00
Aaron Campbell
3027491963
WordPress 4.7.1-RC1
...
Built from https://develop.svn.wordpress.org/branches/4.7@39746
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:16:57 +00:00
Aaron Campbell
ed77d76855
Twenty Seventeen: add more details about filter and requires version
...
The required version should be 4.7 and also adds more information to changelog.
Props @ocean90 @Presskopp
Merges [39744] to 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39745
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:16:24 +00:00
Aaron Campbell
483fa89c88
Twenty Seventeen: version bump and update changelog
...
Adds in changelog since last version and all the changes listed in readme.txt.
Bumps version numbers in style.css and readme.txt.
Props @ocean90
Merges [39742] to the 4.7 branch.
Built from https://develop.svn.wordpress.org/branches/4.7@39743
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:15:10 +00:00
Dominik Schilling
95026e579b
Twenty Seventeen: Introduce a theme-specific filter `twentyseventeen_starter_content` for customizing the starter content array.
...
Add some documentation to the default starter content.
Merge of [39720] to the 4.7 branch.
Props sanket.parmar, celloexpressions.
See #39109 .
Built from https://develop.svn.wordpress.org/branches/4.7@39721
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:03:30 +00:00
Dion Hulse
425d389d92
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, rmccue.
Merges [39684] to the 4.7 branch.
Fixes #39047 .
Built from https://develop.svn.wordpress.org/branches/4.7@39697
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:18:37 +00:00
Dion Hulse
6cdd4b1250
Customize: Prevent removal of underline upon hover/focus for nav menu deletion links.
...
Props monikarao.
Amends [38503].
See #37527 .
Merges [39677] to the 4.7 branch.
Fixes #39444 .
Built from https://develop.svn.wordpress.org/branches/4.7@39696
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:17:37 +00:00
Dion Hulse
4a804cac79
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 .
Merges [39685] to the 4.7 branch.
Fixes #39349 .
Built from https://develop.svn.wordpress.org/branches/4.7@39695
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:16:39 +00:00
Dion Hulse
cc4a680493
Customize: Ensure `theme_mod`-cache of `custom_css` lookup of `-1` short-circuits a `WP_Query` from being made.
...
Props dlh, westonruter.
See #35395 .
Merges [39688] to the 4.7 branch.
Fixes #39259 .
Built from https://develop.svn.wordpress.org/branches/4.7@39694
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:15:35 +00:00
Dion Hulse
d93d3febfe
Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts.
...
Props dlh.
Merges [39692] to the 4.7 branch.
Fixes #39194 .
Built from https://develop.svn.wordpress.org/branches/4.7@39693
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 08:13:35 +00:00
Dion Hulse
8cc3c97b85
Updates: Properly define `$filesystemForm` to handle error in modals.
...
Amends [39657].
Merges [39689] to the 4.7 branch.
See #39057 .
Built from https://develop.svn.wordpress.org/branches/4.7@39690
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:28:36 +00:00
Dion Hulse
2d20b59244
Feeds: Don't override the Content-Type header inside `fetch_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, rmccue.
Merges [39681] to the 4.7 branch.
Fixes #39066 .
Built from https://develop.svn.wordpress.org/branches/4.7@39683
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:09:35 +00:00
Dion Hulse
d4399a7082
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.
Merges [39680] to the 4.7 branch.
Fixes #39314 .
Built from https://develop.svn.wordpress.org/branches/4.7@39682
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 03:07:17 +00:00
Andrew Ozz
ce7ab0d87f
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.
Merges [39678] to the 4.7 branch.
Fixes #39368 .
Built from https://develop.svn.wordpress.org/branches/4.7@39679
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 01:59:38 +00:00
Boone Gorges
6124fbb02c
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 .
Merges [39663] to the 4.7 branch.
Props rachelbaker.
Fixes #39280 .
Built from https://develop.svn.wordpress.org/branches/4.7@39664
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 20:08:23 +00:00
Rachel Baker
b410db797b
General: Update copyright year to 2017 in license.txt.
...
Props Nikschavan.
Merges [39659] to the 4.7 branch.
Fixes #39433 .
Built from https://develop.svn.wordpress.org/branches/4.7@39661
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-02 18:51:35 +00:00
Dion Hulse
e87ab24ef8
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.
Merges [39657] to the 4.7 branch.
Fixes #39057 .
Built from https://develop.svn.wordpress.org/branches/4.7@39658
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 07:46:35 +00:00
Dion Hulse
6c457d4415
Media: Move a variable definition outside of conditionals to ensure it's always available.
...
This fixes cases where the URL to a PDF preview may be incorrectly calculated when no thumbnails were generated for the PDF (and avoids a PHP Notice at the same time).
Merges [39612] to the 4.7 branch.
Fixes #39250 .
Built from https://develop.svn.wordpress.org/branches/4.7@39654
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 06:24:33 +00:00
Dion Hulse
fb52c9599d
Customize: Fix visible edit shortcuts for `wp_nav_menu()` instances using the `menu` arg (such as in the Custom Menu widget) instead of the `theme_location` arg.
...
Also fix logic for `focus-control-for-setting` handler to focus on the first control (lowest `priority` value) associated with a given setting instead of the last control encountered when iterating over all controls, as this ensures the first control in a `nav_menu` section is focused rather than the last one.
Props westonruter, sirbrillig.
See #27403 .
Merges [39622] to the 4.7 branch.
Fixes #39101 .
Built from https://develop.svn.wordpress.org/branches/4.7@39653
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 06:13:34 +00:00
Dion Hulse
8f7e4969bc
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, peterwilsoncc.
Merges [39649] to the 4.7 branch.
Fixes #39328 for 4.7.
Built from https://develop.svn.wordpress.org/branches/4.7@39652
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 05:55:32 +00:00
Dion Hulse
b28d64fb46
Customize: Bump `wp_custom_css_cb` from running at `wp_head` priority 11 to 101 to ensure Custom CSS overrides other CSS.
...
Aligns `wp_head` action priority with Jetpack's Custom CSS.
Amends [38829].
See #35395 , #38672 .
Merges [39616] to the 4.7 branch.
Fixes #39270 .
Built from https://develop.svn.wordpress.org/branches/4.7@39651
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 05:49:34 +00:00
Dion Hulse
61fb79c097
Twenty Seventeen: Fix incorrect `$content_width` value in theme.
...
This addresses a major bug. Incorrectly setting the `$content_width` causes media embeds to end up with the wrong aspect ratio, among other issues. This fix uses `template_redirect`, to ensure conditional theme tags can be used. It also defines a default value at `after_theme_setup` so that plugins have something to work with at `init`.
Props sstoqnov, laurelfulford, obenland.
Merges [39635] to the 4.7 branch.
Fixes #39272 .
Built from https://develop.svn.wordpress.org/branches/4.7@39650
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 05:47:37 +00:00
Dion Hulse
9edb03c095
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, peterwilsoncc, voldemortensen.
Merges [39645] to the 4.7 branch.
Fixes #37210 for trunk.
Built from https://develop.svn.wordpress.org/branches/4.7@39646
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-29 03:00:37 +00:00
Rachel Baker
bd0a38d439
REST API: Allow schema sanitization_callback to be set to null to bypass fallback sanitization functions.
...
The logic in WP_REST_Request->sanitize_params() added in [39091] did not account for `null` or `false` being the sanitization_callback preventing overriding `rest_parse_request_arg()`. This fixes that oversight, allowing the built in sanitization function to be bypassed. See #38593 .
Merges [39563] to the 4.7 branch.
Props kkoppenhaver, rachelbaker, jnylen0.
Fixes #39042 .
Built from https://develop.svn.wordpress.org/branches/4.7@39642
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-27 17:49:36 +00:00
Rachel Baker
8780e40de2
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.
Merges [39640] to the 4.7 branch.
Props dshanske for initial patch.
Fixes #39380 .
Built from https://develop.svn.wordpress.org/branches/4.7@39641
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-27 17:42:35 +00:00
Ella Iseulde Van Dorpe
559e81937b
Editor: Let the Add New link disappear in DFW mode.
...
The link was moved outside the heading in [38983].
Merges [39619] to the 4.7 branch.
Fixes #39313 .
Built from https://develop.svn.wordpress.org/branches/4.7@39634
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 14:56:34 +00:00
Gary Pendergast
8a2525a88d
Media: Allow PDF fallbacks filter to process custom sizes.
...
This fixes an oversight in [39246], which added a hook for filtering the array of sizes used for PDF thumbnails, but failed to provide a way for sizes added through `add_image_size()` to be processed.
Merge of [39617] to the 4.7 branch.
Props gitlost.
Fixes #39231 . See #38594 .
Built from https://develop.svn.wordpress.org/branches/4.7@39633
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 05:53:33 +00:00
Gary Pendergast
7d1db9607d
Twenty Seventeen: Ensure functions in `customize-controls.js` don't count on Customizer sections always being present
...
Before, the code assumed the `theme_options` section is always present, but it can be removed by plugins. This way, if it is, no JavaScript errors occur.
Merge of [39623] to the 4.7 branch.
Props westonruter.
Fixes #39355 .
Built from https://develop.svn.wordpress.org/branches/4.7@39632
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 05:48:34 +00:00
Gary Pendergast
6e8114742f
REST API: Improve the `rest_*_collection_params` filter docs and fix the terms filter.
...
The `rest_{$taxonomy}_collection_params` filter in 4.7 is incorrectly using single quotes instead of double quotes, which means it is not working correctly as a dynamic filter. This fixes the quotes around the filter name, and also updates the docblocks for the other 3 similar filters for better conformance to the documentation standards.
Merge of [39621] to the 4.7 branch.
Props shazahm1hotmailcom, JPry, jnylen0.
Fixes #39300 .
Built from https://develop.svn.wordpress.org/branches/4.7@39631
git-svn-id: http://core.svn.wordpress.org/branches/4.7@39571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 05:34:34 +00:00