34112 Commits

Author SHA1 Message Date
John Blackbourn
1f215d4d1c 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.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39977 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 14:11:16 +00:00
Dominik Schilling (ocean90)
cf3d9dbdd9 Press This: Do not show Categories & Tags UI for users who cannot assign terms to posts anyways.
Merge of [39968] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39972 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 14:09:27 +00:00
Dominik Schilling (ocean90)
6eb75ae0c0 Query: Ensure that queries work correctly with post type names with special characters.
Merge of [39952] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39958 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-26 13:49:12 +00:00
Aaron D. Campbell
ad15c71200 Bump 4.5 branch to version 4.5.5.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39862 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 16:54:58 +00:00
Joe McGill
4eb761cdb4 Media: Fix exif_imagetype check in wp_get_image_mime
This is a follow up to [39831].

Merges [39850] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39853 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 16:39:22 +00:00
Joe McGill
50769a2888 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.5 branch.


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

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

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39811 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 11:08:39 +00:00
Jeremy Felt
e1cba619ea Multisite: Use wp_rand() in signup key creation.
Merges [39795] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39798 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:31:14 +00:00
Dion Hulse
104f0b2a6d 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.5 branch.
Fixes #37210 for 4.5.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39786 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:21:48 +00:00
Jeremy Felt
0e44816ae3 Mail: Disable wp-mail.php when mailserver_url is mail.example.com.
Merges [39772] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39775 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 05:15:46 +00:00
Aaron D. Campbell
966816927d Add nonce for widget accessibility mode.
Props vortfu.

See #23328.

Merges [39760] to 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39763 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-11 01:43:50 +00:00
Dion Hulse
da9e015bcd Mail: Upgrade PHPMailer to 5.2.21.
Merges [39645] to the 4.5 branch.
See #37210.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39723 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-06 05:35:54 +00:00
Joe McGill
774443c94f Media: Improved media titles when created from filename.
Preserves spaces and generally creates more accurate, cleaner titles from filenames of uploaded media.

Merge of [38615] to the 4.5 branch.

Fixes #37989.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39711 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 16:12:50 +00:00
Dion Hulse
f341897290 General: Update copyright year to 2017 in license.txt.
Props Nikschavan.
Merges [39659] to the 4.5 branch.
Fixes #39433.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39699 602fd350-edb4-49c9-b593-d223f7449a82
2017-01-05 08:37:44 +00:00
Jeremy Felt
86cb9fbaa4 Bump 4.5 branch to 4.5.4.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@38550 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 14:57:11 +00:00
Jeremy Felt
928116114a Media: Sanitize upload filename.
Merge of [38538] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@38540 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-07 13:56:44 +00:00
Pascal Birchler
63c6ce0de3 Upgrade/Install: Sanitize file name in File_Upload_Upgrader.
Merge of [38524] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@38526 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-06 17:34:00 +00:00
Dominik Schilling
765319b225 The 4.5 branch is now 4.5.4-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@38000 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-07 12:06:34 +00:00
Boone Gorges
67197ef57a Fix About changelog for 4.5.3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37828 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 16:15:55 +00:00
Boone Gorges
ad666633d5 4.5.3 fixes 17 bugs, not 16.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37827 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 15:55:03 +00:00
Boone Gorges
5eb7841ac4 Bump 4.5 branch to 4.5.3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37826 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 15:52:49 +00:00
Pascal Birchler
a208f9281c Media: Fix rendering of incorrect toolbar in the Edit view.
This switches event binding in `wp.media.controller.EditImage` to use `on`
instead of `listenTo` to restore rendering of the correct toolbar when the
`toolbar:render:edit-image` event fires. The existing listeners broke
when we upgraded Backbone in [36546].

Merge of [37678] to the 4.5 branch.

Props adamsilverstein.
Fixes #36861.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37813 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:54:22 +00:00
Joe McGill
114597aec1 Media: Improve handling of extensionless filenames.
Merge of [37756] to the 4.5 branch.

