Gary Pendergast
1f8e6268d3
Embeds: Add a CDATA and HTML comment wrapper around the JavaScript included in the embed HTML. This ensures that user agents which naively strip unwanted tags, without also stripping the content within those tages (for example, Slack), don't show the embed as a mess of JavaScript.
...
Props peterwilsoncc.
Fixes #34429 .
Built from https://develop.svn.wordpress.org/trunk@35406
git-svn-id: http://core.svn.wordpress.org/trunk@35370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 23:55:26 +00:00
Sergey Biryukov
1acf9e9e49
After [35402], don't unnecessary run wp_get_attachment_metadata()
, wp_get_attachment_image_srcset()
, and wp_get_attachment_image_sizes()
in wp_img_add_srcset_and_sizes()
.
...
See #34379 .
Built from https://develop.svn.wordpress.org/trunk@35405
git-svn-id: http://core.svn.wordpress.org/trunk@35369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 18:42:24 +00:00
Sergey Biryukov
1e59e53dd2
After [35402], don't unnecessary run wp_get_attachment_image_srcset()
and wp_get_attachment_image_sizes()
in wp_get_attachment_image()
if srcset
is passed as an argument.
...
See #34379 .
Built from https://develop.svn.wordpress.org/trunk@35404
git-svn-id: http://core.svn.wordpress.org/trunk@35368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 18:40:24 +00:00
Drew Jaynes
e3989c6194
Docs: Add a @subpackage
tag to the file header for wp-admin/includes/ms-admin-filters.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35403
git-svn-id: http://core.svn.wordpress.org/trunk@35367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 18:06:26 +00:00
Sergey Biryukov
f5d0260e4d
Remove assignments from conditions in wp_get_attachment_image()
and wp_img_add_srcset_and_sizes()
.
...
See #34379 .
Built from https://develop.svn.wordpress.org/trunk@35402
git-svn-id: http://core.svn.wordpress.org/trunk@35366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 16:29:26 +00:00
Sergey Biryukov
64a79eeffa
Docs: After [34453], correct inline comments in wp_get_attachment_image_sizes()
.
...
Props jaspermdegroot.
Fixes #34453 .
Built from https://develop.svn.wordpress.org/trunk@35401
git-svn-id: http://core.svn.wordpress.org/trunk@35365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 16:17:25 +00:00
Sergey Biryukov
a46bf27781
Docs: After [35399], correct $class
parameter type and description for post_class
filter.
...
See #34452 .
Built from https://develop.svn.wordpress.org/trunk@35400
git-svn-id: http://core.svn.wordpress.org/trunk@35364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 15:12:24 +00:00
Sergey Biryukov
16441a7766
In get_post_class()
, ensure that we always coerce the class list passed to the function to an array, even when it's empty.
...
This is consistent with `get_body_class()`, see [18176].
See #34452 .
Built from https://develop.svn.wordpress.org/trunk@35399
git-svn-id: http://core.svn.wordpress.org/trunk@35363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 15:09:26 +00:00
Sergey Biryukov
03a03f7dc6
Docs: Correct $class
parameter type and description for body_class
filter.
...
Props JPry.
Fixes #34452 .
Built from https://develop.svn.wordpress.org/trunk@35398
git-svn-id: http://core.svn.wordpress.org/trunk@35362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 15:03:25 +00:00
Sergey Biryukov
ae58f104cb
Embeds: Rename TinyMCE wpoembed
plugin to wpembed
.
...
Props swissspidy.
Fixes #34272 .
Built from https://develop.svn.wordpress.org/trunk@35397
git-svn-id: http://core.svn.wordpress.org/trunk@35361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 14:50:26 +00:00
Andrea Fercia
be620e6da6
Customizer: Remove the no more used add-menu-item-loading
spinner.
...
Also makes more room for longer translations.
Props dipali.dhole27@gmail.com .
Fixes #34342 .
Built from https://develop.svn.wordpress.org/trunk@35396
git-svn-id: http://core.svn.wordpress.org/trunk@35360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 13:59:26 +00:00
Gary Pendergast
1ebff5d223
Embeds: Move the embed iframe script to the footer, as it isn't being run until DOMContentLoaded
is fired.
...
Props brainstormforce, pratikchaskar.
Fixes #344444 .
Built from https://develop.svn.wordpress.org/trunk@35395
git-svn-id: http://core.svn.wordpress.org/trunk@35359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 05:50:25 +00:00
Gary Pendergast
cbcecfaaeb
Docs: Fix a typo in the print_embed_scripts()
function header.
...
Props brainstormforce.
Fixes #34445 .
Built from https://develop.svn.wordpress.org/trunk@35394
git-svn-id: http://core.svn.wordpress.org/trunk@35358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 05:19:26 +00:00
Drew Jaynes
2f42bf0a73
Docs: Add missing DocBlocks for the $type
and $sidebar_id
properties, and summaries for the to_json()
and render_content()
methods in WP_Widget_Area_Customize_Control
.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35393
git-svn-id: http://core.svn.wordpress.org/trunk@35357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-25 19:58:26 +00:00
Sergey Biryukov
05a58d58dd
Post 4.4-beta1 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@35392
git-svn-id: http://core.svn.wordpress.org/trunk@35356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-25 15:19:24 +00:00
Andrea Fercia
930a688e17
Customizer: remove the title
attribute from the Preview html element while loading.
...
Props mehulkaklotar.
Fixes #33250 .
Built from https://develop.svn.wordpress.org/trunk@35391
git-svn-id: http://core.svn.wordpress.org/trunk@35355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-25 15:14:26 +00:00
Scott Taylor
7ac2e1f592
Fix the @author
doc param encoding in Text/Diff/Engine/string
so the file is recognized as UTF-8, not ISO-8859-1.
...
Built from https://develop.svn.wordpress.org/trunk@35390
git-svn-id: http://core.svn.wordpress.org/trunk@35354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 22:45:25 +00:00
Scott Taylor
68526a8bf1
Customize: move WP_Customize_Control
subclasses to wp-includes/customize
, they load in the exact same place.
...
See #34432 .
Built from https://develop.svn.wordpress.org/trunk@35389
git-svn-id: http://core.svn.wordpress.org/trunk@35353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:57:25 +00:00
Dominik Schilling
ede3e66da7
Use correct placeholders for translator comments added in [35303].
...
See #31078 .
Built from https://develop.svn.wordpress.org/trunk@35388
git-svn-id: http://core.svn.wordpress.org/trunk@35352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:50:24 +00:00
Scott Taylor
61aefacd2c
Customize: move WP_Customize_Panel
subclass to wp-includes/customize
, it loads in the exact same place.
...
See #34432 .
Built from https://develop.svn.wordpress.org/trunk@35386
git-svn-id: http://core.svn.wordpress.org/trunk@35350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:25:24 +00:00
Scott Taylor
574f53399c
Customize: move WP_Customize_Section
subclasses to wp-includes/customize
, they load in the exact same place.
...
See #34432 .
Built from https://develop.svn.wordpress.org/trunk@35385
git-svn-id: http://core.svn.wordpress.org/trunk@35349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:21:25 +00:00
Sergey Biryukov
cde183f029
Editor: After [33927], make sure user_can_richedit()
returns true for Microsoft Edge.
...
Props usermrpapa.
Fixes #34431 .
Built from https://develop.svn.wordpress.org/trunk@35384
git-svn-id: http://core.svn.wordpress.org/trunk@35348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:13:24 +00:00
Scott Taylor
21d74f5b1d
Customize: move WP_Customize_Setting
subclasses to wp-includes/customize
, they load in the exact same place.
...
See #34432 .
Built from https://develop.svn.wordpress.org/trunk@35383
git-svn-id: http://core.svn.wordpress.org/trunk@35347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 18:11:24 +00:00
Scott Taylor
dc1e85a540
Nav Menus: show custom post type Archive item at the top of the View All
tab for the post type on the legacy Nav Menu screen.
...
Props aaroncampbell, DrewAPicture, seanchayes, hlashbrooke, paulwilde, ericlewis, raulillana
See #16075 .
Built from https://develop.svn.wordpress.org/trunk@35382
git-svn-id: http://core.svn.wordpress.org/trunk@35346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 17:46:25 +00:00
Sergey Biryukov
21278f1fc8
Docs: Change variable name in WP_Customize_Widgets::filter_customize_dynamic_setting_args()
DocBlock to match the actual variable.
...
Props mismith227, swissspidy.
Fixes #34426 .
Built from https://develop.svn.wordpress.org/trunk@35381
git-svn-id: http://core.svn.wordpress.org/trunk@35345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 14:42:26 +00:00
Sergey Biryukov
a9dd940635
Remove unused variable in _WP_Editors::editor()
.
...
Props Athsear.
Fixes #34427 .
Built from https://develop.svn.wordpress.org/trunk@35380
git-svn-id: http://core.svn.wordpress.org/trunk@35344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-24 14:32:27 +00:00
Sergey Biryukov
269a296bb4
Site Icon: Introduce get_site_icon_url
filter for the icon URL.
...
Remove `oembed_site_icon_url` filter added in [34903].
Props swissspidy.
Fixes #34411 .
Built from https://develop.svn.wordpress.org/trunk@35379
git-svn-id: http://core.svn.wordpress.org/trunk@35343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 21:17:24 +00:00
Andrew Ozz
902f0f1a98
Responsive Images: fix typo in r35358.
...
Props aduth.
See #34341 .
Built from https://develop.svn.wordpress.org/trunk@35378
git-svn-id: http://core.svn.wordpress.org/trunk@35342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 17:38:25 +00:00
Sergey Biryukov
e016e6fde6
After [34891] and [35376], add new labels to changelog entries.
...
Props afercia.
Fixes #32147 .
Built from https://develop.svn.wordpress.org/trunk@35377
git-svn-id: http://core.svn.wordpress.org/trunk@35341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 16:54:24 +00:00
Sergey Biryukov
db2189e717
After [34891], rename new post type and taxonomy label keys to match the default strings.
...
See #32147 .
Built from https://develop.svn.wordpress.org/trunk@35376
git-svn-id: http://core.svn.wordpress.org/trunk@35340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 16:48:25 +00:00
Drew Jaynes
0404082b18
Docs: Syntax fixes for deprecating WP_Http::parse_url()
.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35375
git-svn-id: http://core.svn.wordpress.org/trunk@35339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 15:43:24 +00:00
Sergey Biryukov
c49ada7d75
In WP_Locale::init()
, replace space as a thousands separator with a non-breaking space.
...
Also replace `' ` and ` ` HTML entities with the actual character, since PHP < 5.4.0 does not allow multiple bytes to be used for decimal points or thousands separators.
Fixes #10373 .
Built from https://develop.svn.wordpress.org/trunk@35372
git-svn-id: http://core.svn.wordpress.org/trunk@35336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 11:51:28 +00:00
Dion Hulse
d63f346cbc
Use wp_parse_url()
in esc_url()
to avoid parsing bugs in < PHP 5.4.7.
...
Props johnbillion for unit tests
See #34408
Fixes #34202
Built from https://develop.svn.wordpress.org/trunk@35370
git-svn-id: http://core.svn.wordpress.org/trunk@35334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 05:57:24 +00:00
Dion Hulse
7912c647ae
WP_HTTP: Promote the WP_HTTP::parse_url()
method to a more generic wp_parse_url()
function.
...
Fixes #34408
Built from https://develop.svn.wordpress.org/trunk@35369
git-svn-id: http://core.svn.wordpress.org/trunk@35333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 05:54:25 +00:00
Dion Hulse
a579aad05b
XMLRPC: Prevent authentication from occuring after a failed authentication attmept in any single XML-RPC call.
...
This hardens WordPress against a common vector which uses multiple user identifiers in a single `system.multicall` call. In the event that authentication fails, all following authentication attempts ''in that call'' will also fail.
Props dd32, johnbillion.
Fixes #34336
Built from https://develop.svn.wordpress.org/trunk@35366
git-svn-id: http://core.svn.wordpress.org/trunk@35331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 04:46:24 +00:00
Dion Hulse
53afc72ab7
Update to Random_Compat 1.0.9.
...
This update includes fixes for Windows support & libSodium support, and removes the `Throwable` Polyfill due to PHP7 incompatibilities.
Fixes #28633
Built from https://develop.svn.wordpress.org/trunk@35365
git-svn-id: http://core.svn.wordpress.org/trunk@35330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 04:22:26 +00:00
Dion Hulse
a49062c2db
Update variable naming after [35279].
...
See #29957 .
Built from https://develop.svn.wordpress.org/trunk@35364
git-svn-id: http://core.svn.wordpress.org/trunk@35329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-23 02:01:25 +00:00
Scott Taylor
90ff454ec2
4.4-beta1
...
Built from https://develop.svn.wordpress.org/trunk@35362
git-svn-id: http://core.svn.wordpress.org/trunk@35328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 21:45:25 +00:00
Scott Taylor
2afbf378d9
Plugins: after [35151], set default $restrict_network_*
values to prevent notices.
...
Props johnjamesjacoby.
Fixes #20104 .
Built from https://develop.svn.wordpress.org/trunk@35361
git-svn-id: http://core.svn.wordpress.org/trunk@35327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 19:56:23 +00:00
Scott Taylor
e31c837d70
Options: remove old 'gzipcompression' and 'advanced_edit' options.
...
Props chriscct7, solarissmoke.
Fixes #12996 .
Built from https://develop.svn.wordpress.org/trunk@35360
git-svn-id: http://core.svn.wordpress.org/trunk@35326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 19:49:24 +00:00
Drew Jaynes
56c81005fe
Docs: Add a proper file header to wp-admin/includes/continents-cities.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35359
git-svn-id: http://core.svn.wordpress.org/trunk@35325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 19:43:25 +00:00
Andrew Ozz
dfc2412be1
Responsive Images: limit the size of images included in srcset
attributes. Introduce max_srcset_image_width
filter to adjust the limit.
...
Props joemcgill.
Fixes #34341 .
Built from https://develop.svn.wordpress.org/trunk@35358
git-svn-id: http://core.svn.wordpress.org/trunk@35324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 19:31:25 +00:00
Helen Hou-Sandí
6ca92efe23
List tables: Move the view mode switcher into screen options for posts.
...
Having a view mode switcher nestled within table navigation makes no sense, especially now that it's a sticky user option. While less convenient for frequent switching, there is no evidence as of yet that there is a large userbase of frequent view mode switchers.
Introduces a filter for `view_mode_post_types`, which by default is all hierarchical post types with edit UI on.
props Oxymoron.
fixes #22222 .
Built from https://develop.svn.wordpress.org/trunk@35357
git-svn-id: http://core.svn.wordpress.org/trunk@35323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 19:25:25 +00:00
Scott Taylor
677762f6cf
oEmbed: add Reddit Comments as a provider
...
Docs: https://github.com/reddit/reddit/wiki/oEmbed
Props swissspidy.
Fixes #31752 .
Built from https://develop.svn.wordpress.org/trunk@35356
git-svn-id: http://core.svn.wordpress.org/trunk@35322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 18:17:24 +00:00
Scott Taylor
318ad90a22
Media: in wp_get_attachment_image_sizes()
, to streamline and for performance:
...
* Change the 3rd arg from `args` to `width`
* Change `wp_image_sizes_args` filter to `wp_get_attachment_image_sizes`
Updates unit tests.
Props joemcgill.
Fixes #34379 .
Built from https://develop.svn.wordpress.org/trunk@35355
git-svn-id: http://core.svn.wordpress.org/trunk@35321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 16:46:24 +00:00
Scott Taylor
1cd49e2d4d
oEmbed: if SimpleXMLElement
does not exist, return an HTTP Error 501 Not implemented
response.
...
Props swissspidy.
Fixes #34274 .
Built from https://develop.svn.wordpress.org/trunk@35354
git-svn-id: http://core.svn.wordpress.org/trunk@35320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 16:38:26 +00:00
Scott Taylor
31e0b06125
REST API: don't load wp-admin/includes/admin.php
on every request.
...
Props swissspidy.
Fixes #34395 .
Built from https://develop.svn.wordpress.org/trunk@35353
git-svn-id: http://core.svn.wordpress.org/trunk@35319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 16:29:28 +00:00
Sergey Biryukov
560b276b0b
Docs: Correct description for _wp_post_revision_fields()
arguments.
...
See #13382 .
Built from https://develop.svn.wordpress.org/trunk@35352
git-svn-id: http://core.svn.wordpress.org/trunk@35318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 12:17:28 +00:00
John Blackbourn
7757d04ce3
Force the REST API URL to use https
for its scheme when the current request is served over HTTPS and the host name matches that of the REST API URL.
...
This allows sites to use an admin area over HTTPS with the front end over HTTP, and not end up with a cross-protocol problem when using the REST API URL in the admin area.
Fixes #34299
Built from https://develop.svn.wordpress.org/trunk@35351
git-svn-id: http://core.svn.wordpress.org/trunk@35317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 00:08:26 +00:00
John Blackbourn
9bcf8a9ec7
Initialise $_SERVER['SERVER_NAME']
during the test bootstrap to avoid individual tests having to do it.
...
Fixes #34394
Built from https://develop.svn.wordpress.org/trunk@35350
git-svn-id: http://core.svn.wordpress.org/trunk@35316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 23:52:31 +00:00
John Blackbourn
e552b77739
Revert [34352], pending investigation.
...
See #34299
Built from https://develop.svn.wordpress.org/trunk@35349
git-svn-id: http://core.svn.wordpress.org/trunk@35315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 23:06:30 +00:00
John Blackbourn
93642e94ba
Remove the explicit Imagick extension test.
...
See #34087
Built from https://develop.svn.wordpress.org/trunk@35348
git-svn-id: http://core.svn.wordpress.org/trunk@35314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 22:41:27 +00:00
John Blackbourn
f721788901
Correctly use WP_TESTS_EMAIL
in email tests.
...
See #761 , #34000
Built from https://develop.svn.wordpress.org/trunk@35347
git-svn-id: http://core.svn.wordpress.org/trunk@35313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 22:34:26 +00:00
John Blackbourn
98ea864e32
Correct some more tests which were using example.org
instead of WP_TESTS_DOMAIN
.
...
See #33641 , #34000
Built from https://develop.svn.wordpress.org/trunk@35346
git-svn-id: http://core.svn.wordpress.org/trunk@35312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 22:22:31 +00:00
John Blackbourn
cf657cca29
Provide a more helpful failure message when Imagick isn't installed. Skipping the tests isn't really an option because Imagick's presence affects several other tests too.
...
See #34087
Built from https://develop.svn.wordpress.org/trunk@35345
git-svn-id: http://core.svn.wordpress.org/trunk@35311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 22:11:25 +00:00
John Blackbourn
2987fe95af
Remove the failing test_rest_url_scheme()
test while it's investigated.
...
See #34299
Built from https://develop.svn.wordpress.org/trunk@35344
git-svn-id: http://core.svn.wordpress.org/trunk@35310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 22:07:25 +00:00
Andrea Fercia
cfa07d28af
Plugins: Improve the "Install Now" button vertical alignment in the Plugin Details modal dialog.
...
Props paulwilde.
Fixes #34199 .
Built from https://develop.svn.wordpress.org/trunk@35343
git-svn-id: http://core.svn.wordpress.org/trunk@35309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 21:55:29 +00:00
John Blackbourn
f7f5b64a7e
Force the REST API URL to use https
for its scheme when the current request is served over HTTPS and the host name matches that of the REST API URL.
...
This allows sites to use an admin area over HTTPS with the front end over HTTP, and not end up with a cross-protocol problem when using the REST API URL in the admin area.
Fixes #34299
Built from https://develop.svn.wordpress.org/trunk@35342
git-svn-id: http://core.svn.wordpress.org/trunk@35308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 20:38:50 +00:00
Andrew Ozz
4cdddd401a
TinyMCE:
...
- Sanitize and render HTML in captions when showing a gallery preview (wpView).
- Encode/escape HTML entered in the text field in the wpLink dialog.
Props iseulde, kraftbj, jnylen0, shawarkhan.
Fixes #32616 .
Built from https://develop.svn.wordpress.org/trunk@35341
git-svn-id: http://core.svn.wordpress.org/trunk@35307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 20:38:26 +00:00
Helen Hou-Sandí
28c77bec72
RIP #21759b
, the old WordPress Blue.
...
The final lingering instances were all for hidden accessibility helper text.
fixes #34388 .
Built from https://develop.svn.wordpress.org/trunk@35340
git-svn-id: http://core.svn.wordpress.org/trunk@35306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 18:36:28 +00:00
Drew Jaynes
f954194a1c
Comments: Introduce two new filters, notify_moderator
and notify_post_author
, both of which make it possible to selectively override site notification email settings for new comments.
...
The `notify_moderator` filter makes it possible to override the value for the `moderation_notify` option, which controls whether to send new comment emails to "site moderators", that is to say, the owner of the admin email for the site and the post author if they have the ability to modify the comment.
The `notify_post_author` filter likewise makes it possible to override the value for the `comments_notify` option, which controls whether to send new comment emails to the post author. If the post author is the comment author, default behavior is not to send the notification. Note: enabling or disabling notifications via this hook could also affect other recipients added via the 'comment_notification_recipients' filter in `wp_notify_postauthor()`, if hooked.
Passing a falsey value to either of the new filters will prevent notifications from being sent, regardless of their corresponding option values.
Adds tests.
Props coffee2code, adamsilverstein, DrewAPicture.
Fixes #761 .
Built from https://develop.svn.wordpress.org/trunk@35339
git-svn-id: http://core.svn.wordpress.org/trunk@35305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 18:35:31 +00:00
Andrea Fercia
223afd7e04
Press This: Improve the "choose tags" button focus style.
...
Props adamholisky for the initial patch.
Fixes 34241.
Built from https://develop.svn.wordpress.org/trunk@35338
git-svn-id: http://core.svn.wordpress.org/trunk@35304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 18:34:26 +00:00
Dominik Schilling
253646fcd1
Options: Hide the week starts on setting for installs that have the default setting already.
...
The default setting is the value of `$wp_locale->start_of_week` which holds the value per locale, see [35336].
Props swissspidy, ocean90.
Fixes #28344 .
Built from https://develop.svn.wordpress.org/trunk@35337
git-svn-id: http://core.svn.wordpress.org/trunk@35303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 17:39:25 +00:00
Dominik Schilling
46a115de61
WP Locale: Add a start_of_week
property to store the start of the week per locale.
...
Props swissspidy.
See #28344 .
Built from https://develop.svn.wordpress.org/trunk@35336
git-svn-id: http://core.svn.wordpress.org/trunk@35302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 17:28:29 +00:00
Aaron Jorbin
5a7bb070da
Update grunt-browserify
...
upstream changes https://github.com/jmreidy/grunt-browserify/compare/v4.0.0...v4.0.1
See #34177
Built from https://develop.svn.wordpress.org/trunk@35335
git-svn-id: http://core.svn.wordpress.org/trunk@35301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:59:25 +00:00
Konstantin Obenland
d7bb9d8254
Tests: Use most specific function for document titles.
...
Adds tests specific to `_wp_render_title_tag()`.
See #31078 .
Built from https://develop.svn.wordpress.org/trunk@35334
git-svn-id: http://core.svn.wordpress.org/trunk@35300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:55:25 +00:00
Boone Gorges
9088df3fee
Prevent non-public taxonomies from registering aquery var.
...
[34247] made the 'public' paramater of `register_taxonomy()` work by blocking
requests for non-public taxonomy archives during `parse_request()`. Blocking
taxonomy archive requests this late means that it's impossible to register an
independent query var that matches the slug of a non-public taxonomy. By
moving the block to `register_taxonomy()` - not allowing these taxonomies to
register their query vars in the first place - we free up the slug for other
use. In addition, we free up a bit of processing (no need to look for the query
var in `parse_request()` and better parallel the way non-public post types
work. See `register_post_type()`.
Non-public taxonomy archives that are requested using `?taxonomy=tax_name` are
still blocked during `parse_request`. It's only custom query vars -
`?tax_name=term` - that are affected by this change.
Props mboynes.
Fixes #21949 .
Built from https://develop.svn.wordpress.org/trunk@35333
git-svn-id: http://core.svn.wordpress.org/trunk@35299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:54:24 +00:00
Aaron Jorbin
3fcb37a831
Replace Autoprefixer Core with Autoprefixer
...
Autoprefixer Core 5.2.1 -> Autoprefixer 6.0.3 https://github.com/postcss/autoprefixer/releases/tag/6.0.0
Package autoprefixer-core is deprecated in favour of autoprefixer as part of the 6.0.0 release:
Packages autoprefixer and autoprefixer-core were merged in 6.0 release.
Autoprefixer 6.0.0 requires PostCSS 5.0.10 or greater
PostCSS 0.5.4 -> 0.6.0 https://github.com/nDmitry/grunt-postcss/compare/v0.5.4...v0.6.0
You will need to update your dev dependencies after this change.
Props netweb
See #34177
Built from https://develop.svn.wordpress.org/trunk@35332
git-svn-id: http://core.svn.wordpress.org/trunk@35298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:48:38 +00:00
Boone Gorges
3eab09a694
Don't force comment pagination.
...
[34561] instituted the policy of forcing pagination for comments. This strategy
was intended to avert problems when 'page_comments' is set to 0 - as it is by
default - and the number of comments on a given post rises into the hundreds or
thousands. By forcing pagination in all cases, we ensured that WordPress would
not time out by processing unwieldy numbers of comments on a given pageload.
The strategy proves problematic, however, because comment permalinks are
generated using the page of the comment. Forcing pagination for posts that
were not previously paginated would change the URL of all comments that do not
appear on the default comment page.
This changeset reintroduces the 'page_comments' setting and its corresponding
checkbox on Settings > Discussion. A number of tests, which were written after
[34561], are modified to work now that 'page_comments' will, once again, be
disabled by default.
See #8071 .
Built from https://develop.svn.wordpress.org/trunk@35331
git-svn-id: http://core.svn.wordpress.org/trunk@35297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:26:42 +00:00
Helen Hou-Sandí
3df1d2abde
Media: Update colors to match the times.
...
This bikeshed is a real nice blue.
props afercia.
fixes #34244 . see #34388 .
Built from https://develop.svn.wordpress.org/trunk@35330
git-svn-id: http://core.svn.wordpress.org/trunk@35296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:18:26 +00:00
Boone Gorges
cc0bf494a4
Document title tests should expect dynamic blogname.
...
Fixes #31078 .
Built from https://develop.svn.wordpress.org/trunk@35329
git-svn-id: http://core.svn.wordpress.org/trunk@35295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 16:15:26 +00:00
Drew Jaynes
aef5b20ee3
Docs: Add documentation in the form of a hash notation for default arguments accepted by wp_login_form()
.
...
Props ramiy for the initial patch.
Fixes #34364 .
Built from https://develop.svn.wordpress.org/trunk@35328
git-svn-id: http://core.svn.wordpress.org/trunk@35294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 15:38:26 +00:00
Helen Hou-Sandí
8803c05db5
wp_die()
: Update colors and button styling.
...
see #34388 , #31459 .
Built from https://develop.svn.wordpress.org/trunk@35327
git-svn-id: http://core.svn.wordpress.org/trunk@35293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 15:23:26 +00:00
Dominik Schilling
4d0759afae
List Tables: Replace the hyphen separator for titles and post/media states with a —
.
...
Props McGuive7.
Fixes #23230 .
Built from https://develop.svn.wordpress.org/trunk@35326
git-svn-id: http://core.svn.wordpress.org/trunk@35292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 14:33:27 +00:00
Drew Jaynes
81524f3bfc
Filesystem: Following the introduction of the KB|MB|GB|TB_IN_BYTES
constants in [35286], use them in various places in core.
...
Props sudar.
Fixes #22405 .
Built from https://develop.svn.wordpress.org/trunk@35325
git-svn-id: http://core.svn.wordpress.org/trunk@35291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 14:03:25 +00:00
Drew Jaynes
6a51505a23
Docs: Improve the return description in the DocBlock for rest_send_allow_header()
.
...
Props danielbachhuber.
Fixes #34374 .
Built from https://develop.svn.wordpress.org/trunk@35324
git-svn-id: http://core.svn.wordpress.org/trunk@35290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 13:48:27 +00:00
Sergey Biryukov
116f59af60
REST API: Change nonce name to _wpnonce
.
...
It's shorter and is compatible with the default name in `wp_nonce_field()`.
Props danielbachhuber.
Fixes #34375 .
Built from https://develop.svn.wordpress.org/trunk@35323
git-svn-id: http://core.svn.wordpress.org/trunk@35289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 08:14:24 +00:00
Sergey Biryukov
da157f16b1
Add get_terms_defaults
filter for the default arguments of get_terms()
.
...
Fixes #33369 .
Built from https://develop.svn.wordpress.org/trunk@35322
git-svn-id: http://core.svn.wordpress.org/trunk@35288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 08:08:25 +00:00
Sergey Biryukov
d1dea6e6cf
Reorder default arguments in get_terms()
for consistency with the hash notation added in [29128].
...
See #33369 .
Built from https://develop.svn.wordpress.org/trunk@35321
git-svn-id: http://core.svn.wordpress.org/trunk@35287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 08:01:25 +00:00
Sergey Biryukov
6b5e523996
Docs: Correct function name in get_terms_args
parameter description.
...
See #33369 .
Built from https://develop.svn.wordpress.org/trunk@35320
git-svn-id: http://core.svn.wordpress.org/trunk@35286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 07:42:24 +00:00
Sergey Biryukov
1025e22303
Docs: Correct duplicate hook reference for get_terms
.
...
See #33369 .
Built from https://develop.svn.wordpress.org/trunk@35319
git-svn-id: http://core.svn.wordpress.org/trunk@35285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 07:40:27 +00:00
Andrew Ozz
de881c4a97
Precommit cleanup, see r35313.
...
Built from https://develop.svn.wordpress.org/trunk@35318
git-svn-id: http://core.svn.wordpress.org/trunk@35284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 05:33:24 +00:00
Andrew Ozz
71ac079074
Widgets: add a button to delete all inactive widgets simultaneously for better UX.
...
Props cdog.
Fixes #19159 .
Built from https://develop.svn.wordpress.org/trunk@35317
git-svn-id: http://core.svn.wordpress.org/trunk@35283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 05:23:26 +00:00
Scott Taylor
47879dc83a
Export: add missing labels and improvement accessibility of the Export screen.
...
Props afercia.
Fixes #33046 .
Built from https://develop.svn.wordpress.org/trunk@35316
git-svn-id: http://core.svn.wordpress.org/trunk@35282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:57:24 +00:00
Scott Taylor
85d21feca6
Plugins/Updates: in request_filesystem_credentials()
, alter the heading HTML tag based on the current screen for improved semantics.
...
Props afercia.
Fixes #34267 .
Built from https://develop.svn.wordpress.org/trunk@35315
git-svn-id: http://core.svn.wordpress.org/trunk@35281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:51:24 +00:00
Scott Taylor
8eb3de46c9
Formatting: move url_shorten()
from wp-admin/includes/misc.php
to wp-includes/formatting.php
for more global access.
...
Adds unit tests.
Props mulvane, chriscct7.
Fixes #20166 .
Built from https://develop.svn.wordpress.org/trunk@35314
git-svn-id: http://core.svn.wordpress.org/trunk@35280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:48:24 +00:00
Scott Taylor
e525ab849d
Administration: the current admin menu item should have an aria-haspopup
attribute when the menu is folded.
...
Unify the jQuery selector caching for `window`, `document`, and `body`.
Props afercia.
Fixes #32578 .
Built from https://develop.svn.wordpress.org/trunk@35313
git-svn-id: http://core.svn.wordpress.org/trunk@35279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:41:24 +00:00
Scott Taylor
e6015a31ab
Site Icon: make the default value for the site_icon
option 0
in schema.php
.
...
Props swissspidy, sebastian.pisula.
Fixes #34339 .
Built from https://develop.svn.wordpress.org/trunk@35312
git-svn-id: http://core.svn.wordpress.org/trunk@35278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:28:25 +00:00
Scott Taylor
97c75b5f07
AJAX UNIT TESTS: Have you ever wondered why these take 600 forevers to run? They all eventually call do_action( 'admin_init' )
, which has _maybe_update_core
, _maybe_update_plugins
, and _maybe_update_themes
hooked to it. REMOVE THEM, and AJAX unit tests run like the wind. Tests_Ajax_Response
is still slow.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35311
git-svn-id: http://core.svn.wordpress.org/trunk@35277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:18:25 +00:00
Sergey Biryukov
9fa88a7f27
Autoprefixer for [35281].
...
See #33322 .
Built from https://develop.svn.wordpress.org/trunk@35310
git-svn-id: http://core.svn.wordpress.org/trunk@35276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 03:02:24 +00:00
Scott Taylor
fc850bf274
Unit Tests: consolidate the many separate implementations of _make_attachment()
into a helper method on WP_UnitTestCase
.
...
Fixes #34075 .
Built from https://develop.svn.wordpress.org/trunk@35309
git-svn-id: http://core.svn.wordpress.org/trunk@35275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-21 01:59:26 +00:00
Weston Ruter
d7e13544ea
Customizer: Prevent nav_menu_item
settings from becoming dirty when their controls are set up.
...
Since `wp_setup_nav_menu_item()` returns the `classes` property as an array but the Customizer manages the value as a string, the setting needs to initially export the value as a string. This prevents the `classes` property type change from causing the setting to get marked as dirty even though nothing changed. This is a regression from [34788].
See #34111 .
Built from https://develop.svn.wordpress.org/trunk@35308
git-svn-id: http://core.svn.wordpress.org/trunk@35274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 22:45:29 +00:00
Weston Ruter
bee05e0cdc
Customizer: Introduce customize_loaded_components
filter to allow core components to be disabled.
...
Also move style rule from `customize-nav-menus.css` to `customize-controls.css` so that widgets button is properly styled when `nav_menus` component is excluded from loading. See [35304]. See #33327 .
Props westonruter, DrewAPicture.
Fixes #33552 .
Built from https://develop.svn.wordpress.org/trunk@35307
git-svn-id: http://core.svn.wordpress.org/trunk@35273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 22:16:25 +00:00
Andrew Ozz
3451251548
TinyMCE: update to 4.2.6. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=887 .
...
Fixes #34331 .
Built from https://develop.svn.wordpress.org/trunk@35306
git-svn-id: http://core.svn.wordpress.org/trunk@35272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 22:06:24 +00:00
Weston Ruter
c77bb38b3d
Customizer: Allow new option
settings to not be saved as autoloaded by passing an autoload
arg value of false
.
...
The `autoload` argument value is passed along to `update_option()` which has accepted an `$autoload` parameter since [31628].
Props westonruter, dlh.
See #26394 .
Fixes #33499 .
Built from https://develop.svn.wordpress.org/trunk@35305
git-svn-id: http://core.svn.wordpress.org/trunk@35271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 21:19:25 +00:00
Andrea Fercia
1e1e7a9fc9
Customizer: Make the widgets "Reorder" and "Add a Widget" buttons... buttons.
...
For accessibility, UI controls should preferably be native controls. Adds
ARIA attributes and labels to improve accessibility and pair these buttons
with the ones in the Menu Customizer.
Props obenland, TomHarrigan, sanket.parmar, metodiew, afercia.
Fixes #33327 .
Built from https://develop.svn.wordpress.org/trunk@35304
git-svn-id: http://core.svn.wordpress.org/trunk@35270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 20:15:26 +00:00
Drew Jaynes
8549e76d56
Docs: Add translator comments for two _deprecated_argument()
calls added to get_wp_title_rss()
and wp_title_rss()
in [35294].
...
See #31078 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35303
git-svn-id: http://core.svn.wordpress.org/trunk@35269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 19:20:25 +00:00
Weston Ruter
6d9d18315d
Customizer: Implement indicators for invalid nav menu items.
...
The same indicator on the nav menus admin page is now present for nav menu items in the Customizer. When a menu item is present for a post type that is no longer registered, the menu item will appear with the indicator.
Props kucrut, westonruter.
Fixes #33665 .
Built from https://develop.svn.wordpress.org/trunk@35302
git-svn-id: http://core.svn.wordpress.org/trunk@35268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 19:08:25 +00:00
Drew Jaynes
0715dc8a4f
Docs: Adjust syntax in the hook doc summaries for the document_title_separator
and document_title_parts
filters, introduced in [35294].
...
See #31078 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35301
git-svn-id: http://core.svn.wordpress.org/trunk@35267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 18:37:54 +00:00
Drew Jaynes
7c538033dd
Docs: Fix indentation and improve usefulness of inline comments surrounding the if/elseif conditions for assigning document titles in wp_get_document_title()
.
...
See #31078 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35300
git-svn-id: http://core.svn.wordpress.org/trunk@35266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 18:32:00 +00:00
Konstantin Obenland
f6941fddf4
Site Icon: Get site icon ID only when needed.
...
Cuts down on unnecessary queries, especially in environments that rely on
post meta a lot. Reverts [32997].
Props ap.koponen, swissspidy.
Fixes #34368 .
Built from https://develop.svn.wordpress.org/trunk@35299
git-svn-id: http://core.svn.wordpress.org/trunk@35265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 18:23:44 +00:00
Drew Jaynes
0ea90a9174
Docs: Update the hook doc for the pre_get_document_title
filter to explain ''what'' value is filterable rather than ''why'' the value is filterable :-)
...
The hook was introduced in [35294].
See #31078 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35298
git-svn-id: http://core.svn.wordpress.org/trunk@35264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 18:14:24 +00:00
Drew Jaynes
0a1026ac10
Docs: Improve vague changelog entries for functions and hooks where arguments were deprecated in [35294].
...
See #31078 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35297
git-svn-id: http://core.svn.wordpress.org/trunk@35263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 18:10:43 +00:00
Drew Jaynes
08f3a3b226
Docs: Fix up DocBlock syntax for the now-deprecated wp_title()
.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35296
git-svn-id: http://core.svn.wordpress.org/trunk@35262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 17:53:24 +00:00
Konstantin Obenland
788cb75879
Tests: Use updated filter names and oembed title for UT sanity.
...
See [35294], #31078 .
Built from https://develop.svn.wordpress.org/trunk@35295
git-svn-id: http://core.svn.wordpress.org/trunk@35261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 17:05:25 +00:00
Konstantin Obenland
c69e96422b
Themes: Improve document title output.
...
Introduces more flexibility in filtering all parts of the document title,the
separator, and a way to short-circuit title generation. Plugins can now also
check for theme support and reliably filter the entire output. See #18548 .
Deprecates `wp_title()`.
Fixes #31078 .
Built from https://develop.svn.wordpress.org/trunk@35294
git-svn-id: http://core.svn.wordpress.org/trunk@35260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 16:21:25 +00:00
Sergey Biryukov
b8e250927f
In wp_list_categories()
, rewrite a long condition for clarity.
...
See #34363 .
Built from https://develop.svn.wordpress.org/trunk@35293
git-svn-id: http://core.svn.wordpress.org/trunk@35259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 16:13:26 +00:00
Sergey Biryukov
e0af554638
Tags: Avoid a double trailing space after tags separator in auto-suggest.
...
Props afercia.
Fixes #33881 .
Built from https://develop.svn.wordpress.org/trunk@35292
git-svn-id: http://core.svn.wordpress.org/trunk@35258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 16:00:30 +00:00
Boone Gorges
b285b3002a
Correct inline comment in wp_list_categories()
.
...
The fallback link for the 'All' option is 'page_for_posts', not
'page_on_front'. Introduced in [32292].
Props sudar, SergeyBiryukov.
Fixes #34363 .
Built from https://develop.svn.wordpress.org/trunk@35291
git-svn-id: http://core.svn.wordpress.org/trunk@35257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 12:55:27 +00:00
Drew Jaynes
7c3a476909
Docs: Correction: MONTH_IN_SECONDS
was added in 4.4.0.
...
Props swissspidy.
See [33698]. See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35290
git-svn-id: http://core.svn.wordpress.org/trunk@35256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 07:35:26 +00:00
Drew Jaynes
3686b78448
Media: Introduce the image_get_intermediate_size
filter to its like-named function, making it possible to manipulate returned intermedia image size data.
...
Covers both the default and meaningful short-circuit return cases. Also adds a hash notation to the return documentation in the DocBlock.
Props A5hleyRich, DH-Shredder, wonderboymusic.
Fixes #34124 .
Built from https://develop.svn.wordpress.org/trunk@35289
git-svn-id: http://core.svn.wordpress.org/trunk@35255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 07:24:27 +00:00
Drew Jaynes
875c82f17f
Media: Introduce the enclosure_links
filter, which makes it possible to adjust the list of audio and video enclosure links derived from post content before querying the database.
...
Props niallkennedy, stevenkword.
Fixes #19890 .
Built from https://develop.svn.wordpress.org/trunk@35288
git-svn-id: http://core.svn.wordpress.org/trunk@35254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 07:09:25 +00:00
Drew Jaynes
2eb8672961
Docs: The MINUTE_IN_SECONDS
, HOUR_IN_SECONDS
, DAY_IN_SECONDS
, WEEK_IN_SECONDS
, MONTH_IN_SECONDS
, and YEAR_IN_SECONDS
constants were introduced in 3.5.
...
See [21996]. See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35287
git-svn-id: http://core.svn.wordpress.org/trunk@35253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 06:59:29 +00:00
Drew Jaynes
02c9aeaef3
Filesystem: Introduce constants to allow for easier expression of file sizes and other data amounts.
...
Adds:
* `KB_IN_BYTES` (kilobytes)
* `MB_IN_BYTES` (megabytes)
* `GB_IN_BYTES` (gigabytes)
* `TB_IN_BYTES` (terabytes)
Props nbachiyski, sudar.
See #22405 .
Built from https://develop.svn.wordpress.org/trunk@35286
git-svn-id: http://core.svn.wordpress.org/trunk@35252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 06:55:25 +00:00
Drew Jaynes
7771205935
Query: Introduce the content_pagination
filter, which makes it possible to manipulate how post content is split into "pages" in WP_Query::setup_postdata()
.
...
The "pages" — or chunks of post content – are determined by splitting based on the presence of `<!-- nextpage -->` tags in the post content.
Props sirzooro, chriscct7.
Fixes #9911 .
Built from https://develop.svn.wordpress.org/trunk@35285
git-svn-id: http://core.svn.wordpress.org/trunk@35251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 06:33:27 +00:00
Scott Taylor
afe975d754
Formatting: allow date strings to be passed to get_gmt_from_date()
, instead of requiring 'Y-m-d H:i:s'
.
...
Adds unit tests.
Props pbearne.
Fixes #34279 .
Built from https://develop.svn.wordpress.org/trunk@35284
git-svn-id: http://core.svn.wordpress.org/trunk@35250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 06:08:25 +00:00
Scott Taylor
f4cc7b3de8
Feeds: add CEST
to $timezone
in SimplePie_Parse_Date
.
...
Props swissspidy.
Fixes #32749 .
Built from https://develop.svn.wordpress.org/trunk@35283
git-svn-id: http://core.svn.wordpress.org/trunk@35249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 05:57:24 +00:00
Scott Taylor
b0561ed6e4
Dashboard: use the create_posts
cap on the post type object when determining if the Quick Press widget can be displayed.
...
Props jim912, ocean90, chriscct7.
Fixes #25681 .
Built from https://develop.svn.wordpress.org/trunk@35282
git-svn-id: http://core.svn.wordpress.org/trunk@35248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 05:49:24 +00:00
Scott Taylor
f89b90a1c9
Theme Installer: toggle iframe-ready
on the overlay to control the spinner animated GIF and high CPU usage.
...
Props afercia, adamsilverstein.
Fixes #33322 .
Built from https://develop.svn.wordpress.org/trunk@35281
git-svn-id: http://core.svn.wordpress.org/trunk@35247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 05:36:25 +00:00
Scott Taylor
85a6189ad8
Users: when calling wp_insert_user()
with an valid user ID, return WP_Error
instead of arbitrarily updating user meta.
...
Adds unit test.
Props swissspidy, bilalcoder.
Fixes #28004 .
Built from https://develop.svn.wordpress.org/trunk@35280
git-svn-id: http://core.svn.wordpress.org/trunk@35246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 05:28:24 +00:00
Scott Taylor
5d63788d9a
XML-RPC: after [35095], change the name of the xmlrpc_memory_limit
filter to xmlrpc_chunk_parsing_size
.
...
Props ankit.gade.
Fixes #29957 .
Built from https://develop.svn.wordpress.org/trunk@35279
git-svn-id: http://core.svn.wordpress.org/trunk@35245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 05:19:25 +00:00
Scott Taylor
c5b6202dfa
Widgets: revert [34376] and [34386] as pertains to the Categories widget supporting custom taxonomies.
...
Punting on 4th down.
See #21165 .
Built from https://develop.svn.wordpress.org/trunk@35278
git-svn-id: http://core.svn.wordpress.org/trunk@35244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 04:57:25 +00:00
Scott Taylor
62d8b8c5bc
List Tables: revert the majority of [34467]. This was almost universally abhorred (the JS that disabled the bulk dropdowns).
...
See #31634 .
Built from https://develop.svn.wordpress.org/trunk@35277
git-svn-id: http://core.svn.wordpress.org/trunk@35243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 04:29:24 +00:00
Scott Taylor
89d1eb1e00
Formatting: when making unique filenames in wp_unique_filename()
by adding an incrementing number, prefix it with a dash to disambiguate from files that end in numbers.
...
Updates unit tests.
Props mikejolley, tyxla.
Fixes #21453 .
Built from https://develop.svn.wordpress.org/trunk@35276
git-svn-id: http://core.svn.wordpress.org/trunk@35242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 04:05:25 +00:00
Scott Taylor
4f16590e8e
Customizer: when available, show the description
when rendering the dropdown-pages
Control.
...
Props downstairsdev, MikeHansenMe, _smartik_.
Fixes #31540 .
Built from https://develop.svn.wordpress.org/trunk@35275
git-svn-id: http://core.svn.wordpress.org/trunk@35241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 03:48:26 +00:00
Drew Jaynes
a92d4f6fcb
Docs: Update the default scheme for get_rest_url()
from 'json' to 'rest'.
...
Also adds 'rest' to the documented list of schemes for `home_url()`, `get_home_url()`, `set_url_scheme()`, and the `home_url` and `set_url_scheme` hooks.
Props rachelbaker.
Fixes #34300 .
Built from https://develop.svn.wordpress.org/trunk@35274
git-svn-id: http://core.svn.wordpress.org/trunk@35240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 22:39:25 +00:00
Andrea Fercia
e074209a3d
Accessibility: Improve the headings hierarchy in the Add Themes screen.
...
Fixes #33819 .
Built from https://develop.svn.wordpress.org/trunk@35273
git-svn-id: http://core.svn.wordpress.org/trunk@35239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 22:04:25 +00:00
Weston Ruter
a89294dc49
Widgets: Modify unit test assertion to be compatible with widget_nav_menu
option being filtered by plugin to return ArrayIterator
.
...
Modifies assertion added in [35100].
See #26876 .
See #32474 .
Built from https://develop.svn.wordpress.org/trunk@35272
git-svn-id: http://core.svn.wordpress.org/trunk@35238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 21:27:26 +00:00
Drew Jaynes
9f0f213d5e
Docs: Add a missing file header for wp-admin/includes/class-wp-site-icon.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35271
git-svn-id: http://core.svn.wordpress.org/trunk@35237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 20:09:26 +00:00
Drew Jaynes
d5a15475d2
Tests: Add some more test coverage for get_term_field()
.
...
See #33968 .
Built from https://develop.svn.wordpress.org/trunk@35270
git-svn-id: http://core.svn.wordpress.org/trunk@35236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 03:29:24 +00:00
Boone Gorges
9cc7660c53
Don't store data
as a property on WP_Term
objects.
...
`wp_ajax_add_term()` fetches a term using `get_term()`, and passes the term to
`WP_Ajax_Response`, which expects each of the term's properties to be scalar.
Having `$data` as a `stdClass` (meant to mimic `WP_User::data`, populated by
a `get_row()` database query) violated this expectation, causing fatal string
conversion errors. As a workaround, `$term->data` is converted so that it is
no longer an actual property of the term object, but is assembled only when
requested in the magic `__get()` method.
Fixes #34348 .
Built from https://develop.svn.wordpress.org/trunk@35269
git-svn-id: http://core.svn.wordpress.org/trunk@35235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 03:12:24 +00:00
Boone Gorges
2543ffbbae
Bust object term cache in wp_remove_object_terms()
.
...
Props tszming.
Fixes #34338 .
Built from https://develop.svn.wordpress.org/trunk@35268
git-svn-id: http://core.svn.wordpress.org/trunk@35234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 01:53:24 +00:00
Dion Hulse
85258bb914
In insert_with_markers()
restore the 4.3 behaviour of creating the file if it doesn't exist.
...
This change also makes it bail early (without writing) if the markers content is the same as the existing, and uses `ftell()` rather than `$bytes` for the location to truncate the file to - based on the file pointer being at the end of the written stream.
Props willmot tigertech kevinatelement
See #31767
Built from https://develop.svn.wordpress.org/trunk@35267
git-svn-id: http://core.svn.wordpress.org/trunk@35233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-19 00:53:24 +00:00
Drew Jaynes
fd9bcf111d
Docs: Fix a typo in the $blog_id
parameter name in the rest_url
filter doc.
...
Props rachelbaker.
Fixes #34351 .
Built from https://develop.svn.wordpress.org/trunk@35266
git-svn-id: http://core.svn.wordpress.org/trunk@35232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 23:12:25 +00:00
Andrea Fercia
579246ab4a
Multisite: Improve the Admin Bar parent menu items color on hover and focus.
...
Props Nikschavan for the initial patch.
Fixes #34040 .
Built from https://develop.svn.wordpress.org/trunk@35265
git-svn-id: http://core.svn.wordpress.org/trunk@35231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 16:22:24 +00:00
Drew Jaynes
2e11f8cc16
Taxonomy: Improve deprecated argument strings for the 'link' type in get_categories()
and wp_dropdown_categories()
.
...
Props swissspidy, gagan0123.
Fixes #34318 .
Built from https://develop.svn.wordpress.org/trunk@35264
git-svn-id: http://core.svn.wordpress.org/trunk@35230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 15:35:24 +00:00
Drew Jaynes
b37bb95aad
Administration: Introduce the manage_posts_extra_tablenav
action, which fires inside the tablenav for the posts list table, and just outside the "actions" container.
...
Props hlashbrooke, wonderboymusic.
Fixes #30341 .
Built from https://develop.svn.wordpress.org/trunk@35263
git-svn-id: http://core.svn.wordpress.org/trunk@35229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 14:56:23 +00:00
Drew Jaynes
0aaa2900eb
Docs: Add a version to the file header for wp-admin/includes/comment.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35262
git-svn-id: http://core.svn.wordpress.org/trunk@35228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 14:34:25 +00:00
Ella Iseulde Van Dorpe
9845e08340
TinyMCE: Drag and drop link with image
...
Make sure images don't loose their link after drag and drop.
Fixes #28272 .
Built from https://develop.svn.wordpress.org/trunk@35261
git-svn-id: http://core.svn.wordpress.org/trunk@35227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 11:05:23 +00:00
John Blackbourn
532e1fb856
Some cleanup that was missed in [35259].
...
See #33728 , #24853
Built from https://develop.svn.wordpress.org/trunk@35260
git-svn-id: http://core.svn.wordpress.org/trunk@35226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 06:26:24 +00:00
John Blackbourn
46a191dfcc
Some rewrite endpoint tests in preparation for new endpoint masks. More to come.
...
See #33728 , #24853
Built from https://develop.svn.wordpress.org/trunk@35259
git-svn-id: http://core.svn.wordpress.org/trunk@35225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 06:24:24 +00:00
John Blackbourn
9564ccf373
Preserve the public and private query var properties on the global WP
instance when using WP_UnitTestCase::go_to()
. These properties apply to the application state, not the current request.
...
See #34346
Built from https://develop.svn.wordpress.org/trunk@35258
git-svn-id: http://core.svn.wordpress.org/trunk@35224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 05:01:24 +00:00
John Blackbourn
53f5767ee1
Add is_embed()
to WP_UnitTestCase::assertQueryTrue()
and update the relevant embed tests.
...
See #32522
Built from https://develop.svn.wordpress.org/trunk@35257
git-svn-id: http://core.svn.wordpress.org/trunk@35223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 04:51:25 +00:00
John Blackbourn
c01a64ad31
Move the test_is_home_should_be_false_when_visiting_custom_endpoint_without_a_registered_query_var_and_page_on_front_is_set()
test into a more appropriate place.
...
See #25143
Built from https://develop.svn.wordpress.org/trunk@35256
git-svn-id: http://core.svn.wordpress.org/trunk@35222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 01:35:24 +00:00
John Blackbourn
0b845bed03
Correct a test after r35253.
...
See #34272
Built from https://develop.svn.wordpress.org/trunk@35255
git-svn-id: http://core.svn.wordpress.org/trunk@35221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 00:56:24 +00:00
John Blackbourn
9da3b964fc
Remove an IDE-specific rule in .gitignore
. These should be managed in the user's ~/.gitignore_global
file.
...
Fixes #34345
Built from https://develop.svn.wordpress.org/trunk@35254
git-svn-id: http://core.svn.wordpress.org/trunk@35220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 00:16:24 +00:00
Sergey Biryukov
d76d340036
Embeds: After [35235], replace some missed oembed
references with embed
.
...
Props peterwilsoncc.
Fixes #34272 .
Built from https://develop.svn.wordpress.org/trunk@35253
git-svn-id: http://core.svn.wordpress.org/trunk@35219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 23:26:47 +00:00
John Blackbourn
5576cd3978
Introduce map_deep()
, a utility function that recursively maps a callable function to every item in an array or object. Works like array_walk_recursive()
but works with objects too.
...
Updates `rawurlencode_deep()`, `urlencode_deep()`, and `stripslashes_deep()` to use `map_deep()`. Introduces `urldecode_deep()` for completeness.
Props wpmuguru, nbachiyski, boonebgorges, MikeHansenMe, chriscct7, realloc, johnbillion
Fixes #22300
Built from https://develop.svn.wordpress.org/trunk@35252
git-svn-id: http://core.svn.wordpress.org/trunk@35218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 23:26:24 +00:00
Weston Ruter
f676fdcee3
Customizer: Fix margin-top
calculation for Themes section.
...
Ensure that the Themes section calculates its `margin-top` as a panel, since the section behaves as one. Fixes regression caused by [35231].
See #33567 .
Built from https://develop.svn.wordpress.org/trunk@35251
git-svn-id: http://core.svn.wordpress.org/trunk@35217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 22:41:25 +00:00
Scott Taylor
443ce28304
Media: in wp_get_attachment_image_sizes()
, ensure that $img_width
exists when the image does not.
...
Props kraftbj.
See #33641 .
Built from https://develop.svn.wordpress.org/trunk@35250
git-svn-id: http://core.svn.wordpress.org/trunk@35216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 22:12:24 +00:00