Eric Lewis
8592072857
Editor: Fix Mac keyboard shortcut for distraction free writing.
...
Fixes #36214 .
Built from https://develop.svn.wordpress.org/trunk@36973
git-svn-id: http://core.svn.wordpress.org/trunk@36941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-12 17:44:26 +00:00
Andrew Ozz
70ac7ab943
Editor: hide the Move to Trash link for auto-drafts until they are auto-saved.
...
Props iseulde.
Fixes #16116 .
Built from https://develop.svn.wordpress.org/trunk@36972
git-svn-id: http://core.svn.wordpress.org/trunk@36940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-12 17:22:26 +00:00
Andrew Ozz
91d2354e7c
Editor: correct and update the Visual and Text editors description in the screen help.
...
Props arush, adamsilverstein, azaozz.
Fixes #35479 .
Built from https://develop.svn.wordpress.org/trunk@36971
git-svn-id: http://core.svn.wordpress.org/trunk@36939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-12 16:43:26 +00:00
Dominik Schilling
d8f3325c14
Docs: Correct grammar when referring to "a URL" vs "an URL" in several places.
...
Fixes #36218 .
Built from https://develop.svn.wordpress.org/trunk@36970
git-svn-id: http://core.svn.wordpress.org/trunk@36938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-12 12:39:27 +00:00
Pascal Birchler
9462ab0576
Taxonomy: After [36874], rename `$term_id` to `$tag_ID` in `wp-admin/edit-tag-form.php`.
...
This ensures that no variables changed in the process of introducing `wp-admin/term.php`, improving overall backward compatibility.
Props Chouby for initial patch.
Fixes #34988 .
Built from https://develop.svn.wordpress.org/trunk@36969
git-svn-id: http://core.svn.wordpress.org/trunk@36937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-11 08:52:29 +00:00
Dominik Schilling
4497ddfcb2
Media: Merge two error messages and use `sprintf()` for the method names.
...
See #33642 .
Built from https://develop.svn.wordpress.org/trunk@36968
git-svn-id: http://core.svn.wordpress.org/trunk@36936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 23:36:26 +00:00
Andrea Fercia
0020bcd796
Coding standards after [36510].
...
Built from https://develop.svn.wordpress.org/trunk@36967
git-svn-id: http://core.svn.wordpress.org/trunk@36935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 23:18:26 +00:00
Drew Jaynes
4ecad983b3
Docs: Improve two 4.5.0 changelog entries added for the `plugins_update_check_locales` and `themes_update_check_locales` filters, introduced in [36630].
...
See #34937 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36966
git-svn-id: http://core.svn.wordpress.org/trunk@36934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 23:01:26 +00:00
Drew Jaynes
2e0866bcbc
Docs: Correct a typo in the DocBlock summary for `get_embed_template()`, introduced in [36963].
...
Props swissspidy.
See #34561 , #34278 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36965
git-svn-id: http://core.svn.wordpress.org/trunk@36933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:45:26 +00:00
Andrea Fercia
fd1f45a7cf
Accessibility: Improve accessibility for the Plugin details modal.
...
The plugin details modal can be invoked from several screens. There's now a new
`.open-plugin-details-modal` CSS class to be used in combination with the
`.thickbox` CSS class that adds everything needed for accessibility.
- Adds an ARIA role `dialog` and an `aria-label` attribute to the modal
- Adds a `title` attribute to the iframe inside the modal
- Constrains tabbing within the modal
- Restores focus back in a proper place when closing the modal
Also, improves a bit the native Thickbox implementation: it should probably be
replaced with some more modern tool but at least keyboard focus should be moved
inside the modal.
Fixes #33305 .
Built from https://develop.svn.wordpress.org/trunk@36964
git-svn-id: http://core.svn.wordpress.org/trunk@36932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:37:26 +00:00
Drew Jaynes
b533878fa2
Docs: Use a third-person singular verb in the summary for `get_embed_template()`, introduced in [36876].
...
See #34561 , #34278 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36963
git-svn-id: http://core.svn.wordpress.org/trunk@36931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:09:26 +00:00
Drew Jaynes
c29baeb9b8
Docs: Improve changelog entries added for the `delete_term` and `delete_{$taxonomy}` actions in [36080] and a third entry added for the `clean_term_cache` action in [36399]
...
See #35213 , #35611 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36962
git-svn-id: http://core.svn.wordpress.org/trunk@36930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:07:27 +00:00
Drew Jaynes
f83488a058
Docs: Improve the summary and return description in the DocBlock for `unregister_taxonomy()`, introduced in [36243].
...
See #35227 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36961
git-svn-id: http://core.svn.wordpress.org/trunk@36929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:02:26 +00:00
Drew Jaynes
7f77d5074c
Docs: Use a third-person singular verb for the DocBlock summary for `remove_permastruct()`, introduced in [36181].
...
See #35235 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36960
git-svn-id: http://core.svn.wordpress.org/trunk@36928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 22:00:27 +00:00
Andrea Fercia
899edd87da
Accessibility: Improve the color contrast ratio of the expandable panel "handles".
...
Fixes #35923 .
Built from https://develop.svn.wordpress.org/trunk@36959
git-svn-id: http://core.svn.wordpress.org/trunk@36927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 21:44:26 +00:00
Rachel Baker
a6e66c0cfc
Comments: On the Edit Comment screen do not show the permalink for unapproved comments.
...
Fixes #36161 .
Built from https://develop.svn.wordpress.org/trunk@36958
git-svn-id: http://core.svn.wordpress.org/trunk@36926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 21:18:27 +00:00
Tammie Lister
74e13b1149
Twenty Elevent: Captioned image fix for editor
...
Fixes #33153
Props: @iseulde
Built from https://develop.svn.wordpress.org/trunk@36957
git-svn-id: http://core.svn.wordpress.org/trunk@36925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 21:13:26 +00:00
Tammie Lister
d8636e70d7
Twenty Thirteen: Removes title attribute from footer
...
Fixes #35843
Props: @davidakennedy
Built from https://develop.svn.wordpress.org/trunk@36956
git-svn-id: http://core.svn.wordpress.org/trunk@36924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 21:07:26 +00:00
Dominik Schilling
703d5bdc8d
Build Tools: Rename the `precommit:core` task to `precommit:base` for clarification.
...
`precommit:base` runs only the `imagemin:core` task.
Fixes #35557 .
Built from https://develop.svn.wordpress.org/trunk@36955
git-svn-id: http://core.svn.wordpress.org/trunk@36923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 20:14:27 +00:00
Dominik Schilling
337488e684
oEmbed: Extend the provider list to support moments and timelines from Twitter.
...
Fixes #36197 .
Built from https://develop.svn.wordpress.org/trunk@36954
git-svn-id: http://core.svn.wordpress.org/trunk@36922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 20:04:26 +00:00
John Blackbourn
53851c612c
Rewrite Rules: Allow rewrite rules to work in nested WordPress installations on IIS.
...
Props WiZZarD_
Fixes #35558
Built from https://develop.svn.wordpress.org/trunk@36953
git-svn-id: http://core.svn.wordpress.org/trunk@36921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 20:01:28 +00:00
John Blackbourn
adfc09f1b5
Correct a unit test for custom icon functionality.
...
See #36086
Built from https://develop.svn.wordpress.org/trunk@36952
git-svn-id: http://core.svn.wordpress.org/trunk@36920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 19:59:28 +00:00
John Blackbourn
ead41790aa
Embeds: Add support for `dai.ly` embeds over HTTPS.
...
Fixes #36189
Built from https://develop.svn.wordpress.org/trunk@36951
git-svn-id: http://core.svn.wordpress.org/trunk@36919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 19:49:27 +00:00
Konstantin Obenland
ff3babeb53
Template: Explicitly set `full` as the default custom logo size.
...
See #33755 .
Built from https://develop.svn.wordpress.org/trunk@36950
git-svn-id: http://core.svn.wordpress.org/trunk@36918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 19:03:26 +00:00
Konstantin Obenland
3e82e111e1
Tests: Introduce multisite unit tests.
...
Makes sure custom logo functions work for other sites within a network.
Fixes a bug in `get_custom_logo()` where the correct logo was returned, but
linked to the wrong site.
H/t ocean90.
See #33755 , #36086 .
Built from https://develop.svn.wordpress.org/trunk@36949
git-svn-id: http://core.svn.wordpress.org/trunk@36917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:57:26 +00:00
Konstantin Obenland
d21d537280
Customize: Use full URL to image to prevent breakage if moved.
...
See https://core.trac.wordpress.org/ticket/33755#comment:103
See #33755 .
Built from https://develop.svn.wordpress.org/trunk@36948
git-svn-id: http://core.svn.wordpress.org/trunk@36916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:53:25 +00:00
Drew Jaynes
9c52d28c37
Docs: Improve syntax in the DocBlock for `rest_get_server()`, introduced in [36529].
...
See #35329 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36947
git-svn-id: http://core.svn.wordpress.org/trunk@36915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:49:26 +00:00
Aaron Jorbin
04071eedea
Update Twitter oEmbed URL.
...
Twitter moved its preferred oEmbed URL for single Tweets from api.twitter.com to publish.twitter.com. They also are deprecating XML responses.
Props niallkennedy.
Fixes #36197 .
Built from https://develop.svn.wordpress.org/trunk@36946
git-svn-id: http://core.svn.wordpress.org/trunk@36914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:40:29 +00:00
Drew Jaynes
f9919442e2
Docs: Improve the DocBlock summary for `wp_queue_posts_for_term_meta_lazyload()`, introduced in [36566].
...
See #35816 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36945
git-svn-id: http://core.svn.wordpress.org/trunk@36913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:29:26 +00:00
Drew Jaynes
49803ffabe
Docs: Improve the accuracy of the return description for `unregister_post_type()`, introduced in [36316].
...
See #14761 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36944
git-svn-id: http://core.svn.wordpress.org/trunk@36912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:25:25 +00:00
Konstantin Obenland
91460e2af1
Twenty Fifteen: Simplify `twentyfifteen_the_custom_logo()`.
...
See b72e3d8059
See #35944 .
Built from https://develop.svn.wordpress.org/trunk@36943
git-svn-id: http://core.svn.wordpress.org/trunk@36911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 18:21:27 +00:00
Drew Jaynes
49ecfd6ae0
Docs: Use a third-person singular verb for the `get_the_excerpt()` DocBlock summary.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36942
git-svn-id: http://core.svn.wordpress.org/trunk@36910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:52:26 +00:00
Drew Jaynes
a89fee749a
Docs: Improve the DocBlock summary for `wp_metadata_lazyloader()`, introduced in [36566].
...
See #35816 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36941
git-svn-id: http://core.svn.wordpress.org/trunk@36909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:50:27 +00:00
Drew Jaynes
d5e084a5b7
Docs: Improve the usefulness of the DocBlock summary for `get_edit_term_link()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36940
git-svn-id: http://core.svn.wordpress.org/trunk@36908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:48:26 +00:00
Drew Jaynes
d94b2fb3ef
Docs: Improve the 4.5.0 changelog entry in the hook doc for the `get_archives_link` filter, introduced in [36418].
...
See #35573 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36939
git-svn-id: http://core.svn.wordpress.org/trunk@36907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:47:26 +00:00
Drew Jaynes
643df239b1
Docs: Improve the `$blog_id` parameter description in the DocBlock for `the_custom_logo()`, introduced in [36698].
...
See #33755 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36938
git-svn-id: http://core.svn.wordpress.org/trunk@36906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:46:27 +00:00
Drew Jaynes
965985dd23
Docs: Improve the `$blog_id` parameter description in the DocBlock for `get_custom_logo()`, introduced in [36698].
...
See #33755 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36937
git-svn-id: http://core.svn.wordpress.org/trunk@36905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:45:25 +00:00
Drew Jaynes
b04826bfe0
Docs: Improve inline documentation for `has_custom_logo()`, introduced in [36698].
...
See #33755 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36936
git-svn-id: http://core.svn.wordpress.org/trunk@36904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 17:44:25 +00:00
Dominik Schilling
d483093e0b
Build Tools: Update grunt-rtlcss ~1.6.0 → ~2.0.1.
...
This updates the underlying RTLCSS framework to 2.0 which provides new options and config settings, see https://github.com/MohammadYounes/rtlcss/blob/master/CHANGELOG.md#200---18-feb-2016 .
See #35104 .
Build: https://build.trac.wordpress.org/changeset/36903
Built from https://develop.svn.wordpress.org/trunk@36935
git-svn-id: http://core.svn.wordpress.org/trunk@36903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 16:01:32 +00:00
Dominik Schilling
f37eca2259
Editor: Fix size of the resize handle on RTL sites for HiDPI screens.
...
Also, add the `/*rtl:ignore*/` control directive so rtlcss doesn't process them again.
Fixes #36193 .
Built from https://develop.svn.wordpress.org/trunk@36934
git-svn-id: http://core.svn.wordpress.org/trunk@36902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 14:06:29 +00:00
Mike Schroder
879bcc3c45
Post 4.5-beta3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@36933
git-svn-id: http://core.svn.wordpress.org/trunk@36901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 07:01:27 +00:00
Mike Schroder
20df3fc1eb
4.5-beta3
...
Built from https://develop.svn.wordpress.org/trunk@36932
git-svn-id: http://core.svn.wordpress.org/trunk@36900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 06:49:26 +00:00
Gary Pendergast
c1a1987d95
Customize: Update `cropper.js` to match changes in [36866].
...
`media-views.js` was updated, but the changes weren't added to `cropper.js`, which caused the `grunt precommit:js` job to incorrectly remove the changes from `media-views.js`.
Fixes #32783 .
Built from https://develop.svn.wordpress.org/trunk@36931
git-svn-id: http://core.svn.wordpress.org/trunk@36899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 05:42:27 +00:00
Aaron Jorbin
1972aa2a2a
Add grunt prerelease task
...
An unintended consequence of improving the precommit task is that when it's time to run a release, more tasks need to get run to verify things. This adds a prerelease task to help fix that situation. grunt prerelease should include tasks that verify the code base is ready to be released to the wild and find all the tears on the mausoleum floor and help Blood stain the Colosseum doors.
See #35557
Built from https://develop.svn.wordpress.org/trunk@36930
git-svn-id: http://core.svn.wordpress.org/trunk@36898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-10 05:37:27 +00:00
Konstantin Obenland
9dda05f857
Customize: Bump down the priority custom logo's control.
...
Keeps the control in the same place but allows for plugins and themes to place
other controls above it.
Props celloexpressions.
Fixes #35942 .
Built from https://develop.svn.wordpress.org/trunk@36912
git-svn-id: http://core.svn.wordpress.org/trunk@36880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 22:03:27 +00:00
Konstantin Obenland
e677a80a26
Tests: Account for expected attachemnt size in custom logo output.
...
Fixes #36086 .
Built from https://develop.svn.wordpress.org/trunk@36911
git-svn-id: http://core.svn.wordpress.org/trunk@36879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 21:57:27 +00:00
Mel Choyce
3773f9be8b
About: Improve color contrast of WP Badge text, and update the logo to use the latest version.
...
Fixes #35661 .
Props @hugobaeta.
Built from https://develop.svn.wordpress.org/trunk@36910
git-svn-id: http://core.svn.wordpress.org/trunk@36878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 21:53:26 +00:00
Konstantin Obenland
dabfefcee2
Themes: Support second argument in theme support for custom logo.
...
See #33755 .
Built from https://develop.svn.wordpress.org/trunk@36909
git-svn-id: http://core.svn.wordpress.org/trunk@36877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 21:51:27 +00:00
Weston Ruter
7441acafaf
Customize: Fix persistence of toggles for displayed nav menu item properties.
...
* Eliminates need to click more than one checkbox to have preferences saved.
* Adds debouncing to saving user-selected menu item properties.
* Also removes discrepancies between available nav menu item properties on admin page vs Customizer.
Fixes #35273 .
Props afercia, westonruter.
Built from https://develop.svn.wordpress.org/trunk@36908
git-svn-id: http://core.svn.wordpress.org/trunk@36876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 21:41:28 +00:00
Konstantin Obenland
f39d1e4fcc
Customize: Reduce vertical space of site icon control.
...
Makes the control easier to find, reduces visual clutter, and is more
consistent with Customizer UI conventions.
Props celloexpressions.
Fixes #35943 .
Built from https://develop.svn.wordpress.org/trunk@36907
git-svn-id: http://core.svn.wordpress.org/trunk@36875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 21:19:27 +00:00
Aaron Jorbin
e505f0ac9c
Improve grunt precommit task
...
Instead of running all tasks, all the time, let's run tasks based on the files changed. PHPUNIT is now a precommit task for all php file changes.
This adds a new dependency. Please run `npm install`.
Fixes #35557
Props ericlewis, netweb, jorbin
Built from https://develop.svn.wordpress.org/trunk@36906
git-svn-id: http://core.svn.wordpress.org/trunk@36874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 20:55:30 +00:00
Aaron Jorbin
d33514870a
Add Automated Tests for custom logo support
...
[36698] introduced custom logos, this tests the API.
Fixes #36086 . See #33755 .
Props obenland.
Built from https://develop.svn.wordpress.org/trunk@36905
git-svn-id: http://core.svn.wordpress.org/trunk@36873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 20:44:26 +00:00
Andrea Fercia
a71f14b8d9
Accessibility: Reduce the WordPress shades of grey, Episode 3.
...
Also, removes some no more used CSS.
See #35783 .
Built from https://develop.svn.wordpress.org/trunk@36904
git-svn-id: http://core.svn.wordpress.org/trunk@36872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 19:51:26 +00:00
Weston Ruter
055154cb65
Customize: Restore body class removed in [36837] for when custom logo is present.
...
The class name is `wp-custom-logo` and it will be toggled by JS in the Customizer preview when the custom logo is added or removed.
See #33755 .
Fixes #35945 .
Built from https://develop.svn.wordpress.org/trunk@36903
git-svn-id: http://core.svn.wordpress.org/trunk@36871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 19:33:27 +00:00
Sergey Biryukov
90c7ce63d9
Use `admin_url()` for "Add New" links in `wp-admin/users.php`.
...
Props johnjamesjacoby.
Fixes #36186 .
Built from https://develop.svn.wordpress.org/trunk@36902
git-svn-id: http://core.svn.wordpress.org/trunk@36870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 19:09:50 +00:00
Sergey Biryukov
729ddb899c
Use `admin_url()` for "Add New" links in `wp-admin/upload.php`.
...
Props johnjamesjacoby.
See #36186 .
Built from https://develop.svn.wordpress.org/trunk@36901
git-svn-id: http://core.svn.wordpress.org/trunk@36869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 19:09:25 +00:00
Drew Jaynes
745ae9915f
Docs: Improve the DocBlock summary for `WP::remove_query_var()`, introduced in [36177].
...
See #35234 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36900
git-svn-id: http://core.svn.wordpress.org/trunk@36868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 17:05:29 +00:00
Drew Jaynes
feb3c20d12
Docs: Standardize file header summary for wp-includes/class-wp-metadata-lazyloader.php.
...
See [36897]. See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36899
git-svn-id: http://core.svn.wordpress.org/trunk@36867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 16:59:27 +00:00
Drew Jaynes
e7bea9ba6e
Docs: Improve inline documentation syntax throughout `WP_Metadata_Lazyloader`, introduced in [36566].
...
See #35816 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36898
git-svn-id: http://core.svn.wordpress.org/trunk@36866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 16:55:26 +00:00
Drew Jaynes
a1b18a3ae6
Docs: Add a missing file header to wp-includes/class-wp-metadata-lazyloader.php, introduced in [36566].
...
See #35816 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@36897
git-svn-id: http://core.svn.wordpress.org/trunk@36865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 16:52:27 +00:00
Boone Gorges
e032560e6b
Correct `@return` annotation for `wp_set_object_terms()` and related functions.
...
The return value is an array of term taxonomy IDs, not term IDs.
Fixes #36182 .
Built from https://develop.svn.wordpress.org/trunk@36896
git-svn-id: http://core.svn.wordpress.org/trunk@36864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 16:17:28 +00:00
Jeremy Felt
f917022d6f
Docs: Update the return type for `get_active_blog_for_user()`
...
This is now a `WP_Site` object.
See #32450 .
Built from https://develop.svn.wordpress.org/trunk@36895
git-svn-id: http://core.svn.wordpress.org/trunk@36862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 07:50:26 +00:00
Jeremy Felt
ba65ad94f2
Docs: Update param/return types for `WP_Site` in `ms-blogs.php`
...
* `get_blog_details()` now returns a `WP_Site` object.
* `clean_blog_cache()` is now called with a `WP_Site` object.
See #32450 .
Built from https://develop.svn.wordpress.org/trunk@36894
git-svn-id: http://core.svn.wordpress.org/trunk@36861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 07:42:26 +00:00
Jeremy Felt
80dd53519d
Docs: Update the return type for `get_current_site()`
...
This is now a `WP_Network` object.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36893
git-svn-id: http://core.svn.wordpress.org/trunk@36860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 07:28:26 +00:00
Weston Ruter
8c9c4b2698
Customize: Remove unused JS variable to fix jshint error introduced in [36890].
...
See #36164 .
Built from https://develop.svn.wordpress.org/trunk@36892
git-svn-id: http://core.svn.wordpress.org/trunk@36859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 05:05:27 +00:00
Mike Schroder
1e120a01ec
Media: Progressive enhancement for Imagick; add profiles to whitelist.
...
- Progressive enhancement for optional compression improvements and stripping meta.
- Whitelist IPTC and XMP profiles to maintain Copyright and Rights Usage Terms.
- Whitelist EXIF profile to maintain orientation information. If handled on upload in the future, it can be stripped as well.
Fixes #33642 . See #28634 .
Props joemcgill, juliobox, ahockley, markoheijnen, adamsilverstein, wonderboymusic, mikeschroder.
Built from https://develop.svn.wordpress.org/trunk@36891
git-svn-id: http://core.svn.wordpress.org/trunk@36858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 04:44:26 +00:00
Weston Ruter
d27ae61355
Customize: Remove selective refresh error message from appearing inline within the preview.
...
The error message will still be available in the developer console.
Removes part of [36586].
See #27355 .
Fixes #36164 .
Built from https://develop.svn.wordpress.org/trunk@36890
git-svn-id: http://core.svn.wordpress.org/trunk@36857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 04:37:28 +00:00
Weston Ruter
e11fd98ec6
Customize: Fix regressions and harden implementation of selective refresh for nav menus.
...
* Request full refresh if there are nav menu instances that lack partials for a changed setting.
* Restore `WP_Customize_Nav_Menus::$preview_nav_menu_instance_args` and `WP_Customize_Nav_Menus::export_preview_data()` from 4.3, and keeping a tally of all `wp_nav_menu()` calls regardless of whether they can use selective refresh.
* Ensure that all instances of `wp_nav_menu()` are tallied, regardless of whether they are made during the initial preview call or during subsequent partial renderings. Export `nav_menu_instance_args` with each partial rendering response just as they are returned when rendering the preview as a whole.
* Fix issues with Custom Menu widget where nav menu items would fail to render when switching between menus when a menu lacked items to begin with.
* Make sure the fallback behavior is invoked when the partial is no longer associated with a menu.
* Do fallback behavior to refresh preview when all menu items are removed from a menu.
Follows [36586].
See #27355 .
Fixes #35362 .
Built from https://develop.svn.wordpress.org/trunk@36889
git-svn-id: http://core.svn.wordpress.org/trunk@36856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-09 00:09:26 +00:00
Drew Jaynes
f64b97c597
Menus: Avoid a notice when outputting a description for an existing archive menu item for a post type that doesn't.
...
Props bradyvercher.
See [36859]. Fixes #35324 .
Built from https://develop.svn.wordpress.org/trunk@36888
git-svn-id: http://core.svn.wordpress.org/trunk@36855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 18:25:26 +00:00
Dominik Schilling
7e8e3429e1
Media: Change wording for media files which aren't attached.
...
The media library can contain files which aren't attached yet. When attaching a file you currently get "Media attachment reattached.", or the opposite "Media attachment detached.". That's redundant and can be inaccurate. It's also not easy to translate in some languages.
This change generalizes the strings to refer to a "media file" instead.
Props SergeyBiryukov, ocean90, netweb.
Fixes #36089 .
Built from https://develop.svn.wordpress.org/trunk@36887
git-svn-id: http://core.svn.wordpress.org/trunk@36854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 17:43:25 +00:00
Dominik Schilling
67475a943f
Update Random_Compat from 1.1.6 to 1.2.1.
...
Changes: https://github.com/paragonie/random_compat/compare/1.1.6...v1.2.1
See #35665 .
Built from https://develop.svn.wordpress.org/trunk@36886
git-svn-id: http://core.svn.wordpress.org/trunk@36853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 17:15:27 +00:00
Dominik Schilling
75c2005a49
Tests: Remove `test_new_files_are_not_in_old_files_array()` from [36843].
...
The test assumes that if a CSS file was added to `$_old_files` all three files (.css, .min.css, -rtl.min.css; it's actually missing the fourth case, -rtl.css) don't exist anymore. But this isn't always the case. The test is also incredible slow because it does three `file_exists()` checks for each file — the global contains 646 files currently.
It's important what we have in the /build directory and that's covered by `test_new_files_are_not_in_old_files_array_compiled()`.
Fixes #36083 .
Built from https://develop.svn.wordpress.org/trunk@36885
git-svn-id: http://core.svn.wordpress.org/trunk@36852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 16:45:27 +00:00
Dominik Schilling
d3f222e3b9
Script Loader: Enqueue the minified version of farbtastic if `SCRIPT_DEBUG` is false.
...
The files are available since [36341].
See #36083 , #35229 .
Built from https://develop.svn.wordpress.org/trunk@36884
git-svn-id: http://core.svn.wordpress.org/trunk@36851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 16:04:29 +00:00
Dion Hulse
0d60e585e6
Tests: Remove debug from [36882].
...
Built from https://develop.svn.wordpress.org/trunk@36883
git-svn-id: http://core.svn.wordpress.org/trunk@36850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 07:08:26 +00:00
Dion Hulse
227254aa74
Tests: Merge the two different `wp_normalize_path()` tests.
...
See #35996 , [36881].
Built from https://develop.svn.wordpress.org/trunk@36882
git-svn-id: http://core.svn.wordpress.org/trunk@36849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 07:07:28 +00:00
Dion Hulse
6a23a0ddd5
Filesystem: Support Windows shares/DFS roots in `wp_normalize_path()`.
...
Props rilwis for initial patch.
Fixes #35996 .
Built from https://develop.svn.wordpress.org/trunk@36881
git-svn-id: http://core.svn.wordpress.org/trunk@36848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 06:00:26 +00:00
Dion Hulse
68eb6c1593
oEmbed: During discovery, only request the first 150kb of linked content to avoid timouts requesting larger documents.
...
Fixes #35979 .
Built from https://develop.svn.wordpress.org/trunk@36880
git-svn-id: http://core.svn.wordpress.org/trunk@36847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-08 05:58:26 +00:00
Andrea Fercia
34ab7ae5ac
Accessibility: Remove the title attributes from the old Media UI.
...
Also, adds better indication and attributes for the required form fields.
Moves some styles to `deprecated-media.css`.
Props andg, afercia.
Fixes #34944 .
Built from https://develop.svn.wordpress.org/trunk@36879
git-svn-id: http://core.svn.wordpress.org/trunk@36846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 22:29:26 +00:00
Drew Jaynes
d59fdfd951
Docs: Add a missing `@since` version to the DocBlock for `wp_add_dashboard_widget()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36878
git-svn-id: http://core.svn.wordpress.org/trunk@36845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 22:17:26 +00:00
Andrea Fercia
5bd8219816
Customizer: Improve the collapsed view when switching to the responsive view.
...
Props rittesh.patel, afercia.
Fixes #35220 .
Built from https://develop.svn.wordpress.org/trunk@36877
git-svn-id: http://core.svn.wordpress.org/trunk@36844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 22:05:27 +00:00
Pascal Birchler
dc2f39b7f0
Embeds: Add support for embeds in the theme template hierarchy.
...
This allows themes to directly override the default template. The order in which the template is retrieved is as follows: `embed-$post_type-$post_format.php` -> `embed-$post_type.php` -> `embed.php`.
The `embed_template` filter gets replaced by the dynamic `{$type}_template` filter in `get_query_template()`.
Props ChriCo, swissspidy.
See #34561 . Fixes #34278 .
Built from https://develop.svn.wordpress.org/trunk@36876
git-svn-id: http://core.svn.wordpress.org/trunk@36843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 19:33:26 +00:00
Konstantin Obenland
c13130918a
Bundled Themes: Prevent elements within fieldsets from overflowing in Webkit.
...
Fixes #35421 .
Built from https://develop.svn.wordpress.org/trunk@36875
git-svn-id: http://core.svn.wordpress.org/trunk@36842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 19:15:30 +00:00
Pascal Birchler
033044a872
Taxonomy: Improve backward compatibility on the `wp-admin/term.php` page.
...
Specifically, run `do_action( 'edit-tags.php' );` on this new term edit page introduced in [36308]. Changes the GET param back to `tag_ID` and properly sets the screen base in `WP_Screen`.
See #34988 .
Built from https://develop.svn.wordpress.org/trunk@36874
git-svn-id: http://core.svn.wordpress.org/trunk@36841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 12:56:28 +00:00
Pascal Birchler
5d6513f0bc
Embeds: Adjust the iframe title attribute for improved accessibility.
...
Changes the title attribute from `Embedded WordPress Post` to `"Post name" — site title`.
Props ramiy.
Fixes #35804 .
Built from https://develop.svn.wordpress.org/trunk@36873
git-svn-id: http://core.svn.wordpress.org/trunk@36840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 10:00:29 +00:00
Dion Hulse
cbda43788b
Setup config: Generate the default secret keys & salts from the local CSPRNG if available, falling back to the WordPress.org API and a backup psuedo random source.
...
Props diddledan.
Fixes #35290
Built from https://develop.svn.wordpress.org/trunk@36872
git-svn-id: http://core.svn.wordpress.org/trunk@36839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-07 06:32:29 +00:00
Dominik Schilling
f4ef187c2c
Dependencies: Improve group processing of script dependencies.
...
This is a follow-up to [36604].
When processing dependencies `$this->group` will be the minimum of the script's registered group and all preceding siblings. This is wrong because only a scripts ancestors in the dependency chain should affect where it is loaded. Effectively `$this->group` introduced a form of global state which potentially corrupted the group of dependencies. Sorting covers up this problem.
The issue in #35873 was that script were not moving their dependencies to a lower group when necessary.
The fix:
* In `WP_Dependencies::all_deps()` pass the new `$group` value to `WP_Dependencies::all_deps()`. Previously the wrong value was passed because the parent script could have moved with `WP_Scripts::set_group()`.
* In `WP_Scripts::all_deps()` pass the `$group` parameter to `WP_Dependencies::all_deps()` so it doesn't always use `false` for `$group`. Same for `WP_Styles::all_deps()`.
Props stephenharris, gitlost.
Fixes #35956 .
Built from https://develop.svn.wordpress.org/trunk@36871
git-svn-id: http://core.svn.wordpress.org/trunk@36838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 19:50:27 +00:00
Pascal Birchler
c73a812109
HTTP: Avoid an undefined index notice in `wp_http_validate_url()`.
...
Props perezlabs.
Fixes #34164 .
Built from https://develop.svn.wordpress.org/trunk@36870
git-svn-id: http://core.svn.wordpress.org/trunk@36837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 15:55:26 +00:00
Andrea Fercia
aaa040eee9
CSS: Rename the handle for `deprecated-media.css` after [36341].
...
The `media` handle is now used for `media.css` thus the stylesheet
for the old media UI needs a different handle name.
See #35229 .
Built from https://develop.svn.wordpress.org/trunk@36869
git-svn-id: http://core.svn.wordpress.org/trunk@36836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 15:38:28 +00:00
Sergey Biryukov
b80a516549
Docs: Add `wp_add_dashboard_widget()` parameter descriptions.
...
Props meitar for initial patch.
Fixes #36092 .
Built from https://develop.svn.wordpress.org/trunk@36868
git-svn-id: http://core.svn.wordpress.org/trunk@36835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 12:08:28 +00:00
Jeremy Felt
27e29666a8
Multisite: Handle redirect to a user's subdomain properly during login
...
`wp-login.php` uses `wp_safe_redirect()` for all redirects, even those that do not involve unsafe data from the request or referer.
When a user of a subdomain site attempts to login to a network site they do not have access to, the host in the redirect URL is treated as unsafe by `wp_safe_redirect()` as it has no immediate awareness as to which hosts are valid on the network. On a subdirectoy network, everything works as expected because the host is the same.
In this specific block of `wp-login.php`, all URLs are generated by WordPress and we can use `wp_redirect()` to handle the redirects. Users authenticating via other network sites will now be redirected properly. Hosts passed via the `redirect_to` query var will continue to be handled by `wp_safe_redirect()`.
Fixes #30598 .
Built from https://develop.svn.wordpress.org/trunk@36867
git-svn-id: http://core.svn.wordpress.org/trunk@36834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 03:06:29 +00:00
Weston Ruter
40f6779665
Customize: Fix image cropping when doing live preview of theme switches.
...
Ensure that the Customizer gets bootstrapped with the pre-activated `theme` supplied in the `custom-header-crop` admin ajax requests.
Props faishal, rittesh.patel.
Fixes #32783 .
Built from https://develop.svn.wordpress.org/trunk@36866
git-svn-id: http://core.svn.wordpress.org/trunk@36833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-06 01:45:27 +00:00
Aaron Jorbin
fe4a3452c3
Update grunt-contrib-cssmin ~0.14.0 → ~1.0.0
...
See #35104 .
Built from https://develop.svn.wordpress.org/trunk@36865
git-svn-id: http://core.svn.wordpress.org/trunk@36832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:37:27 +00:00
Aaron Jorbin
796f7cd97d
Update grunt-contrib-copy ~0.8.2 → ~1.0.0
...
See #35104 .
Built from https://develop.svn.wordpress.org/trunk@36864
git-svn-id: http://core.svn.wordpress.org/trunk@36831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:35:27 +00:00
Aaron Jorbin
ac2d660906
Update grunt-contrib-concat ~0.5.1 → ~1.0.0
...
see #35104
Built from https://develop.svn.wordpress.org/trunk@36863
git-svn-id: http://core.svn.wordpress.org/trunk@36830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:32:27 +00:00
Aaron Jorbin
c6b12480a1
Update grunt-contrib-compress ~0.14.0 → ~1.1.0
...
See #35104
Built from https://develop.svn.wordpress.org/trunk@36862
git-svn-id: http://core.svn.wordpress.org/trunk@36829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:25:29 +00:00
Aaron Jorbin
06d9654602
Update grunt-contrib-clean from 0.6.0 → 1.0.0
...
see #35104
Built from https://develop.svn.wordpress.org/trunk@36861
git-svn-id: http://core.svn.wordpress.org/trunk@36828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:19:27 +00:00
Aaron Jorbin
241dfd09e8
Update Autoprefixer to 6.3.3
...
See #35104
Built from https://develop.svn.wordpress.org/trunk@36860
git-svn-id: http://core.svn.wordpress.org/trunk@36827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 23:16:32 +00:00
Aaron Jorbin
d71a0600a6
Ensure Description is respected in post type archive menu items.
...
Tested scenarios include: using the default (which is the post type description), Setting a custom description for that individual menu item, and setting a custom description that is blank. Introduced in r35382.
Props Toro_Unit, mayukojpn, extendwings, jorbin.
Fixes #35324 . See #16075 .
Built from https://develop.svn.wordpress.org/trunk@36859
git-svn-id: http://core.svn.wordpress.org/trunk@36826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 22:57:26 +00:00
Dominik Schilling
30f8c75047
Themes: Bring the device preview from [31195] to the theme install previewer.
...
Props celloexpressions.
Fixes #36017 .
Built from https://develop.svn.wordpress.org/trunk@36858
git-svn-id: http://core.svn.wordpress.org/trunk@36825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 22:07:25 +00:00
Andrew Ozz
b5cc1c7dfa
TinyMCE:
...
- Fix the icon for the native dialogs close button.
- Highlight the button on :focus.
See #36035 .
Built from https://develop.svn.wordpress.org/trunk@36857
git-svn-id: http://core.svn.wordpress.org/trunk@36824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-05 22:01:27 +00:00