See #37111.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37809 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:50:55 +00:00
Nikolay Bachiyski
0044fc9791 Admin: escape URL-encoded permalinks
Merge of [37801] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37806 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:48:36 +00:00
Pascal Birchler
d1f3bf8f4c Media: Restore keyboard navigation of the media grid.
This changes the binding of event listeners in the Attachments Browser
to use `on` instead of `listenTo` for the `attachment:keydown:arrow` and
`attachment:details:shift-tab` events. The existing listeners broke
when we upgraded Backbone in [36546].

Merge of [37755] to the 4.5 branch.

Props adamsilverstein.
Fixes #36900.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37804 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:48:13 +00:00
Rachel Baker
74afccdf6c Revisions: Change the capability needed to view revision diffs to edit_post.
Merge of [37779] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37791 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:25:31 +00:00
Nikolay Bachiyski
eb107ac90f Admin: Escape attachment name in case it contains special characters
Merge of [37774] to the 4.5 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37783 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:20:50 +00:00
Dominik Schilling (ocean90)
ad3df34b98 Customize: Make sure that preview and return URLs are URLs.
Merge of [37527] to the 4.5 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37768 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:15:40 +00:00
Boone Gorges
dc99ca6cd2 Taxonomy: More specific cap check when processing category data on post save.
Ports [37691] to the 4.5 branch.

 Props dlh.
 Fixes #36379.
 Please enter the commit message for your changes. Lines starting

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37759 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:10:31 +00:00
Jeremy Felt
036285de50 Admin: Allow for the consistent filtering of auth_redirect_scheme
Merge of [37651] to the 4.5 branch.

See #37047.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37757 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-21 14:09:51 +00:00
Pascal Birchler
aac1185ea9 Menus: Support nested array variables in POST data when saving menus.
[36510] allowed larger menus to be created in the Edit Menu screen by JSON-encoding the entire form into a single input field. However, it did not correctly handle nested arrays.

This introduces a new `_wp_expand_nav_menu_post_data()` helper function to handle this POST data which uses `array_replace_recursive()` internally. Since the latter is only available on PHP 5.3+, we add a compatibility function to ensure PHP 5.2 support.

Merge of [37748] and [37750] to the 4.5 branch.

Props ericlewis, neverything, swissspidy.
Fixes #36590. See #14134.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37754 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-20 19:49:49 +00:00
Aaron Jorbin
cf248314d9 Output node and npm versions on travis.
In order to make local debugging of travis easier, output the npm and node versions when travis runs.

[37730] for 4.5.

see #37116. 


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37733 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 17:31:08 +00:00
Pascal Birchler
edb9596c6b Embeds: Enforce a valid post ID when embedding a post from the current site.
Otherwise `wp_filter_pre_oembed_result()` could erroneously return the HTML of the current post instead of the intended result.

Merge of [37729] to the 4.5 branch.

Props kraftbj.
See #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37732 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 17:29:51 +00:00
Dominik Schilling (ocean90)
86edff01d6 Customize: Separate preview and actions in the site icon control.
Reverts [37456] to allow users to remove/change a site icon even if the attachment has corrupt/missing data about sizes.

Merge of [37724] to the 4.5 branch.

See #36749.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37725 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-16 09:52:36 +00:00
Pascal Birchler
b4e06aa412 Fix tests after [37709].
Avoids using `assertNotFalse()` which is only available in PHPUnit 4.0 and above.

See [37708], [37710].
See #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37711 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-15 12:23:13 +00:00
Pascal Birchler
d60c6d1206 Embeds: Improve performance when embedding a post of the current site.
When the post being embedded is from the same site, there's no reason to do an HTTP request for it. The data can be fetched directly using `get_oembed_response_data()`.

Merge of [37708] to the 4.5 branch.

Fixes #36767.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37709 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-15 11:31:12 +00:00
Dominik Schilling (ocean90)
d9a1e36886 Database: dbDelta() will no longer try to downgrade the size of TEXT and BLOB columns.
When upgrading to `utf8mb4`, `TEXT` fields will be upgraded to `MEDIUMTEXT` (and likewise for all other `*TEXT` and `*BLOB` fields). This is to allow for the additional space requirements of `utf8mb4`.

