Dominik Schilling
c3fe61770c
Media: Remove an extra quote when sending a link of a media file to the editor.
...
Introduced in [37035].
Props joemcgill, swissspidy, boonebgorges.
Fixes #36578 .
Built from https://develop.svn.wordpress.org/trunk@37288
git-svn-id: http://core.svn.wordpress.org/trunk@37254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 21:21:28 +00:00
Dominik Schilling
93eaf20f29
Themes: Update list of WordPress theme features.
...
* Remove color tags.
* Layout: Add Grid Layout, remove Fixed Layout, Fluid Layout, and Responsive Layout.
* Features: Add Footer Widgets, remove Blavatar.
* Subject: Add Blog, E-Commerce, Education, Entertainment, Food & Drink, Holiday, News, Photography and Portfolio, remove Photoblogging and Seasonal.
Props grapplerulrich, davewarfel.
Fixes #33407 .
Built from https://develop.svn.wordpress.org/trunk@37287
git-svn-id: http://core.svn.wordpress.org/trunk@37253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 21:11:29 +00:00
Dominik Schilling
3df07b17dd
Media: Don't cache the results of wp_mkdir_p()
in a persistent cache.
...
To improve the performance of `wp_upload_dir()` the result of `wp_mkdir_p()` was stored in a persistent cache, introduced in [36565]. But this becomes an issue when WordPress is scaled horizontally. You may end up caching a value for a server where the directory doesn't exist which will prevent further uploads on other servers because of the persistent cache.
The fix is to use a non-persistent cache.
Props azaozz, ocean90.
See #34359 .
Fixes #36621 .
Built from https://develop.svn.wordpress.org/trunk@37285
git-svn-id: http://core.svn.wordpress.org/trunk@37251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 19:58:27 +00:00
Weston Ruter
959f1a07a6
Customize/Formatting: Move sanitize_hex_color()
, sanitize_hex_color_no_hash()
, and maybe_hash_hex_color()
from class-wp-customize-manager.php
into formatting.php
.
...
Adds missing braces.
See #33413 .
Props downstairsdev, tollmanz.
Fixes #27583 .
Built from https://develop.svn.wordpress.org/trunk@37283
git-svn-id: http://core.svn.wordpress.org/trunk@37249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 19:22:27 +00:00
John Blackbourn
a58ec423da
Feeds: Revert [36230] which removed the rss-http
feed content type. Removing this means that any feeds which are using this feed content type are now being served as application/octet-stream
instead of text/xml
.
...
See #36620
Built from https://develop.svn.wordpress.org/trunk@37282
git-svn-id: http://core.svn.wordpress.org/trunk@37248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 18:57:28 +00:00
Sergey Biryukov
cf12011934
Docs: Move the clarification of is_tax()
and WP_Query::is_tax()
return value added in [37235] to @return
description.
...
Props DrewAPicture.
Fixes #36331 .
Built from https://develop.svn.wordpress.org/trunk@37281
git-svn-id: http://core.svn.wordpress.org/trunk@37247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 17:47:28 +00:00
Boone Gorges
da08f6a3de
Tests: More explicit fixture content when testing s=0
query string.
...
After [36647], the unit test generator sequence can put a 0 into the
'post_excerpt' field of a post fixture, causing false positives.
See [36520] for a parallel fix involving 'post_content'.
Fixes #36622 .
Built from https://develop.svn.wordpress.org/trunk@37280
git-svn-id: http://core.svn.wordpress.org/trunk@37246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 15:53:27 +00:00
Sergey Biryukov
1bd88850f7
Administration: Introduce admin_print_footer_scripts-$hook_suffix"
, a dynamic version of the admin_print_footer_scripts
hook.
...
This is now more consistent with the generic `admin_print_scripts` and the dynamic `admin_print_scripts-$hook_suffix` hooks fired in `wp-admin/admin-header.php`.
Props tfrommen.
Fixes #34334 .
Built from https://develop.svn.wordpress.org/trunk@37279
git-svn-id: http://core.svn.wordpress.org/trunk@37245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 15:17:27 +00:00
Sergey Biryukov
31b896d1aa
Docs: Reflect the new 'user'
option for wp_new_user_notification()
's $notify
parameter added in [37276] in wp_send_new_user_notifications()
docs as well.
...
Props ocean90.
Fixes #36009 .
Built from https://develop.svn.wordpress.org/trunk@37278
git-svn-id: http://core.svn.wordpress.org/trunk@37244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 12:01:27 +00:00
Sergey Biryukov
d42602334f
Users: Add a unit test for [37276].
...
See #36009 .
Built from https://develop.svn.wordpress.org/trunk@37277
git-svn-id: http://core.svn.wordpress.org/trunk@37243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 11:52:27 +00:00
Sergey Biryukov
c371296223
Users: In wp_new_user_notification()
, sdd 'user'
option for the $notify
parameter, which allows for sending notification only to the user created.
...
Props akibjorklund.
Fixes #36009 .
Built from https://develop.svn.wordpress.org/trunk@37276
git-svn-id: http://core.svn.wordpress.org/trunk@37242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 10:20:27 +00:00
Pascal Birchler
a47fa4f197
Rewrite Rules: After [36953], correctly replace existing rules on IIS when updating them.
...
Props WiZZarD_.
Fixes #36506 for trunk.
Built from https://develop.svn.wordpress.org/trunk@37273
git-svn-id: http://core.svn.wordpress.org/trunk@37239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 09:33:27 +00:00
Dominik Schilling
7b03510520
Upgrader: Clear plugin/theme caches directly after a plugin/theme has been updated.
...
`wp_update_plugins()` and `wp_update_themes()` are both hooked into `upgrader_process_complete` with priority 10. But at this stage the caches in `get_plugins()`, `search_theme_directories()`, and `wp_get_themes()` aren't refreshed yet so both functions couldn't fetch any translations for the new plugin/theme.
To reset the caches, `wp_clean_themes_cache()` and `wp_clean_plugins_cache()` are now hooked into `upgrader_process_complete` with priority 9.
This is a follow-up to [34751].
See #34029 .
Fixes #36383 .
Built from https://develop.svn.wordpress.org/trunk@37272
git-svn-id: http://core.svn.wordpress.org/trunk@37238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 09:09:28 +00:00
Drew Jaynes
7c5f77ece3
Tests: Pre-declare the $year_url
property before initialization in Tests_Get_Archives::setUp()
.
...
Props pbearne.
Fixes #36611 .
Built from https://develop.svn.wordpress.org/trunk@37271
git-svn-id: http://core.svn.wordpress.org/trunk@37237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 02:56:26 +00:00
Drew Jaynes
852e6921d2
Docs: Add missing return descriptions for WP_Filesystem_SSH2::chown()
and WP_Filesystem_SSH2::run_command()
.
...
Fixes #30989 .
Built from https://develop.svn.wordpress.org/trunk@37270
git-svn-id: http://core.svn.wordpress.org/trunk@37236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 02:38:29 +00:00
Jeremy Felt
bfaad85d86
Tests: Exclude ms-files
test group from default PHPUnit config
...
Multisite specific tests run as normal with `phpunit.xml.dist` and multisite constants defined. The `ms-files` group causes pollution when mixed with the rest of the tests, so it should be excluded here too.
See #36566 .
Built from https://develop.svn.wordpress.org/trunk@37269
git-svn-id: http://core.svn.wordpress.org/trunk@37235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 17:11:27 +00:00
Aaron Jorbin
fd4829b1a5
Don't announce PR builds in Slack
...
People may submit a PR to our travis build repo, we shouldn't notify slack when that happens.
See https://docs.travis-ci.com/user/notifications/#Slack-notifications
Fixes #36607
Built from https://develop.svn.wordpress.org/trunk@37268
git-svn-id: http://core.svn.wordpress.org/trunk@37234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 17:09:27 +00:00
Jeremy Felt
380128e053
Tests: Add speedTrapListener to multisite's PHPUnit config
...
See #36566 , #30017 .
Built from https://develop.svn.wordpress.org/trunk@37267
git-svn-id: http://core.svn.wordpress.org/trunk@37233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 17:02:27 +00:00
Jeremy Felt
285d3406f8
Tests: Allow override of MULTISITE
and SUBDOMAIN_INSTALL
constants
...
Props rmccue.
Fixes #36567 .
Built from https://develop.svn.wordpress.org/trunk@37266
git-svn-id: http://core.svn.wordpress.org/trunk@37232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 16:52:29 +00:00
Drew Jaynes
3e2e0c52e6
Docs: Clarify the return descriptions for get_the_time()
, get_post_time()
, and get_post_modified_time()
to specify when an integer in the form of a Unix timestamp should be expected.
...
See [30674]. See #30989 .
Built from https://develop.svn.wordpress.org/trunk@37265
git-svn-id: http://core.svn.wordpress.org/trunk@37231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:55:28 +00:00
Drew Jaynes
ddd3daf5ad
Docs: Clarify return descriptions in the DocBlocks for set_user_setting()
and delete_user_setting()
.
...
See [32613]. See #30989 .
Built from https://develop.svn.wordpress.org/trunk@37264
git-svn-id: http://core.svn.wordpress.org/trunk@37230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:47:26 +00:00
Drew Jaynes
14a399b69a
Docs: Clarify parameter and return descriptions in the DocBlock for wp_set_all_user_settings()
.
...
See [32613]. See #30989 .
Built from https://develop.svn.wordpress.org/trunk@37263
git-svn-id: http://core.svn.wordpress.org/trunk@37229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:45:29 +00:00
Boone Gorges
c8325e1ab5
Canonical: Use get_the_terms()
to verify that a post belongs to the requested %category%
.
...
The `get_the_terms()` wrapper provides cache support, and saves a database hit
on sites with a persistent cache backend.
Props spacedmonkey.
Fixes #36602 .
Built from https://develop.svn.wordpress.org/trunk@37262
git-svn-id: http://core.svn.wordpress.org/trunk@37228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:35:27 +00:00
Boone Gorges
9d9c6f3016
Tests: After [37260], use WP's setUpBeforeClass()
wrappers.
...
This ensures no leakage between tests of fixture IDs.
See #36602 .
Built from https://develop.svn.wordpress.org/trunk@37261
git-svn-id: http://core.svn.wordpress.org/trunk@37227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:31:28 +00:00
Boone Gorges
ba6525b1fe
Add tests for permastruct containing /%category%/
.
...
See #36602 .
Built from https://develop.svn.wordpress.org/trunk@37260
git-svn-id: http://core.svn.wordpress.org/trunk@37226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 15:00:28 +00:00
Drew Jaynes
49e3bc83dd
Docs: Capitalize URL – an acronym for Uniform Resource Locator – when used in the context of inline docs in wp-includes/link-template.php.
...
Fixes #30406 .
Built from https://develop.svn.wordpress.org/trunk@37259
git-svn-id: http://core.svn.wordpress.org/trunk@37225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 14:47:28 +00:00
Drew Jaynes
a368295c37
Docs: Notate more optional parameter defaults for a variety of function DocBlocks in wp-includes/link-template.php.
...
See #30406 .
Built from https://develop.svn.wordpress.org/trunk@37258
git-svn-id: http://core.svn.wordpress.org/trunk@37224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 14:37:29 +00:00
Gary Pendergast
b43ee4b8fe
Emoji: The diversity support test was incorrectly passing on all browsers.
...
[37028] missed some logic to capture the base emoji skin tone, to compare to the modified emoji skin tone. This caused all browsers to report that they supported skin tone modifiers, regardless of whether they actually did.
Fixes #36604 for trunk.
Built from https://develop.svn.wordpress.org/trunk@37256
git-svn-id: http://core.svn.wordpress.org/trunk@37222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 13:56:28 +00:00
Boone Gorges
742e0005c6
Add parameter documentation for 'post_category' to wp_insert_post()
.
...
Props Latz.
Fixes #36601 .
Built from https://develop.svn.wordpress.org/trunk@37255
git-svn-id: http://core.svn.wordpress.org/trunk@37221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 13:54:30 +00:00
Drew Jaynes
e58b8ad732
Docs: Notate optional parameter defaults for a variety of function DocBlocks in wp-includes/link-template.php.
...
See #30406 .
Built from https://develop.svn.wordpress.org/trunk@37254
git-svn-id: http://core.svn.wordpress.org/trunk@37220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-20 06:32:29 +00:00
Drew Jaynes
396018ab34
Docs: Properly notate optional parameters as such in a variety of DocBlocks in wp-includes/link-template.php.
...
See #30406 .
Built from https://develop.svn.wordpress.org/trunk@37252
git-svn-id: http://core.svn.wordpress.org/trunk@37218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 23:21:27 +00:00
Andrew Ozz
5dcf90c069
TinyMCE: backport fixes for 4.3.10:
...
- Conflict with typing the Euro sign on Windows: 5462e3c1dd
- opy/paste typo in the textcolor plugin: 1fc5a733e9
See #36545 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@37251
git-svn-id: http://core.svn.wordpress.org/trunk@37217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 23:01:27 +00:00
Dominik Schilling
40a4e2c3f2
Themes: Revert [36112]
...
Adding the `singular` class per default to the list of body classes is breaking the layout of Twenty Eleven and other themes. Twenty Eleven adds the `.singular` class only to single pages if the page doesn't use specific page templates.
Props flixos90, swissspidy.
Fixes #36510 .
Built from https://develop.svn.wordpress.org/trunk@37249
git-svn-id: http://core.svn.wordpress.org/trunk@37215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 21:24:27 +00:00
Aaron Jorbin
ee0ef3ca36
Use px
instead of in
in device preview
...
Devices are not consistent in how they handle `in` units. `in` was an attempt to cleverly disguise the exact size of the 'tablet'. The PHP code standards mentions avoiding clever code ( https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#clever-code ) but we should extend that idea to the css code as well.
Props celloexpressions
Fixes #36457
Built from https://develop.svn.wordpress.org/trunk@37247
git-svn-id: http://core.svn.wordpress.org/trunk@37213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 20:50:29 +00:00
Dion Hulse
0be2153bfb
IXR: Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array.
...
See #36586
Built from https://develop.svn.wordpress.org/trunk@37244
git-svn-id: http://core.svn.wordpress.org/trunk@37210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 06:13:29 +00:00
Sergey Biryukov
c8fe7cc538
Login/Registration: Add login_header
action that fires in the login page header after the body tag is opened and complements login_footer
.
...
Props borkweb, iamfriendly, voldemortensen.
Fixes #22139 .
Built from https://develop.svn.wordpress.org/trunk@37243
git-svn-id: http://core.svn.wordpress.org/trunk@37209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 23:54:29 +00:00
Andrew Ozz
7e5dcdb1aa
TinyMCE: update to 4.3.10, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt . Fixes #36545 for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@37242
git-svn-id: http://core.svn.wordpress.org/trunk@37208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 21:46:29 +00:00
Jeremy Felt
dea5e27d14
Tests: Add test for multiple site path segments in bootstrap
...
This fixes a `@todo` that has been around since the introduction of these tests in [28910].
See #36566 .
Built from https://develop.svn.wordpress.org/trunk@37241
git-svn-id: http://core.svn.wordpress.org/trunk@37207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 03:39:28 +00:00
Boone Gorges
6771f0e83e
Include taxonomy term metadata in WXR export.
...
Because term XML nodes now include termmeta and can thus be much larger, this
changeset also includes adds some newlines and indentation to make the XML
easier to read.
Props Chouby.
See #34062 .
Built from https://develop.svn.wordpress.org/trunk@37240
git-svn-id: http://core.svn.wordpress.org/trunk@37206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 03:38:27 +00:00
Jeremy Felt
e6913dcb2c
Tests: Add missing params to doc blocks
...
* These should have been included in [37236] and [37238].
* Simplifies parameter names in `test_get_network_by_path()`
See #36566 .
Built from https://develop.svn.wordpress.org/trunk@37239
git-svn-id: http://core.svn.wordpress.org/trunk@37205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 03:27:27 +00:00
Jeremy Felt
1071cbe866
Tests: Use a data provider to test multisite's bootstrap
...
This also helps to get things in order before the introduction of a more testable multisite bootstrap function in #34941 .
A `@todo` has been temporarily removed, to be re-introduced as a working test.
See #36566 .
Built from https://develop.svn.wordpress.org/trunk@37238
git-svn-id: http://core.svn.wordpress.org/trunk@37204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 03:19:26 +00:00
Jeremy Felt
dfd4b974ed
Tests: Use a data provider in get_site_by_path()
tests
...
See #36566 , #34941 .
Built from https://develop.svn.wordpress.org/trunk@37237
git-svn-id: http://core.svn.wordpress.org/trunk@37203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 02:39:27 +00:00
Jeremy Felt
d15e28a173
Tests: Use a data provider to test get_network_by_path()
...
See #36566 , #34941 .
Built from https://develop.svn.wordpress.org/trunk@37236
git-svn-id: http://core.svn.wordpress.org/trunk@37202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 02:01:28 +00:00
Sergey Biryukov
2032e527b3
Docs: Clarify that is_tax()
and WP_Query::is_tax()
return false for built-in taxonomies (category and tag archives).
...
Props theMikeD.
Fixes #36331 .
Built from https://develop.svn.wordpress.org/trunk@37235
git-svn-id: http://core.svn.wordpress.org/trunk@37201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 01:44:26 +00:00
Jeremy Felt
22252115e4
Tests: Share test fixtures in multisite bootstrap tests
...
* Remove unnecessary `setUp` and `tearDown` methods.
* Create networks and sites in `wpSetupBeforeClass` to share throughout.
* Destroy networks and sites in `wpTearDownAfterClass` to unpollute.
See #36566 , #34941 .
Built from https://develop.svn.wordpress.org/trunk@37234
git-svn-id: http://core.svn.wordpress.org/trunk@37200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 01:38:27 +00:00
Jeremy Felt
6040109de6
Tests: Improve get_blog_count()
tests
...
* Use `wp_update_network_counts()` to update the database with the most current data before testing.
* Use `wp_update_network_counts()` to update the database with the most current data after deleting the sites created during the test.
* Create only 1 extra site in each test rather than 4. This shaves several seconds off the test time.
* Stop testing for an extra count now that we update the network counts properly. Previously we looked at `$site_count_start + 9` rather than 8. Now this is `+ 1`, which aligns with the actual number of sites created.
* Test 3 explicit conditions - default, filter applied as `true`, and filter applied as `false`.
* Reset data before testing assertion to avoid a suspended state.
See #36566 .
Built from https://develop.svn.wordpress.org/trunk@37233
git-svn-id: http://core.svn.wordpress.org/trunk@37199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 01:29:26 +00:00
Sergey Biryukov
f79aad8e0c
Theme Editor: After [37217], add other embed templates to file descriptions.
...
Props Frozzare.
Fixes #34561 . See #34561 .
Built from https://develop.svn.wordpress.org/trunk@37232
git-svn-id: http://core.svn.wordpress.org/trunk@37198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 01:05:27 +00:00
Andrea Fercia
26148850c5
Accessibility: change the close "X" in the Media "Attach to existing content" modal in a button.
...
Props joedolson.
Fixes #36554 .
Built from https://develop.svn.wordpress.org/trunk@37231
git-svn-id: http://core.svn.wordpress.org/trunk@37197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 16:58:26 +00:00
Andrea Fercia
e38ab38b1f
Accessibility: Customizer, improve UI controls in customize.php
...
- makes the mobile preview/customize toggle a button
- changes the "Close" link hidden text from 'Cancel' to 'Close the Customizer and go back to the previous page'
- adds a missing `type="button"` attribute
- removes unnecessary `keydown` events and `preventDefault()`: buttons don't need a keydown event and when they have a `type="button"` attribute there's no default action to prevent
Props Cheffheid, afercia.
Fixes #31487 .
Built from https://develop.svn.wordpress.org/trunk@37230
git-svn-id: http://core.svn.wordpress.org/trunk@37196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 15:41:27 +00:00
Andrea Fercia
85cac9d47e
Customizer, Site Icon preview: improve alt attributes and text accessibility.
...
Props shahpranaf, TacoVerdo, afercia.
Fixes #36562 .
Built from https://develop.svn.wordpress.org/trunk@37229
git-svn-id: http://core.svn.wordpress.org/trunk@37195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 12:01:27 +00:00
Pascal Birchler
5cbdf22c0f
TinyMCE, inline link: Fix VoiceOver in Safari for search suggestions.
...
Props afercia.
Fixes #36458 .
Built from https://develop.svn.wordpress.org/trunk@37228
git-svn-id: http://core.svn.wordpress.org/trunk@37194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 11:09:28 +00:00
Pascal Birchler
026ed07458
Admin: Fix default avatar handling in Settings -> Discussion.
...
By passing the `force_default` argument to `get_avatar()` instead of using `preg_replace`, we make it easier for developers to override the output.
Props henry.wright.
Fixes #34744 .
Built from https://develop.svn.wordpress.org/trunk@37227
git-svn-id: http://core.svn.wordpress.org/trunk@37193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 10:19:28 +00:00
Jeremy Felt
698ca25fb9
Multisite: Make $current_site
and $current_blog
explicitly global.
...
See #34941 .
Built from https://develop.svn.wordpress.org/trunk@37226
git-svn-id: http://core.svn.wordpress.org/trunk@37192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 05:12:26 +00:00
Boone Gorges
54cf1d2c3d
Query: Allow results to be ordered by post_parent__in
.
...
Props postpostmodern.
Fixes #36515 .
Built from https://develop.svn.wordpress.org/trunk@37225
git-svn-id: http://core.svn.wordpress.org/trunk@37191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 03:17:27 +00:00
Boone Gorges
0e2978a5cd
Tests: Improvements to /post/query test class.
...
* Add `@group` annotation.
* Remove unnecessary `setUp()` method.
Built from https://develop.svn.wordpress.org/trunk@37224
git-svn-id: http://core.svn.wordpress.org/trunk@37190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 03:13:27 +00:00
Jeremy Felt
f6620f7b7f
Options: Do not set network options to autoload in single site
...
When multisite is not configured, the `_site_transient()` and `_site_option()` functions fallback to `_option()` and store network "meta/options" in `wp_options`.
Previously, those calls to `_option()` did not explicitly set the `autoload` parameter and anything assigned as a transient or option at the network level would be set to `autoload` by default, even though autoload is not yet a concept at the network option level.
This changes that behavior and forces the `autoload` setting to `no`. If `autoload` is desired, the single site option functions should be used.
Props thomaswm.
Fixes #22846 .
Built from https://develop.svn.wordpress.org/trunk@37223
git-svn-id: http://core.svn.wordpress.org/trunk@37189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 19:48:27 +00:00
Jeremy Felt
2cc9b6b410
Tests: Run network option tests as single and multisite
...
The `_network_option()` functions are available to all and
internally use `_option()` functions as a fallback. We should
be testing for that scenario as well.
Fixes #36552 .
Built from https://develop.svn.wordpress.org/trunk@37222
git-svn-id: http://core.svn.wordpress.org/trunk@37188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 19:22:27 +00:00
Andrea Fercia
76a6260353
Plugin Install: show the upload form in place rather than sending users to the devoted upload plugin page.
...
Props Ipstenu, ericlewis, michaelarestad.
Fixes #35429 .
Built from https://develop.svn.wordpress.org/trunk@37221
git-svn-id: http://core.svn.wordpress.org/trunk@37187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 16:43:27 +00:00
Boone Gorges
374a489166
In sanitize_post_field()
, only run 'attribute' or 'js' escaping when necessary.
...
Props tfrommen.
Fixes #34900 .
Built from https://develop.svn.wordpress.org/trunk@37220
git-svn-id: http://core.svn.wordpress.org/trunk@37186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 14:51:28 +00:00
Sergey Biryukov
784a00d49c
Themes: Account for longer strings in Theme Details bar on Themes screen.
...
Fixes #27939 .
Built from https://develop.svn.wordpress.org/trunk@37219
git-svn-id: http://core.svn.wordpress.org/trunk@37185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 13:59:26 +00:00
Sergey Biryukov
4109e8b9f8
Plugins: Properly wrap long tab names to a second line in plugin details modal.
...
Fixes #33221 .
Built from https://develop.svn.wordpress.org/trunk@37218
git-svn-id: http://core.svn.wordpress.org/trunk@37184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 13:18:27 +00:00
Sergey Biryukov
f760d05a63
Theme Editor: Add embed.php
to file descriptions.
...
Props ramiy.
Fixes #36551 .
Built from https://develop.svn.wordpress.org/trunk@37217
git-svn-id: http://core.svn.wordpress.org/trunk@37183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 12:47:27 +00:00
Sergey Biryukov
fc9d56c13f
Docs: Fix typo in wp_cache_switch_to_blog()
and WP_Object_Cache::switch_to_blog()
description.
...
Props bobbingwide.
Fixes #36548 .
Built from https://develop.svn.wordpress.org/trunk@37216
git-svn-id: http://core.svn.wordpress.org/trunk@37182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-16 12:37:30 +00:00
Rachel Baker
a0eab11bc1
Comments: Add parameters to edit_comment_link()
to allow specifying a Comment and link class.
...
Matches the parameters for `edit_post_link()`.
Fixes #36538 .
Props flixos90.
Built from https://develop.svn.wordpress.org/trunk@37215
git-svn-id: http://core.svn.wordpress.org/trunk@37181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 20:59:29 +00:00
Sergey Biryukov
7c2ad56158
Docs: Correct description for override_load_textdomain
and override_unload_textdomain
filters.
...
Props dimadin.
Fixes #36537 .
Built from https://develop.svn.wordpress.org/trunk@37214
git-svn-id: http://core.svn.wordpress.org/trunk@37180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 17:19:28 +00:00
Drew Jaynes
994bfb5b26
Docs: Use third-person singular verbs in DocBlock and hook doc summaries in wp-includes/link-template.php.
...
See #30406 .
Built from https://develop.svn.wordpress.org/trunk@37213
git-svn-id: http://core.svn.wordpress.org/trunk@37179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 16:58:27 +00:00
Aaron Jorbin
262f3f2f7e
Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1
...
This changes every JS file in WordPress, so we need to test everything.
Props netweb.
See #36520 .
Built from https://develop.svn.wordpress.org/trunk@37212
git-svn-id: http://core.svn.wordpress.org/trunk@37178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 16:10:37 +00:00
Ella Iseulde Van Dorpe
016562a9b3
Build/Test Tools: Run image tasks only if there are changes
...
See #36528 .
Built from https://develop.svn.wordpress.org/trunk@37211
git-svn-id: http://core.svn.wordpress.org/trunk@37177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 10:19:28 +00:00
John Blackbourn
17be663ad0
Add noindexing to the default wp_die()
handler to avoid unnecessary crawl errors in web search engines.
...
Fixes #34401
Props rodrigosprimo
Built from https://develop.svn.wordpress.org/trunk@37210
git-svn-id: http://core.svn.wordpress.org/trunk@37176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 02:05:27 +00:00
John Blackbourn
56cc4bc79c
Docs: Clarify possible types passed to the themes_api_result
filter.
...
See #32246
Built from https://develop.svn.wordpress.org/trunk@37209
git-svn-id: http://core.svn.wordpress.org/trunk@37175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 01:43:28 +00:00
Sergey Biryukov
8e498b933d
Comments: Allow for default comment form action, /wp-comments-post.php
, to be changed via the comment_form_defaults
filter.
...
Props cliffseal.
Fixes #26841 .
Built from https://develop.svn.wordpress.org/trunk@37208
git-svn-id: http://core.svn.wordpress.org/trunk@37174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 18:18:29 +00:00
Sergey Biryukov
4074bcc6a1
Bootstrap/Load: Allow for ABSPATH
to be defined outside of wp-load.php
, e.g. in a script loaded via auto_prepend_file
.
...
Props barry.
Fixes #26592 .
Built from https://develop.svn.wordpress.org/trunk@37207
git-svn-id: http://core.svn.wordpress.org/trunk@37173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 17:53:28 +00:00
Sergey Biryukov
acf69202a1
Build Tools: Don't run the build
task twice in grunt prerelease
(it already runs via the precommit:js
task).
...
Props netweb.
Fixes #36489 .
Built from https://develop.svn.wordpress.org/trunk@37206
git-svn-id: http://core.svn.wordpress.org/trunk@37172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 15:39:28 +00:00
Konstantin Obenland
5e22b71909
Themes: Fix single theme modal on collapsed menu.
...
Prevents the modal from being displayed off screen, when there is only one
theme available and the menu is collapsed.
Props hardeepasrani for initial patch.
Fixes #36504 .
Built from https://develop.svn.wordpress.org/trunk@37205
git-svn-id: http://core.svn.wordpress.org/trunk@37171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 12:20:29 +00:00
Jeremy Felt
8d5c62b923
Multisite: Fire a clean_site_cache
action when a site's cache is cleared
...
Props spacedmonkey.
Fixes #36203 .
Built from https://develop.svn.wordpress.org/trunk@37204
git-svn-id: http://core.svn.wordpress.org/trunk@37170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 04:19:27 +00:00
Jeremy Felt
f74e50d1dd
Multisite: Remove theme from network allowed themes when deleted
...
Previously, a deleted theme would remain in the list of allowed themes until manually cleared. This uses `WP_Theme::network_disable_theme()`, added in [37202].
Fixes #34182 .
Built from https://develop.svn.wordpress.org/trunk@37203
git-svn-id: http://core.svn.wordpress.org/trunk@37169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 03:49:26 +00:00
Jeremy Felt
6279ca91de
Multisite: Introduce WP_Theme
methods to network enable/disable themes.
...
* `WP_Theme::network_enable_theme()` can be used to enable a theme or array of themes on a network.
* `WP_Theme::network_disable_theme()` can be used to disable a theme or array of themes on a network.
* Use these new methods in the network admin vs direct `update_site_option()` calls.
* Add tests.
Props igmoweb.
Fixes #30594 .
Built from https://develop.svn.wordpress.org/trunk@37202
git-svn-id: http://core.svn.wordpress.org/trunk@37168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 03:40:27 +00:00
Sergey Biryukov
499763f725
I18N: Add translator comment for a string with a placeholder added in [36806].
...
Keep the comment for the string above too, for additional clarity.
Props christophherr.
Fixes #36493 .
Built from https://develop.svn.wordpress.org/trunk@37201
git-svn-id: http://core.svn.wordpress.org/trunk@37167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 03:39:27 +00:00
Jeremy Felt
6cc19b5e2e
Multisite: Relocate revoke_super_admin()
and grant_super_admin()
...
Moving these functions to `wp-includes/capabilities.php` allows plugins to access more than just `is_super_admin()` and `get_super_admin()` from the front end without including a file via `wp-admin/`. Add an `is_multisite()` check to prevent use of these on single site environments now that they have left `ms.php`..
Props johnjamesjacoby.
Fixes #21788 .
Built from https://develop.svn.wordpress.org/trunk@37200
git-svn-id: http://core.svn.wordpress.org/trunk@37166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 03:35:27 +00:00
Sergey Biryukov
efee62a316
Docs: Reference the correct variable in WP_Ajax_UnitTestCase::_handleAjax()
documentation.
...
Props meitar.
Fixes #36522 .
Built from https://develop.svn.wordpress.org/trunk@37199
git-svn-id: http://core.svn.wordpress.org/trunk@37165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 02:29:26 +00:00
Sergey Biryukov
6e54900924
I18N: Remove <kbd>
tags from translatable string in wp-admin/options-writing.php
.
...
Add translator comment.
Props ramiy.
Fixes #36249 .
Built from https://develop.svn.wordpress.org/trunk@37198
git-svn-id: http://core.svn.wordpress.org/trunk@37164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 02:25:26 +00:00
Sergey Biryukov
77e2737d89
Customizer: Remove the 'appearance' reference from permission error messages added in [33857], [33889], and [33902].
...
Props Frozzare.
Fixes #36466 .
Built from https://develop.svn.wordpress.org/trunk@37197
git-svn-id: http://core.svn.wordpress.org/trunk@37163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-14 01:58:28 +00:00
Boone Gorges
1e82651504
Pass thumbnail ID to the admin_post_thumbnail_html
filter.
...
Also updates changelog to reflect that `$post->ID` was added in 3.5
Props johnjamesjacoby.
Fixes #36443 .
Built from https://develop.svn.wordpress.org/trunk@37196
git-svn-id: http://core.svn.wordpress.org/trunk@37162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 16:18:28 +00:00
Sergey Biryukov
c55e4194f8
Docs: Fix typo in a comment in wp-admin/js/postbox.js
.
...
Props yoavf.
Fixes #36349 .
Built from https://develop.svn.wordpress.org/trunk@37195
git-svn-id: http://core.svn.wordpress.org/trunk@37161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 07:29:27 +00:00
Sergey Biryukov
e081720b67
Docs: Fix typo in get_image_send_to_editor()
description.
...
Props yoavf.
See #36349 .
Built from https://develop.svn.wordpress.org/trunk@37194
git-svn-id: http://core.svn.wordpress.org/trunk@37160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 07:28:28 +00:00
Sergey Biryukov
21bdbc204e
Docs: Fix typo in wp_update_theme()
description.
...
Props yoavf.
See #36349 .
Built from https://develop.svn.wordpress.org/trunk@37193
git-svn-id: http://core.svn.wordpress.org/trunk@37159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 07:27:28 +00:00
Mike Schroder
5102c98ab6
Media: Resolve fatal error on resize with ImageMagick < 6.4.6
...
Improper checking for 'Imagick::ALPHACHANNEL_UNDEFINED' and
'Imagick::ALPHACHANNEL_OPAQUE' caused fatal errors for some users
with Imagick when compiled against ImageMagick < 6.4.6, when these
constants were introduced. Fixes these compatibility checks.
Props gblsm.
Fixes #36501 .
Built from https://develop.svn.wordpress.org/trunk@37192
git-svn-id: http://core.svn.wordpress.org/trunk@37158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 06:18:28 +00:00
Sergey Biryukov
9dcfd91833
I18N: Update translator comments after [37190].
...
See #36496 .
Built from https://develop.svn.wordpress.org/trunk@37191
git-svn-id: http://core.svn.wordpress.org/trunk@37157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 04:30:29 +00:00
Sergey Biryukov
5e31cb45fe
I18N: After [37188], display script
and style
tags in the message as <script>
and <style>
.
...
Props dd32.
See #36496 .
Built from https://develop.svn.wordpress.org/trunk@37190
git-svn-id: http://core.svn.wordpress.org/trunk@37156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 04:16:27 +00:00
Boone Gorges
0b772e928c
Improve testability and coverage of wp_ext2type()
.
...
* Following pattern of `wp_get_mime_types()`, introduce `wp_get_ext_types()` function. New function returns a filtered list of file types with their extensions.
* Use this function in new tests for `wp_ext2type()`.
Props borgesbruno.
Fixes #35987 .
Built from https://develop.svn.wordpress.org/trunk@37189
git-svn-id: http://core.svn.wordpress.org/trunk@37155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 03:12:27 +00:00
Sergey Biryukov
7e40b1d282
I18N: Remove tag and function names from two translatable strings.
...
Add translator comments.
Props andg for initial patch.
Fixes #36496 .
Built from https://develop.svn.wordpress.org/trunk@37188
git-svn-id: http://core.svn.wordpress.org/trunk@37154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-13 03:02:27 +00:00
Ella Iseulde Van Dorpe
e9dbea9aac
Build/Test Tools: Better git/svn detection
...
Prevent tasks from running twice in parallel
if both .svn and .git directories are present.
Add `--ignore-externals` to `svn status`
and replace `git diff --name-only` with `git status --short`.
Merge some duplicate code.
Fixes #36394 .
See #35557 .
See [36906].
Built from https://develop.svn.wordpress.org/trunk@37185
git-svn-id: http://core.svn.wordpress.org/trunk@37152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-12 22:34:27 +00:00
Boone Gorges
20b1b2098a
Use LEFT JOIN
when building WP_Tax_Query
SQL.
...
`LEFT JOIN` ensures that `NOT EXISTS` queries will not miss posts that have
no taxonomy data whatsoever.
Props swissspidy, crstauf.
Fixes #36343 .
Built from https://develop.svn.wordpress.org/trunk@37184
git-svn-id: http://core.svn.wordpress.org/trunk@37151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-12 20:37:26 +00:00
Dominik Schilling
15889b6397
Trunk is now 4.6-alpha.
...
Built from https://develop.svn.wordpress.org/trunk@37183
git-svn-id: http://core.svn.wordpress.org/trunk@37150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-12 20:04:28 +00:00
Mike Schroder
59d0cd77dd
WordPress 4.5
...
Built from https://develop.svn.wordpress.org/trunk@37179
git-svn-id: http://core.svn.wordpress.org/trunk@37146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-12 17:29:26 +00:00
Mike Schroder
b3030ca696
About Page: Add Final Video
...
Props siobhan, melchoyce, hugobaeta, rosso99.
Built from https://develop.svn.wordpress.org/trunk@37178
git-svn-id: http://core.svn.wordpress.org/trunk@37145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-12 17:25:28 +00:00
Mike Schroder
6763394e10
Post 4.5-RC3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@37177
git-svn-id: http://core.svn.wordpress.org/trunk@37144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-11 19:13:26 +00:00
Mike Schroder
cbd085e290
4.5-RC3
...
Built from https://develop.svn.wordpress.org/trunk@37176
git-svn-id: http://core.svn.wordpress.org/trunk@37143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-11 18:31:27 +00:00
Dominik Schilling
74102fb128
About Page: Use srcset
and the w.org CDN for images.
...
Also, flip the "Selective Refresh" and "Smart Image Resizing" section and remove script enqueues which are no longer used.
Props joemcgill, melchoyce, ocean90.
Fixes #36173 .
Built from https://develop.svn.wordpress.org/trunk@37175
git-svn-id: http://core.svn.wordpress.org/trunk@37142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-11 17:46:27 +00:00
Dominik Schilling
12599ea170
TinyMCE, inline link: Make styles for the autocomplete results available on front end.
...
Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.
Props azaozz, imath.
Fixes #36461 .
Built from https://develop.svn.wordpress.org/trunk@37174
git-svn-id: http://core.svn.wordpress.org/trunk@37141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-11 15:12:29 +00:00
Mike Schroder
a116d786a5
Post 4.5-RC2 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@37173
git-svn-id: http://core.svn.wordpress.org/trunk@37140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-10 05:16:27 +00:00
Mike Schroder
388cf29da4
4.5-RC2
...
Built from https://develop.svn.wordpress.org/trunk@37172
git-svn-id: http://core.svn.wordpress.org/trunk@37139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-10 04:21:27 +00:00
Jeremy Felt
4d9c9b9433
Ensure consistent dependency order when using wp_add_inline_script()
...
This disables the concatenation of remaining enqueued scripts once `wp_add_inline_script()` is invoked, which allows us to reliably print these scripts and their before/after inline scripts in the desired order.
Props gitlost, azaozz, swisspidy, ocean90.
Fixes #36392 .
Built from https://develop.svn.wordpress.org/trunk@37171
git-svn-id: http://core.svn.wordpress.org/trunk@37138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-10 03:33:26 +00:00
Jeremy Felt
a70a6c4bae
4.5 About Page, second round.
...
* Adjust text.
* Improve headings hierarchy.
* Add translation functions and translator comments throughout.
Props ocean90, afercia, ramiy, mikeschroder, mattfelten, helen.
See #36173 .
Built from https://develop.svn.wordpress.org/trunk@37170
git-svn-id: http://core.svn.wordpress.org/trunk@37137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-10 02:03:29 +00:00
Andrew Ozz
4e6b257fa3
4.5 About screen.
...
Props mikeschroder, melchoyce, ocean90, ryelle, jeremyfelt, Ipstenu, celloexpressions, DrewAPicture.
See #36173 .
Built from https://develop.svn.wordpress.org/trunk@37169
git-svn-id: http://core.svn.wordpress.org/trunk@37136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-09 06:23:26 +00:00
Helen Hou-Sandí
5d8b9805eb
Default theme bumps for 4.5.
...
* Twenty Eleven 2.4
* Twenty Twelve 2.0
* Twenty Thirteen 1.9
* Twenty Fourteen 1.7
* Twenty Fifteen 1.5
props davidakennedy, ocean90.
fixes #36354 .
Built from https://develop.svn.wordpress.org/trunk@37168
git-svn-id: http://core.svn.wordpress.org/trunk@37135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-08 21:22:28 +00:00
Andrew Ozz
c353544c47
Customizer: fix cropping of small images when setting header image, site icon or logo.
...
Props obenland.
Fixes #36412 .
Built from https://develop.svn.wordpress.org/trunk@37167
git-svn-id: http://core.svn.wordpress.org/trunk@37134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-08 01:23:29 +00:00
Dominik Schilling
9363b592e3
Customize: Harden assignment of Customizer settings transports for selective refreshable widgets
...
Theme support for `customize-selective-refresh-widgets` can be added _after_ the logic for registering the settings for incoming widgets that have been changed. This is due to themes adding the theme support in `after_setup_theme` which is also the action where `WP_Customize_Widgets::register_settings()` is called. If these both happen at priority 10, which one is called first depends on which one was added first. The other issue is that at the time that `WP_Customize_Widgets::register_settings()` is called at `after_setup_theme`, it is called before `widgets_init` and thus no widgets are yet registered. This means that any settings registered at this point will always have a `refresh` transport even if the theme supports `customize-selective-refresh-widgets`, since the `WP_Widget` instance is not visible yet to see if it supports selective refresh.
The fix: Defer `WP_Customize_Widgets::register_settings()` from `after_setup_theme` to `widgets_init` at priority 95 when the widget objects have all been registered. Also, ensure that the preview filter for `sidebars_widgets` is added before the sidebars are iterated for adding the controls.
Props westonruter.
Fixes #36389 .
Built from https://develop.svn.wordpress.org/trunk@37166
git-svn-id: http://core.svn.wordpress.org/trunk@37133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-07 20:59:29 +00:00
Boone Gorges
cfab9716e3
Use __trashed
suffix rather than -%trashed%
for trashed post slugs.
...
Percent signs are reserved characters in URIs. As such, it was impossible for
plugins to route requests to trashed posts, as happens in bbPress. The new
`__trashed` suffix should be sufficiently unique.
Also adds a test that demonstrates that the `__trashed` suffix can be
appended to slugs that contain the suffix somewhere other than the end of
the string.
Props netweb, ericlewis.
Fixes #11863 .
Built from https://develop.svn.wordpress.org/trunk@37165
git-svn-id: http://core.svn.wordpress.org/trunk@37132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-07 19:22:28 +00:00
Aaron Jorbin
1c1daa7ba4
External Libraries: Update jQuery to 1.12.3.
...
Sing it with me: jQuery fixed two issues, now you can get them with WP 4.5.
Release Post: http://blog.jquery.com/2016/04/05/jquery-1-12-3-and-2-2-3-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.2...1.12.3
Fixes #35380 .
Props ocean90.
Built from https://develop.svn.wordpress.org/trunk@37164
git-svn-id: http://core.svn.wordpress.org/trunk@37131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-06 22:45:27 +00:00
Mark Jaquith
31152de134
REST API: Deliver parameters unadulterated instead of slashed.
...
We goofed, and parameters accessed through the REST API's methods
were slashed (inconsistently, even). This unslashes the data, so
you get the un-messed-with data that was sent.
Props joehoyle.
Fixes #36419 .
Built from https://develop.svn.wordpress.org/trunk@37163
git-svn-id: http://core.svn.wordpress.org/trunk@37130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-06 21:02:28 +00:00
Dominik Schilling
b3b22fa1c6
I18N: On the Updates screen simplify plugin's version details link.
...
Replace the use of a `.screen-reader-text` element with an `aria-label` attribute to make the text easier to translate.
Props dimadin, ocean90.
See #35001 .
Fixes #36410 .
Built from https://develop.svn.wordpress.org/trunk@37162
git-svn-id: http://core.svn.wordpress.org/trunk@37129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-06 12:52:30 +00:00
Aaron Jorbin
6c24223def
Make Moderate Comment Screen Great Again by showing links
...
You know what's wrong with the Moderate Comment Screen? It doesn't win anymore. Well, I'm going make the Moderate Comment screen win. It's going to win by showing the urls that are linked to from every anchor. It's going to win by having those urls be a lighter shade of gray than the surrounding text. Spammy links aren't going to be able to hide in commas. Spammy links aren't going to win. The Moderate Comment Screen is going to win and we are going to make the Moderate Comment Screen Great Again.
Fixes #36380
Props rachelbaker, mikeschroder, adamsilverstein, boonebgorges, melchoyce, ocean90, jorbin, pento
Built from https://develop.svn.wordpress.org/trunk@37161
git-svn-id: http://core.svn.wordpress.org/trunk@37127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-06 00:35:27 +00:00
Andrea Fercia
1bb3dd0ee7
Accessibility: improvements for the Editor wpLink modal form fields.
...
Adds `aria-describedby` attributes to the modal form fields after it
was partly restored in [37154].
Fixes #33301 .
Built from https://develop.svn.wordpress.org/trunk@37160
git-svn-id: http://core.svn.wordpress.org/trunk@37126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-05 22:24:27 +00:00
Dominik Schilling
f5c3c658a4
Editor: Remove trailing space from a help text string.
...
Props dimadin.
Fixes #36407 .
Built from https://develop.svn.wordpress.org/trunk@37159
git-svn-id: http://core.svn.wordpress.org/trunk@37125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-05 10:54:29 +00:00
John Blackbourn
32b262fa1c
Comments: Wrap the formatted comment text on the comment moderation screen in comment_text()
so paragraphs and texturisation are applied.
...
Fixes #34133
Built from https://develop.svn.wordpress.org/trunk@37158
git-svn-id: http://core.svn.wordpress.org/trunk@37124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-04 23:33:27 +00:00
John Blackbourn
217b3b6487
Role/Capability: Add create_sites
and delete_sites
to the list of capabilities that are checked as part of the comporehensive roles and capabilities tests.
...
See #32394 , #36413
Built from https://develop.svn.wordpress.org/trunk@37157
git-svn-id: http://core.svn.wordpress.org/trunk@37123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-04 22:30:28 +00:00
Dominik Schilling
3067561bd7
Plugins: Use correct placeholder for the number of reviews.
...
`number_format_i18n()` returns a string, not an integer.
See #35111 .
Fixes #36395 .
Built from https://develop.svn.wordpress.org/trunk@37156
git-svn-id: http://core.svn.wordpress.org/trunk@37122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-02 11:17:26 +00:00
Dominik Schilling
72a544168a
I18N: Clarify translator comment for an a11y label added in [36618].
...
Props TacoVerdo.
See #35111 .
Fixes #36396 .
Built from https://develop.svn.wordpress.org/trunk@37155
git-svn-id: http://core.svn.wordpress.org/trunk@37121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-02 11:12:26 +00:00
Andrew Ozz
2618ccf64d
Editor, wpLink:
...
- Restore the bottom half of the modal.
- Make it always expanded and remove the toggle. It is used as advanced link options now, no need to have simple mode.
Props iseulde, adamsilverstein, azaozz.
Fixes #36359 .
Built from https://develop.svn.wordpress.org/trunk@37154
git-svn-id: http://core.svn.wordpress.org/trunk@37120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-01 21:13:29 +00:00
Weston Ruter
a311bea6d1
Customize: Fix toggle of title attribute field visibility on nav menus admin page.
...
Improves alignment with nav menus in the Customizer, fixing regression introduced in [36908].
See #35273 .
Props sidati, westonruter.
Fixes #36353 .
Built from https://develop.svn.wordpress.org/trunk@37153
git-svn-id: http://core.svn.wordpress.org/trunk@37119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 21:55:27 +00:00
Weston Ruter
1a9fda07a4
Customize: Put focus on change button instead of remove button in media control.
...
Allow controls to specify the primary element to receive focus by adding a `control-focus` class.
Props adamsilverstein, westonruter.
Fixes #36337 .
Built from https://develop.svn.wordpress.org/trunk@37152
git-svn-id: http://core.svn.wordpress.org/trunk@37118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 21:41:26 +00:00
Aaron Jorbin
328b4aff92
Adjust unit tests to account for change in [37144]
...
Built from https://develop.svn.wordpress.org/trunk@37150
git-svn-id: http://core.svn.wordpress.org/trunk@37117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 19:53:25 +00:00
Aaron Jorbin
4e3df608dc
Remove Debugging code introduced in [37145]
...
Built from https://develop.svn.wordpress.org/trunk@37148
git-svn-id: http://core.svn.wordpress.org/trunk@37115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 18:58:26 +00:00
Aaron Jorbin
bd7ffca854
Add Nonce to updating wporg_favorites user meta field
...
Built from https://develop.svn.wordpress.org/trunk@37145
git-svn-id: http://core.svn.wordpress.org/trunk@37112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 18:36:26 +00:00
Nikolay Bachiyski
9b7a775413
Add nonce to AJAX action for script compression setting
...
Built from https://develop.svn.wordpress.org/trunk@37143
git-svn-id: http://core.svn.wordpress.org/trunk@37110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 18:21:25 +00:00
Konstantin Obenland
db47a4913c
Template: Remove $size
reference from get_custom_logo()
.
...
Argument was removed in [37077] in favor of `with` and `height` arguments.
Props ocean90.
Fixes #36327 .
Built from https://develop.svn.wordpress.org/trunk@37135
git-svn-id: http://core.svn.wordpress.org/trunk@37102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 17:20:27 +00:00
Nikolay Bachiyski
b4d97cc8a7
Taxonomies: make sure taxonomy functions work correctly with taxonomy names with special characters
...
The codex says that taxonomy names "should only contain lowercase letters and the underscore character", but that's not enforced. It's too late to enforce it, since some plugins haven't been following it and the official phpdoc doesn't mention this restriction.
Built from https://develop.svn.wordpress.org/trunk@37133
git-svn-id: http://core.svn.wordpress.org/trunk@37100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 17:13:28 +00:00
Jeremy Felt
cb2b3ed3c7
Multisite: Improve escaping in network settings.
...
Built from https://develop.svn.wordpress.org/trunk@37124
git-svn-id: http://core.svn.wordpress.org/trunk@37091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 15:59:26 +00:00
Dominik Schilling
af9f052087
HTTP: Improve detection of valid IP addresses.
...
Built from https://develop.svn.wordpress.org/trunk@37115
git-svn-id: http://core.svn.wordpress.org/trunk@37082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 15:38:26 +00:00
Drew Jaynes
9e4415bc5f
Docs: Ignore _wp_upload_dir_baseurl()
from parsing for the Code Reference.
...
See #36371 .
Built from https://develop.svn.wordpress.org/trunk@37114
git-svn-id: http://core.svn.wordpress.org/trunk@37081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 15:29:26 +00:00
Konstantin Obenland
1edaf1c357
Customize: Respect aspect ratio on cropped images.
...
Takes into account whether the control supports `flex_width` and/or
`flex_height` and adjusts destination measurements accordingly.
Fixes #36318 .
Built from https://develop.svn.wordpress.org/trunk@37113
git-svn-id: http://core.svn.wordpress.org/trunk@37080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 15:14:27 +00:00
Andrew Ozz
bfd19e92f5
Add deprecated notice and removal warning to _wp_upload_dir_baseurl()
.
...
Props DrewAPicture, azaozz.
Fixes #36371 .
Built from https://develop.svn.wordpress.org/trunk@37112
git-svn-id: http://core.svn.wordpress.org/trunk@37079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 15:10:27 +00:00
Dominik Schilling
6a3acea8b5
Multisite: Validate new email address confirmations.
...
Built from https://develop.svn.wordpress.org/trunk@37103
git-svn-id: http://core.svn.wordpress.org/trunk@37070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 14:44:26 +00:00
Nikolay Bachiyski
b15e4d2775
Snoopy: use escapeshellarg instead of escapeshellcmd
...
We are escaping arguments, not commands, so we'd better use the semantically correct function, even though they are similar.
Built from https://develop.svn.wordpress.org/trunk@37094
git-svn-id: http://core.svn.wordpress.org/trunk@37061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 13:58:28 +00:00
Aaron Jorbin
c1d684383c
Prevent PHP Warnings when using Custom Logo with no params
...
The parsing of defaults assumes that $args will be an array. This solves it for Custom Logo the same way it is solved for custom-header and custom-background.
Props obenland.
Fixes #36332 .
Built from https://develop.svn.wordpress.org/trunk@37092
git-svn-id: http://core.svn.wordpress.org/trunk@37059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-30 02:22:26 +00:00
Dominik Schilling
9a16bfb5dc
Editor: Make the tooltip for the 'apply' button in the inline link dialog translatable.
...
Props SergeyBiryukov.
Fixes #36366 .
Built from https://develop.svn.wordpress.org/trunk@37091
git-svn-id: http://core.svn.wordpress.org/trunk@37058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-29 21:11:28 +00:00
Drew Jaynes
0e53ff6692
Docs: Standardize file headers for two embed templates introduced in [36693] for #34561 .
...
Props flixos90.
Also missed props for flixos90 on [37087].
See #35986 . See #36352 .
Built from https://develop.svn.wordpress.org/trunk@37088
git-svn-id: http://core.svn.wordpress.org/trunk@37055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-28 18:27:26 +00:00
Drew Jaynes
0405289c03
Docs: Reference the correct embed templates and template parts filenames in headers for embed files introduced or changed in 4.5.
...
See [36693], #34561 . See #35986 . Fixes #36352 .
Built from https://develop.svn.wordpress.org/trunk@37087
git-svn-id: http://core.svn.wordpress.org/trunk@37054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-28 18:24:27 +00:00
Drew Jaynes
b6d1626613
Docs: Following [37085], properly indent the markdown-formatted examples in the DocBlock for wpdb::esc_like()
.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@37086
git-svn-id: http://core.svn.wordpress.org/trunk@37053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-27 18:27:26 +00:00
Drew Jaynes
60b9a5a48f
Docs: Add missing quotes around a specifier in a query example in the DocBlock for wpdb::esc_like()
.
...
Props madvic.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@37085
git-svn-id: http://core.svn.wordpress.org/trunk@37052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-27 18:25:26 +00:00
Pascal Birchler
b204d3ead2
Taxonomy: After [36874], run the correct load-edit-tags.php
hook on the new term edit page.
...
When not misspelled, this hook is useful (and needed) for backward compatibility.
Unprops swissspidy.
Fixes #34988 .
Built from https://develop.svn.wordpress.org/trunk@37084
git-svn-id: http://core.svn.wordpress.org/trunk@37051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-27 15:16:29 +00:00
Drew Jaynes
cb457da489
Docs: Improve the DocBlocks for get_header_textcolor()
and header_textcolor()
to mention that they both retrieve color values in the HEX format.
...
Props theMikeD.
Fixes #36336 .
Built from https://develop.svn.wordpress.org/trunk@37083
git-svn-id: http://core.svn.wordpress.org/trunk@37050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-25 23:06:27 +00:00
Ella Iseulde Van Dorpe
3a151191e4
Editor: wptextpattern: add back inline tests
...
See [37024].
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@37080
git-svn-id: http://core.svn.wordpress.org/trunk@37047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-25 13:31:40 +00:00
Mike Schroder
40455626f0
Post 4.5-RC1 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@37079
git-svn-id: http://core.svn.wordpress.org/trunk@37046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-24 03:58:27 +00:00
Mike Schroder
cff715c6f6
4.5-RC1
...
Built from https://develop.svn.wordpress.org/trunk@37078
git-svn-id: http://core.svn.wordpress.org/trunk@37045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-24 03:32:26 +00:00
Konstantin Obenland
cbbf361c03
Customize: Bring custom-logo args closer to custom-header.
...
Allows themes to specify the desired width and height of logos, and whether
that is flexible or not. Has the benefit of not having to generate a logo-sized
file for every image uploaded.
Props westonruter, celloexpressions.
Fixes #36255 .
Built from https://develop.svn.wordpress.org/trunk@37077
git-svn-id: http://core.svn.wordpress.org/trunk@37044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-24 02:02:27 +00:00
Ella Iseulde Van Dorpe
f8a66d7bf2
Update TinyMCE and jQuery UI button styles
...
Part props liljimmi.
Fixes #35571 .
Built from https://develop.svn.wordpress.org/trunk@37076
git-svn-id: http://core.svn.wordpress.org/trunk@37043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-24 00:57:28 +00:00
Sergey Biryukov
4a5dea0d62
Canonical / Query: Restore the is_404()
check in wp_old_slug_redirect()
which was removed in [34659].
...
This reverts part of [34659] due to excessive canonical problems it's caused in 4.4.x.
Remove the unit tests which are no longer supported.
This also removes the `is_feed()` code to avoid confusion - only pages & embeds will be redirected.
Merges [36280] and [36281] to trunk.
Props dd32.
See #21602 , #35344 .
Built from https://develop.svn.wordpress.org/trunk@37075
git-svn-id: http://core.svn.wordpress.org/trunk@37042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 21:54:26 +00:00
Andrew Ozz
a97d39785a
TinyMCE: include the upstream fix for inserting <hr>
while the caret is in an inline element: b1618d1adb
.
...
Fixes #36165 .
Built from https://develop.svn.wordpress.org/trunk@37074
git-svn-id: http://core.svn.wordpress.org/trunk@37041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 21:45:28 +00:00
Dominik Schilling
a2d62ccf32
Common CSS: Reset bottom padding for .nav-tab-wrapper
.
...
Props ericdaams.
Fixes #35960 .
Built from https://develop.svn.wordpress.org/trunk@37073
git-svn-id: http://core.svn.wordpress.org/trunk@37040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 20:14:26 +00:00
Dominik Schilling
7c42afee11
External Libraries: Update jQuery Migrate to 1.4.0.
...
Changes: https://github.com/jquery/jquery-migrate/compare/1.3.0...1.4.0
Fixes #35380 .
Built from https://develop.svn.wordpress.org/trunk@37072
git-svn-id: http://core.svn.wordpress.org/trunk@37039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 19:44:26 +00:00
Boone Gorges
a1d7934406
Tests: Ensure that the default wp_die()
handler can handle a WP_Error
object.
...
Props dd32, utkarshpatel.
Fixes #36166 .
Built from https://develop.svn.wordpress.org/trunk@37071
git-svn-id: http://core.svn.wordpress.org/trunk@37038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 19:01:26 +00:00
Dominik Schilling
51e6a98040
External Libraries: Update jQuery to 1.12.2.
...
Release post: http://blog.jquery.com/2016/03/17/jquery-1-12-2-and-2-2-2-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.1...1.12.2
See #35380 .
Built from https://develop.svn.wordpress.org/trunk@37070
git-svn-id: http://core.svn.wordpress.org/trunk@37037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 18:47:26 +00:00
Drew Jaynes
9f48d46be3
Docs: Properly mark $args
parameters in two WP_oEmbed
methods as optional.
...
Also clarify that the `$args` parameters can accept a string (the default) in addition to an array.
Props ramiy.
See #36296 .
Built from https://develop.svn.wordpress.org/trunk@37069
git-svn-id: http://core.svn.wordpress.org/trunk@37036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 17:08:27 +00:00
Drew Jaynes
d78762c1ef
Docs: Use third-person singular verbs for summary DocBlocks in WP_oEmbed
.
...
Also fixes inline `@see` formatting in appropriate places (summaries should not contain tags or markdown).
Props ramiy.
See #36296 .
Built from https://develop.svn.wordpress.org/trunk@37068
git-svn-id: http://core.svn.wordpress.org/trunk@37035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 16:58:26 +00:00
Drew Jaynes
d6a45b15f3
Docs: Improve and add missing DocBlocks for methods and properties in WP_oEmbed
.
...
Props ramiy.
See #36296 .
Built from https://develop.svn.wordpress.org/trunk@37067
git-svn-id: http://core.svn.wordpress.org/trunk@37034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 16:52:29 +00:00
Weston Ruter
44f38aae77
Customize: Replace site logo with custom logo terminology, fixing failure to preview logo changes.
...
Fixes regression introduced in [37040] which was from a patch that did not include the terminology change.
See #36255 .
Fixes #35855 .
Built from https://develop.svn.wordpress.org/trunk@37066
git-svn-id: http://core.svn.wordpress.org/trunk@37033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 06:26:26 +00:00
Drew Jaynes
c5a5c7c9d1
Docs: Improve inline documentation syntax throughout WP_Widget
.
...
Fixes #36298 .
Built from https://develop.svn.wordpress.org/trunk@37065
git-svn-id: http://core.svn.wordpress.org/trunk@37032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 05:32:27 +00:00
Drew Jaynes
893871a5d1
Docs: Add missing information to the WP_Widget
PHP4 constructor DocBlock.
...
Also add several missing at `@access` tags to other method DocBlocks and clarify parameter docs for `WP_Widget::form_callback()`.
Props raimy.
See #36298 .
Built from https://develop.svn.wordpress.org/trunk@37064
git-svn-id: http://core.svn.wordpress.org/trunk@37031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 05:10:26 +00:00
Drew Jaynes
e6d9d95f6d
Docs: Use third-person singular verbs for method summaries in WP_Widget_Factory
.
...
Fixes #36299 .
Built from https://develop.svn.wordpress.org/trunk@37063
git-svn-id: http://core.svn.wordpress.org/trunk@37030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 04:51:26 +00:00
Drew Jaynes
c5ff4f3b47
Docs: Add missing information to constructors DocBlocks for WP_Widget_Factory
.
...
See #36299 .
Built from https://develop.svn.wordpress.org/trunk@37062
git-svn-id: http://core.svn.wordpress.org/trunk@37029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 04:19:27 +00:00
Drew Jaynes
bbebd0f74d
Docs: Add a missing DocBlock for the WP_Widget_Factory::$widgets
property.
...
Props raimy.
See #36299 .
Built from https://develop.svn.wordpress.org/trunk@37061
git-svn-id: http://core.svn.wordpress.org/trunk@37028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 04:11:28 +00:00
Weston Ruter
41bbbfa5e7
Customize: Prevent preview iframe
from showing until fully loaded.
...
Fixes issue where the Customizer preview window can appear to momentarily bounce to the top when being refreshed. Regression from [36532].
See #31195 .
Fixes #36276 .
Built from https://develop.svn.wordpress.org/trunk@37060
git-svn-id: http://core.svn.wordpress.org/trunk@37027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 00:53:28 +00:00
Dominik Schilling
6c81a0cbf6
Users: In edit_user()
check for a blank password when adding a user.
...
Props wesleye, gitlost, adamsilverstein.
Fixes #35715 .
Built from https://develop.svn.wordpress.org/trunk@37059
git-svn-id: http://core.svn.wordpress.org/trunk@37026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 23:07:27 +00:00
Dominik Schilling
a5ade333e1
Travis CI: Allow to cache the node_modules directory.
...
This should speed up the installation of npm dependencies.
Props netweb.
Fixes #36291 .
Built from https://develop.svn.wordpress.org/trunk@37058
git-svn-id: http://core.svn.wordpress.org/trunk@37025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 21:50:26 +00:00
Drew Jaynes
c5053ef0be
Docs: Mark optional method parameters as such in Walker_Page
.
...
Also normalizes parameter spacing following [37056].
Fixes #36300 .
Built from https://develop.svn.wordpress.org/trunk@37057
git-svn-id: http://core.svn.wordpress.org/trunk@37024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 18:07:27 +00:00
Drew Jaynes
a336735c13
Docs: The page object type in use in Walker_Page
is WP_Post
.
...
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37056
git-svn-id: http://core.svn.wordpress.org/trunk@37023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 18:05:26 +00:00
Drew Jaynes
773cb00210
Docs: Improve inline documentation for properties and methods in Walker_Page
.
...
Props raimy.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37055
git-svn-id: http://core.svn.wordpress.org/trunk@37022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 18:04:26 +00:00
Drew Jaynes
3cdef41502
Docs: The page object type in use in Walker_PageDropdown
is WP_Post
.
...
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37054
git-svn-id: http://core.svn.wordpress.org/trunk@37021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:53:27 +00:00
Drew Jaynes
63582d4ecb
Docs: Improve inline documentation for properties and methods in Walker_PageDropdown
.
...
Props raimy for the initial patch.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37053
git-svn-id: http://core.svn.wordpress.org/trunk@37020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:51:27 +00:00
Drew Jaynes
0fb5b43307
Docs: Normalize Walker_Comment
method parameter docs spacing following [37051].
...
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37052
git-svn-id: http://core.svn.wordpress.org/trunk@37019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:46:27 +00:00
Drew Jaynes
69eeedabf9
Docs: Comment display element object types for Walker_Comment
are WP_Comment
since 4.4.0.
...
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37051
git-svn-id: http://core.svn.wordpress.org/trunk@37018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:44:25 +00:00
Drew Jaynes
7e65fe4f5b
Docs: Improve inline documentation syntax for Walker_Comment
.
...
* Marks optional parameters as such
* Improves existing parameter descriptions for clarity
* Syntax improvements
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37050
git-svn-id: http://core.svn.wordpress.org/trunk@37017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:41:27 +00:00
Drew Jaynes
c4c26e4766
Docs: Standardize the class DocBlock summary for Walker_Comment
.
...
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37049
git-svn-id: http://core.svn.wordpress.org/trunk@37016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:36:26 +00:00
Drew Jaynes
7b48765674
Docs: Improve inline documentation for properties and methods in Walker_Comment
.
...
Props raimy for the initial patch.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37048
git-svn-id: http://core.svn.wordpress.org/trunk@37015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:34:25 +00:00
Drew Jaynes
a2293256d4
Docs: Mark optional parameters in Walker_Category
methods as such.
...
Also cleans up some syntax.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37047
git-svn-id: http://core.svn.wordpress.org/trunk@37014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:30:26 +00:00
Drew Jaynes
9953858514
Docs: Improve inline documentation for property and methods in Walker_Category
.
...
Props raimy for the initial patch.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37046
git-svn-id: http://core.svn.wordpress.org/trunk@37013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:25:26 +00:00
Drew Jaynes
51e322e0ef
Docs: Improve inline documentation in property and method DocBlocks for Walker_CategoryDropdown
.
...
Props ramiy for the initial patch.
See #36300 .
Built from https://develop.svn.wordpress.org/trunk@37045
git-svn-id: http://core.svn.wordpress.org/trunk@37012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 17:22:29 +00:00
Rachel Baker
d6bf505595
XMLRPC: Unit tests left off [r37043]
...
See #35874 .
Props redsweater, rachelbaker
Built from https://develop.svn.wordpress.org/trunk@37044
git-svn-id: http://core.svn.wordpress.org/trunk@37011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 15:12:25 +00:00
Rachel Baker
470110ec3d
XMLRPC: Fix bug where draft posts couldn’t be published in the future, and would publish immediately.
...
Resolves bug introduced in [r34572], in which editing a Post via the XMLRPC API with a draft post_status, where the post_status changes from draft->publish with a future post_date set for the publish action, will have the future post_date disregarded and the Post will be published immediately. The expected behavior is that the post_date is used to schedule the Post to be published in the future.
Fixes #35874 .
Props redsweater, rachelbaker, DrewAPicture
Built from https://develop.svn.wordpress.org/trunk@37043
git-svn-id: http://core.svn.wordpress.org/trunk@37010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 15:10:28 +00:00
Weston Ruter
d1ae0642cf
Customize: Add support for flex sizes in CustomizeImageCropper
.
...
Ensures that `$flex_width` and `$flex_height` as specified on `WP_Customize_Cropped_Image_Control` will be honored when a crop is saved.
See #36255 .
Fixes #34851 .
Built from https://develop.svn.wordpress.org/trunk@37042
git-svn-id: http://core.svn.wordpress.org/trunk@37009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 03:55:29 +00:00
Joe Hoyle
a07988c1c5
REST API: Provide better method for generating CURIEs
...
In [36533] CURIEs were added to the API responses for the link relation URIs, this makes
it a lot easier for clients to look up links by relation. That patch was functional, but
broke on edge cases such as embedded responses and collection items with links in the items.
This patch instead takes a less obtrusive approach by creating a new `get_compact_response_links`
to compliment `get_response_links` making both old and new functionality available.
Also the regex for curie relations has been relaxed to `.+` as rel names can have any uri-valid charector in it.
Fixes #34729 .
Built from https://develop.svn.wordpress.org/trunk@37041
git-svn-id: http://core.svn.wordpress.org/trunk@37008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 00:16:27 +00:00
Weston Ruter
f3f84d2f21
Customize: Require opt-in for selective refresh of widgets.
...
* Introduces `customize-selective-refresh-widgets` theme support feature and adds to themes.
* Introduces `customize_selective_refresh` arg for `WP_Widget::$widget_options` and adds to all core widgets.
* Remove `selective_refresh` from being a component that can be removed via `customize_loaded_components` filter.
* Add `WP_Customize_Widgets::get_selective_refreshable_widgets()` and `WP_Customize_Widgets::is_widget_selective_refreshable()`.
* Fix default `selector` for `Partial` instances.
* Implement and improve Masronry sidebar refresh logic in Twenty Thirteen and Twenty Fourteen, including preservation of initial widget position after refresh.
* Re-initialize ME.js when refreshing `Twenty_Fourteen_Ephemera_Widget`.
See #27355 .
Fixes #35855 .
Built from https://develop.svn.wordpress.org/trunk@37040
git-svn-id: http://core.svn.wordpress.org/trunk@37007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-21 21:59:29 +00:00
Drew Jaynes
8e41746cb1
Docs: Change the 'HTTPS' column header to 'Supports HTTPS' in the markdown providers tables in the hook doc for the oembed_providers
filter.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@37039
git-svn-id: http://core.svn.wordpress.org/trunk@37006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-21 00:58:25 +00:00
Drew Jaynes
f4155d843b
Docs: Add Twitter timelines and moments to the table in the hook doc for the oembed_provders
filter, introduced in [36954].
...
See #36197 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@37038
git-svn-id: http://core.svn.wordpress.org/trunk@37005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-21 00:40:29 +00:00
Mel Choyce
04c2d5d253
Dashicons: Fix incorrect ID in SVG version of font.
...
See #34221 .
Built from https://develop.svn.wordpress.org/trunk@37037
git-svn-id: http://core.svn.wordpress.org/trunk@37004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 20:43:26 +00:00
Mel Choyce
02523f91c2
Dashicons: Update to the latest files.
...
Updates .dashicons-googleplus (f462) and adds three new icons, .dashicons-move (f545), .dashicons-laptop (f547), and .dashicons-paperclip (f546).
Props liljimmi, melchoyce, empireoflight, aargh-a-knot.
See #34221 .
Built from https://develop.svn.wordpress.org/trunk@37036
git-svn-id: http://core.svn.wordpress.org/trunk@37003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 20:26:26 +00:00
Andrew Ozz
d47a15ed3c
Media: fix erroneously inserting a rel attribute in get_image_send_to_editor()
. Reverts most of [34259] and [34260] and adds a unit test.
...
Props joemcgill, azaozz.
Fixes #36084 .
Built from https://develop.svn.wordpress.org/trunk@37035
git-svn-id: http://core.svn.wordpress.org/trunk@37002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 20:05:26 +00:00
Andrew Ozz
d508fcdb51
Responsive Images: the src
of the image has to be first in the srcset
, because of a bug in iOS8. Update the unit tests to reflect the changes.
...
Props jaspermdegroot, joemcgill, azaozz.
Fixes #35030 .
Built from https://develop.svn.wordpress.org/trunk@37034
git-svn-id: http://core.svn.wordpress.org/trunk@37001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 19:45:26 +00:00
Tammie Lister
3be543d7af
Twenty Thirteen, Twenty Fourteen, Twenty Fifteen: Update screenshots to 1200 x 900
...
Fixes #34806
Props: iamtakashi
Built from https://develop.svn.wordpress.org/trunk@37033
git-svn-id: http://core.svn.wordpress.org/trunk@37000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 17:01:29 +00:00
Drew Jaynes
7be6a1c317
Docs: Document default WP_Ajax_Response::add()
arguments as a hash notation.
...
Adds example output to the DocBlock description based on default argument values.
Props ramiy for the initial patch.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@37032
git-svn-id: http://core.svn.wordpress.org/trunk@36999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-18 11:59:27 +00:00
Rachel Baker
6edbcc88ff
REST API: Add home_url
to API index to avoid confusion with site_url
.
...
Confusion abound, the API index is the generic term `url` to display the `site_url`. New `home` key will display the `home_url` in the index as well.
Fixes #35647 .
Built from https://develop.svn.wordpress.org/trunk@37031
git-svn-id: http://core.svn.wordpress.org/trunk@36998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 19:16:29 +00:00
Drew Jaynes
11ab384086
Docs: Improve 4.5 changelog entries introduced in [36992] for wp_authenticate()
, and the authenticate
and wp_login_failed
hooks.
...
See #9568 . See #35986 .
Built from https://develop.svn.wordpress.org/trunk@37030
git-svn-id: http://core.svn.wordpress.org/trunk@36997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 08:06:27 +00:00
Gary Pendergast
e899cc7ae5
Emoji: The everythingExceptFlag
browser support flag, introduced in [36816], wasn't being initialised correctly.
...
See #35300 .
Built from https://develop.svn.wordpress.org/trunk@37029
git-svn-id: http://core.svn.wordpress.org/trunk@36996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 05:00:28 +00:00
Gary Pendergast
261aa938cf
Emoji: Fix the diversity emoji check in Safari.
...
When the browser test for diversity emoji was added in [36160], it included a workaround for Chrome not being able to compare `Uint8ClampedArray` objects directly, by converting them to a string. Unfortunately, Safari doesn't support the `Uint8ClampedArray.toString()` method correctly, so the test was incorrectly failing in Safari.
Fixes #36266 for trunk.
Built from https://develop.svn.wordpress.org/trunk@37028
git-svn-id: http://core.svn.wordpress.org/trunk@36995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 04:54:26 +00:00
Mike Schroder
45eb3efc00
Post 4.5-beta4 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@37027
git-svn-id: http://core.svn.wordpress.org/trunk@36994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 04:34:26 +00:00
Mike Schroder
79856709a6
4.5-beta4
...
Built from https://develop.svn.wordpress.org/trunk@37026
git-svn-id: http://core.svn.wordpress.org/trunk@36993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 04:17:26 +00:00
Drew Jaynes
a41f27a7f9
Docs: Clarify documentation for the xmlrpc_enabled
filter to better explain that its scope only extends to methods requiring authentication.
...
When the `xmlrpc_enabled` filter was initially introduced in [21509], it was effectively intended to replace the `enable_xmlrpc' UI option, which only controlled whether authenticated XML-RPC methods were enabled, such as for publishing actions. This change clarifies the expected behavior and adds information about ways to more granularly control XML-RPC method and request behavior with related hooks.
Part props mensmaximus.
See #21509 . Fixes #36055 .
Built from https://develop.svn.wordpress.org/trunk@37025
git-svn-id: http://core.svn.wordpress.org/trunk@36992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 03:53:26 +00:00
Sergey Biryukov
2861fd7e97
TinyMCE: Adjust textpattern tests for the changes in [37023].
...
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@37024
git-svn-id: http://core.svn.wordpress.org/trunk@36991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-17 00:47:27 +00:00