Commit Graph

36092 Commits

Author SHA1 Message Date
Dion Hulse 7759f06d5f 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40069 602fd350-edb4-49c9-b593-d223f7449a82
2017-02-17 05:06:23 +00:00
Aaron D. Campbell 51887464fe Post-4.7.2 version bump for 4.7 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40018 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 21:57:54 +00:00
Aaron D. Campbell f36d9405fc Fix version to 4.7.2 not 4.7.3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39997 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 18:19:00 +00:00
Aaron D. Campbell c0f14f8f06 Bump 4.7 branch to version 4.7.2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39995 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 18:13:02 +00:00
Boone Gorges 4bc40bf97b 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39993 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 16:56:21 +00:00
John Blackbourn 437de3aec6 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39990 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 15:11:53 +00:00
Dominik Schilling (ocean90) f8d636aadb 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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39969 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 14:00:03 +00:00
Dominik Schilling (ocean90) c9cd77ce11 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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39957 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 13:46:54 +00:00
Dominik Schilling (ocean90) 3bbc452bd7 Query: Ensure that queries work correctly with post type names with special characters.
Merge of [39952] to the 4.7 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39953 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 13:35:34 +00:00
Aaron D. Campbell 47ce489083 Post-4.7.1 version bump for 4.7 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39883 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 21:35:25 +00:00
Aaron D. Campbell 69f767fab8 Only show major version in readme.html for 4.7 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39871 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 17:45:04 +00:00
Joe McGill 173bfd1a32 Media: Fix exif_imagetype check in wp_get_image_mime
This is a follow up to [39831].

Merges [39850] to the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39851 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 16:37:51 +00:00
Joe McGill 5e7d198785 Tests: Replace broken codeispoetry.png file.
This also updates the test filename in
`WP_Test_REST_Attachments_Controller::test_create_item_default_filename_title()`
to accurately match the actual file name.

Merges [39848] to the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39849 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 16:27:17 +00:00
Aaron D. Campbell ebda9908e5 Bump 4.7 branch to version 4.7.1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39845 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 15:14:11 +00:00
Aaron D. Campbell 8214df823f 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39844 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 14:48:04 +00:00
Joe McGill 879f152f69 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39832 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 13:11:52 +00:00
Dominik Schilling (ocean90) d59732bd70 Updates: Translate plugin data on the Updates screen.
Merge of [39808] to the 4.7 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39820 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 11:38:25 +00:00
Dominik Schilling (ocean90) 089f7170b1 Themes: Fix markup for theme name fallbacks.
Merge of [39807] to the 4.7 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39809 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 11:07:57 +00:00
Jeremy Felt dfa88bd587 Multisite: Use `wp_rand()` in signup key creation.
Merges [39795] to the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39796 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:30:21 +00:00
Dion Hulse 0d96cf34cc 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39783 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:19:28 +00:00
Jeremy Felt 7d686e3ef0 Mail: Disable wp-mail.php when `mailserver_url` is mail.example.com.
Merges [39772] to the 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39773 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:14:43 +00:00
Aaron D. Campbell 1d55a1327d Add nonce for widget accessibility mode.
Props vortfu.

See #23328.

Merges [39760] to 4.7 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39761 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 01:39:14 +00:00
Aaron D. Campbell b9fb5a42e3 Add -src back to version
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39750 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 23:03:42 +00:00
Aaron D. Campbell e20b84909f Post 4.7.1-RC1 version bump
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39749 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 22:43:01 +00:00
Aaron D. Campbell d332cb2627 WordPress 4.7.1-RC1
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39746 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 17:30:16 +00:00
Aaron D. Campbell dd78b273ed 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.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39745 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 17:07:40 +00:00
Aaron D. Campbell 671f160e1f 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.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39743 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 17:03:06 +00:00
Dominik Schilling (ocean90) 411e183ab0 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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39721 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 19:31:49 +00:00
Dion Hulse 62784396c1 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39697 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:17:19 +00:00
Dion Hulse 2e5f4ba323 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39696 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:16:33 +00:00
Dion Hulse 6bfc386e28 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39695 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:15:48 +00:00
Dion Hulse ae00aedc60 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39694 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:14:56 +00:00
Dion Hulse dd41ff6c2c 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39693 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:12:06 +00:00
Dion Hulse e1c6f72330 Updates: Properly define `$filesystemForm` to handle error in modals.
Amends [39657].
Merges [39689] to the 4.7 branch.
See #39057.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39690 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 07:27:38 +00:00
Dion Hulse acf3294e18 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39683 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 03:08:14 +00:00
Dion Hulse ef8c306263 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39682 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 03:05:57 +00:00
Andrew Ozz b8ee9d17c1 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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39679 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 01:58:57 +00:00
Boone Gorges a428ffc53d 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39664 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 20:06:59 +00:00
Rachel Baker cb502d5e91 General: Update copyright year to 2017 in license.txt.
Props Nikschavan.
Merges [39659] to the 4.7 branch.
Fixes #39433.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39661 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-02 18:50:35 +00:00
Dion Hulse 16f887ddae 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39658 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 07:45:05 +00:00
Dion Hulse 45c6d6490b 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39654 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 06:23:56 +00:00
Dion Hulse b4f2e14878 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39653 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 06:12:53 +00:00
Dion Hulse 8a19063818 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39652 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 05:54:40 +00:00
Dion Hulse d0e1d5db64 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39651 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 05:48:42 +00:00
Dion Hulse 4b367cfcd4 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39650 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-30 05:46:58 +00:00
Dion Hulse d11e7f4a65 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39646 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-29 02:59:24 +00:00
Rachel Baker 7b4f4be327 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39642 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-27 17:48:10 +00:00
Rachel Baker 7d2dd7c861 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.


git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39641 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-27 17:41:59 +00:00
Ella van Dorpe 02978beace 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.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39634 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-21 14:55:31 +00:00
Gary Pendergast 82af7aba8d 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.



git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39633 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-21 05:52:54 +00:00