On the subsequent upgrade, after the `utf8mb4` upgrade, `dbDelta()` would try and downgrade the fields to their original size again. At best, this it a waste of time, at worst, this could truncate any data larger than the original size. There's no harm in leaving them at their original size, so let's do that.

Merge of [37525] to the 4.5 branch.

Props pento.
See #36748.



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37606 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:58:36 +00:00
Dominik Schilling (ocean90)
62efcb9853 TinyMCE: Fix inline toolbar positioning.
Introduced in [37000].
See 2fb8aa48e9.
See 5734a8d880.

Merge of [37559] to the 4.5 branch.

Props iseulde.
Fixes #36876.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37605 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:31:17 +00:00
Dominik Schilling (ocean90)
dd25b54029 External Libraries: Update jQuery Migrate to 1.4.1.
http://blog.jquery.com/2016/05/19/jquery-migrate-1-4-1-released-and-the-path-to-jquery-3-0/

Unquoted selectors for attribute selectors should function once again (and output a warning so that plugins and themes using them can update).

Merge of [37472] to the 4.5 branch.

Props jorbin.
Fixes #36892.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37604 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 12:24:46 +00:00
Dominik Schilling (ocean90)
57a94b8bce External Libraries: Update jQuery to 1.12.4.
Release post: https://blog.jquery.com/2016/05/20/jquery-1-12-4-and-2-2-4-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.3...1.12.4

Merge of [37433] and [37526] to the 4.5 branch.

Fixes #36533.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37528 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-23 09:33:24 +00:00
Dominik Schilling (ocean90)
496e06fafe Media: Remove medium_large size from $whitelist_options['media'] in options.php.
The `medium_large_size_w` and `medium_large_size_h` options were added to the
`$whitelist_options['media']` in options.php in [35479], which causes both options
to be set to `0` when the media settings are changed. When this occurs, the
medium_large image size will no longer be created when an image is uploaded.

Since these options aren't meant to be updated via the settings UI, they can be
safely removed from the whitelist.

Merge of [37435] to the 4.5 branch.

Props joemcgill.
Fixes #36531.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37457 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:39:15 +00:00
Dominik Schilling (ocean90)
e000bcb118 Embeds: Change attachment metadata condition to prevent a warning in the embeds template.
Merge of [37452] to the 4.5 branch.

Props swissspidy.
See #35237.
Fixes #36838.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37455 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:37:10 +00:00
Dominik Schilling (ocean90)
ebeaa8db3d TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button.
Merge of [37301] to the 4.5 branch.

Props iseulde.
Fixes #36637.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37454 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:35:23 +00:00
Dominik Schilling (ocean90)
7dc9387dd8 Customize: Handle filtering sidebars_widgets when the underlying option is non-existent.
Fixes warning related to a non-array argument for `array_merge()` in `WP_Customize_Widgets::customize_register()`. 

Merge of [37352] to the 4.5 branch.

See [37166].
See #36389.
Fixes #36660.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37453 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:33:26 +00:00
Dominik Schilling (ocean90)
e64728b9d2 Bootstrap/Load: Silence ini_set() in wp_debug_mode().
Merge of [37448] to the 4.5 branch.

Props SergeyBiryukov.
Fixes #36708.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37451 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:30:02 +00:00
Dominik Schilling (ocean90)
9be43f8fc9 Customize: Remove use of reserved word default in Underscore template which breaks IE8.
Fixes regression introduced in [36769].

Merge of [37417] to the 4.5 branch.

Props adamsilverstein.
Fixes #36793.


git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37450 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 20:28:19 +00:00
Aaron Jorbin
7ad2ba8904 Correct usage of Covers for Tests_Update_Comment_Count_Now
When @covers is used with a plain alphanumeric string, PHPUnit assumes that it is covering a class. If there is no class, it fails and exits rather than continuing to generate coverage. To cover a global function, the name must start with `::`.  See https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers

See #35060, #36867



git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37445 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-17 17:51:17 +00:00
Dominik Schilling (ocean90)
28826f98e5 The 4.5 branch is now 4.5.3-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37420 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-12 11:53:57 +00:00
Dominik Schilling (ocean90)
fddae00857 Bump 4.5 branch to 4.5.2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37384 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-06 18:10:27 +00:00