Boone Gorges
767518ffaa
Correct documentation for 'fields' param of WP_User_Query
.
...
[29843] introduced this documentation, and incorrectly stated that short
column names (eg 'login' instead of 'user_login') could be used.
Props birgire.
Fixes #34701 .
Built from https://develop.svn.wordpress.org/trunk@35645
git-svn-id: http://core.svn.wordpress.org/trunk@35609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 19:04:55 +00:00
Dion Hulse
42ff945649
Decrease the chances that wp_tempnam()
will conflict with an existing file by suffixing a random ID to the generated filename.
...
This also switches from using `touch()` to using `fopen( $file, 'x')` to ensure that we're the process creating the file.
Fixes #34562
Built from https://develop.svn.wordpress.org/trunk@35644
git-svn-id: http://core.svn.wordpress.org/trunk@35608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 05:33:25 +00:00
Weston Ruter
acba061485
Customize: Ensure multi-line label alignment for checkbox/radio inputs on both desktop and mobile.
...
Follow-up to [35608].
Props bordoni, delawski.
Fixes #34607 .
Built from https://develop.svn.wordpress.org/trunk@35643
git-svn-id: http://core.svn.wordpress.org/trunk@35607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 04:44:26 +00:00
Dion Hulse
be94558c46
Upgrader: Pass the $args['hook_extra']
context to the upgrader_source_selection
filter.
...
Props afragen
Fixes #34696
Built from https://develop.svn.wordpress.org/trunk@35642
git-svn-id: http://core.svn.wordpress.org/trunk@35606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 02:47:25 +00:00
John Blackbourn
43bc6dc931
Revert [35639] pending investigation into failures on PHP 5.2.
...
See #19455
Built from https://develop.svn.wordpress.org/trunk@35641
git-svn-id: http://core.svn.wordpress.org/trunk@35605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 00:54:28 +00:00
Gary Pendergast
3783e497c6
Embeds: Add the allow_insecure_embeds
filter.
...
This allows a site to disable non-SSL embeds.
Fixes #34588 .
Built from https://develop.svn.wordpress.org/trunk@35640
git-svn-id: http://core.svn.wordpress.org/trunk@35604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 00:23:26 +00:00
John Blackbourn
45658705f3
On servers running PHP <= 5.4 which have magic_quotes_sybase
enabled, the superglobals need to be magic-quoted before magic_quotes_sybase
is subsequently disabled to avoid incorrect un-slashing. This must surely effect a miniscule number of servers, but so be it.
...
Fixes #19455
Props summerblue, kurtpayne, lucatume
Built from https://develop.svn.wordpress.org/trunk@35639
git-svn-id: http://core.svn.wordpress.org/trunk@35603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-15 23:00:28 +00:00
Dominik Schilling
40b303069a
Schema: Increase length of user_pass
and user_activation_key
fields to 255.
...
Props grvrulz and Miglosh for testing.
Fixes #33904 .
Built from https://develop.svn.wordpress.org/trunk@35638
git-svn-id: http://core.svn.wordpress.org/trunk@35602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-15 14:19:28 +00:00
Gary Pendergast
9974c9b18d
Emoji: Ensure twemoji kicks in on certain DOM mutations.
...
Twemoji will replace the `img` with the emoji character, in the event that the image fails to load. We deliberately avoid trying to change that emoji character when it's changed back. We do need to replace emoji characters that are changed by something other than Twemoji, which this rectifies.
Fixes #34640 .
Built from https://develop.svn.wordpress.org/trunk@35637
git-svn-id: http://core.svn.wordpress.org/trunk@35601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-14 09:52:29 +00:00
Helen Hou-Sandí
ae9e173082
Buttons: Standardize on .button-link
for link-like buttons.
...
This serves as both a reset and some basic styling. The class name also aligns with parallel components in other popular projects.
props paulwilde for the initial patch.
fixes #34242 .
Built from https://develop.svn.wordpress.org/trunk@35636
git-svn-id: http://core.svn.wordpress.org/trunk@35600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-13 15:47:27 +00:00
Weston Ruter
268626d061
Customize: Exclude referer
URL from being used for Close link if it is customize.php
.
...
This fixes an edge case where the Close button could never link the user out of the Customizer, if the user initially accessed it without a `url` param and then clicked a link (provided by a plugin) that took them to another `customize.php` URL.
See #32637 .
Built from https://develop.svn.wordpress.org/trunk@35635
git-svn-id: http://core.svn.wordpress.org/trunk@35599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-13 05:25:28 +00:00
Gary Pendergast
329bec7ca1
Embeds: Add support for the www subdomain to Instagram embed URLs.
...
Props skithund.
Fixes #34651 .
Built from https://develop.svn.wordpress.org/trunk@35634
git-svn-id: http://core.svn.wordpress.org/trunk@35598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 23:04:27 +00:00
Aaron Jorbin
7552f6fb2a
Remove PHP 7 from allowed failures list
...
PHP 7 has released it's 7th (and potentially final) Release Candidate today. While it is still not recommended for use in production, it is at a point that a test failure with it is something that needs to be triaged immediately. Congratulations to the PHP internals team on the upcoming final release of PHP 7.
Fixes #33410
Built from https://develop.svn.wordpress.org/trunk@35633
git-svn-id: http://core.svn.wordpress.org/trunk@35597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 21:45:29 +00:00
Sergey Biryukov
6209004bf7
Remove <code>
tags from translatable string in wp-includes/load.php
.
...
Add translator comment.
Props ramiy.
Fixes #34621 .
Built from https://develop.svn.wordpress.org/trunk@35632
git-svn-id: http://core.svn.wordpress.org/trunk@35596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 18:21:24 +00:00
Sergey Biryukov
541ab45e8f
Fix failing multisite test after [35629].
...
See #27317 .
Built from https://develop.svn.wordpress.org/trunk@35631
git-svn-id: http://core.svn.wordpress.org/trunk@35595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 17:12:25 +00:00
Sergey Biryukov
95c55ca251
Cast 'illegal_user_logins'
filter result to array.
...
See #27317 .
Built from https://develop.svn.wordpress.org/trunk@35630
git-svn-id: http://core.svn.wordpress.org/trunk@35594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 16:34:27 +00:00
Sergey Biryukov
b08ae1d60b
Users: After [35189], make 'illegal_user_logins'
check case-insensitive.
...
Props juliobox.
Fixes #27317 .
Built from https://develop.svn.wordpress.org/trunk@35629
git-svn-id: http://core.svn.wordpress.org/trunk@35593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 16:30:28 +00:00
Gary Pendergast
5e878b4e72
Build: Prevent non-breaking spaces from accidentally being inserted into JavaScript files.
...
See #34658 .
Built from https://develop.svn.wordpress.org/trunk@35628
git-svn-id: http://core.svn.wordpress.org/trunk@35592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 12:05:26 +00:00
Gary Pendergast
6381e168b7
Pinking Shears: Remove some errant non-breaking spaces from a few JavaScript files.
...
Props francoisb.
Fixes #34658 .
Built from https://develop.svn.wordpress.org/trunk@35627
git-svn-id: http://core.svn.wordpress.org/trunk@35591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 12:04:27 +00:00
Scott Taylor
23bc08f370
WordPress 4.4 Beta 4 version bump
...
Built from https://develop.svn.wordpress.org/trunk@35626
git-svn-id: http://core.svn.wordpress.org/trunk@35590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 00:03:25 +00:00
Scott Taylor
6cb728d295
WordPress 4.4 Beta 4
...
Built from https://develop.svn.wordpress.org/trunk@35625
git-svn-id: http://core.svn.wordpress.org/trunk@35589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:53:25 +00:00
Konstantin Obenland
e1901c38c1
Template: Un-deprecate wp_title()
.
...
Before it can be deprecated we should identify alternative usages and define
a path forward for them.
See [35294], #31078 .
Built from https://develop.svn.wordpress.org/trunk@35624
git-svn-id: http://core.svn.wordpress.org/trunk@35588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:50:25 +00:00
Scott Taylor
35d501c5de
Revert [35621], breaks XML-RPC unit tests.
...
See #30775 .
Built from https://develop.svn.wordpress.org/trunk@35623
git-svn-id: http://core.svn.wordpress.org/trunk@35587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:34:27 +00:00
Scott Taylor
128a9c3acd
List Tables: after [34271], account for searches when calculating pagination.
...
Fixes #29870 .
Built from https://develop.svn.wordpress.org/trunk@35622
git-svn-id: http://core.svn.wordpress.org/trunk@35586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:14:26 +00:00
Scott Taylor
415ab45b9f
Posts: allow empty posts to be deleted - $maybe_empty
should not be set to true
for updates.
...
Props DrewAPicture.
Fixes #30775 .
Built from https://develop.svn.wordpress.org/trunk@35621
git-svn-id: http://core.svn.wordpress.org/trunk@35585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:49:50 +00:00
Sergey Biryukov
c8e0cd5c65
I18N: In Translations::translate_entry()
, account for multi-line strings in files with Windows line endings.
...
Fixes #22172 .
Built from https://develop.svn.wordpress.org/trunk@35620
git-svn-id: http://core.svn.wordpress.org/trunk@35584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:49:25 +00:00
Dominik Schilling
1f15d30396
Upgrade: Revert [34543] because of incomplete and incorrect functionality.
...
See #33932 .
Fixes #34434 .
Built from https://develop.svn.wordpress.org/trunk@35619
git-svn-id: http://core.svn.wordpress.org/trunk@35583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:46:26 +00:00
Scott Taylor
9eb60905f2
Users: in wp_insert_user()
, when a password isn't provided and the user exists, ensure that the password isn't wiped out.
...
Adds unit test.
Props leewillis77.
Fixes #29880 .
Built from https://develop.svn.wordpress.org/trunk@35618
git-svn-id: http://core.svn.wordpress.org/trunk@35582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:31:26 +00:00
Scott Taylor
e6611c6b01
Mail: after [33124], add unit tests.
...
Props mdawaffe.
Fixes #28039 .
Built from https://develop.svn.wordpress.org/trunk@35617
git-svn-id: http://core.svn.wordpress.org/trunk@35581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:05:26 +00:00
Scott Taylor
b4daf516ec
Help/About: unify tab styling.
...
Props afercia.
Fixes #34214 .
Built from https://develop.svn.wordpress.org/trunk@35616
git-svn-id: http://core.svn.wordpress.org/trunk@35580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 21:54:26 +00:00
Dominik Schilling
27e4384e89
Comments: Dynamically update the document title text for all languages, not only English.
...
See [33821].
Fixes #33414 .
Built from https://develop.svn.wordpress.org/trunk@35615
git-svn-id: http://core.svn.wordpress.org/trunk@35579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 21:00:27 +00:00
Sergey Biryukov
db8c89cccb
Remove non-translatable HTML code from the first post content in populate_network()
and wp_install_defaults()
.
...
Add translator comment.
Props ramiy.
Fixes #34619 .
Built from https://develop.svn.wordpress.org/trunk@35614
git-svn-id: http://core.svn.wordpress.org/trunk@35578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 20:55:26 +00:00
Sergey Biryukov
d206e633c2
Users: Only show the profile picture if 'Show Avatars' option in Discussion Settings is enabled.
...
Props ocean90.
See #32286 .
Built from https://develop.svn.wordpress.org/trunk@35613
git-svn-id: http://core.svn.wordpress.org/trunk@35577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:41:25 +00:00
Dominik Schilling
5403b62a6a
REST API: Use correct @access
tag for WP_REST_Request->get_parameter_order()
.
...
Props Frozzare.
Fixes #34624 .
Built from https://develop.svn.wordpress.org/trunk@35612
git-svn-id: http://core.svn.wordpress.org/trunk@35576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:39:25 +00:00
Dominik Schilling
0251086dec
About: Don't use _n_noop()
for singular/plural strings which provide no placeholder for a number.
...
This allows for using proper plural forms in languages with more than two forms.
Props SergeyBiryukov.
Fixes #34307 .
See #28502 .
Built from https://develop.svn.wordpress.org/trunk@35611
git-svn-id: http://core.svn.wordpress.org/trunk@35575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:29:25 +00:00
Sergey Biryukov
694ff83cc6
Users: Add user's Gravatar to 'About the user' section on user profile page.
...
Add `user_profile_picture_description` filter for the description text displayed under the Gravatar.
Props carolinegeven, obrienlabs, SergeyBiryukov.
Fixes #32286 .
Built from https://develop.svn.wordpress.org/trunk@35610
git-svn-id: http://core.svn.wordpress.org/trunk@35574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:28:28 +00:00
Andrea Fercia
62e236b3c6
Accessibility: Improve form labels and descriptions for the Tags meta box in the Edit Post screen.
...
Fixes #34627 .
Built from https://develop.svn.wordpress.org/trunk@35609
git-svn-id: http://core.svn.wordpress.org/trunk@35573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 15:24:29 +00:00
Weston Ruter
025074bbda
Customize: Prevent multi-line checkbox control labels from wrapping under checkbox.
...
Props bordoni.
Fixes #34607 .
Built from https://develop.svn.wordpress.org/trunk@35608
git-svn-id: http://core.svn.wordpress.org/trunk@35572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 09:37:27 +00:00
Andrew Ozz
7e1c68ea78
TinyMCE:
...
- Fix the inline toolbar on images in iOS, move it out of the way so the default inline toolbar is not over it.
- Fix selecting images on touch in the editor (iOS Safari fails to select them most of the time).
Fixes #34557 .
Built from https://develop.svn.wordpress.org/trunk@35607
git-svn-id: http://core.svn.wordpress.org/trunk@35571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 03:27:25 +00:00
Gary Pendergast
d3f30288e9
Emoji: Use twemoji in browsers that don't support Unicode 8 emoji.
...
Some less advanced browsers are yet to add support for the important advances made in Unicode 8. Let's make ensure that their users can experience emoji in their full glory.
See #33592 .
Built from https://develop.svn.wordpress.org/trunk@35606
git-svn-id: http://core.svn.wordpress.org/trunk@35570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 02:25:25 +00:00
Andrea Fercia
5f93491286
Accessibility: improvements for the taxonomies Quick Edit form.
...
Changes the "Cancel" and "Update" controls in buttons for better semantics and
accessibility. On cancel and successful saving, moves focus back to the term title
to avoid a focus loss. Dispatches error and success messages to `wp.a11y.speak`
to give assistive technologies users an audible feedback.
Patch prepared at #wpcdit, first Italian WordPress Contributor Day.
Props garusky, chiara_09.
Fixes #34613 .
Built from https://develop.svn.wordpress.org/trunk@35605
git-svn-id: http://core.svn.wordpress.org/trunk@35569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 00:24:28 +00:00
Drew Jaynes
eba05b2c98
Permalinks: Use "Plain" instead of "None" for the ?p-###
, which is still a valid permalink structure, just not a "pretty" one.
...
Permalinks are enabled by default (where supported) since in 4.2. When that change was made, it rended the "Default" label (previous to [35599]) inaccurate.
Props Ankit-K-Gupta.
Fixes #34509 .
Built from https://develop.svn.wordpress.org/trunk@35604
git-svn-id: http://core.svn.wordpress.org/trunk@35568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 22:19:27 +00:00
Dominik Schilling
66dee42444
Passwords: Disable hidden input fields on profile/user edit page.
...
Prevents an issue where password helpers would autofill the hidden password fields and inadvertently causing password changes when editing other fields on the profile page.
Props adamsilverstein.
Fixes #33699 .
Built from https://develop.svn.wordpress.org/trunk@35603
git-svn-id: http://core.svn.wordpress.org/trunk@35567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 20:41:26 +00:00
Andrew Ozz
93fa052e49
TinyMCE: prevent resize handles in newer IE when inserting a wpView.
...
Fixes #29400 .
Built from https://develop.svn.wordpress.org/trunk@35602
git-svn-id: http://core.svn.wordpress.org/trunk@35566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 19:33:26 +00:00
Drew Jaynes
a90d108b82
Docs: Remove an empty line from the hook doc for the wp_calculate_image_srcset
filter, introduced in [35592].
...
Props kraftbj.
See #34612 .
Built from https://develop.svn.wordpress.org/trunk@35601
git-svn-id: http://core.svn.wordpress.org/trunk@35565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 17:15:29 +00:00
Dion Hulse
49e6e41fb4
Update random_compat to master.
...
Clarifies strings, Merges [35587] upstream.
See #34409 , #28633
Built from https://develop.svn.wordpress.org/trunk@35600
git-svn-id: http://core.svn.wordpress.org/trunk@35564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 12:00:30 +00:00
Drew Jaynes
c5a8c3aa86
Permalinks: Rename the "Default" permalink structure to "None" as permalinks have been enabled by default (where supported) since 4.2.
...
Updates help tabs and contextual text to match.
Props johnbillion, DrewAPicture.
Fixes #34509 .
Built from https://develop.svn.wordpress.org/trunk@35599
git-svn-id: http://core.svn.wordpress.org/trunk@35563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 06:58:25 +00:00
Drew Jaynes
626549448a
Docs: Move an inline comment that was preventing the hook docs for the user_has_cap
filter from being parsed.
...
Props ocean90.
Fixes #34639 .
Built from https://develop.svn.wordpress.org/trunk@35598
git-svn-id: http://core.svn.wordpress.org/trunk@35562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 06:45:25 +00:00
Andrew Ozz
8b3c5fb300
TinyMCE: always remove trailing <br>
added by WebKit browsers to the clipboard.
...
Fixes #34642 .
Built from https://develop.svn.wordpress.org/trunk@35597
git-svn-id: http://core.svn.wordpress.org/trunk@35561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 04:32:25 +00:00
Gary Pendergast
1f24f52673
Emoji: Add some new flags, and a handful from Unicode 8.0.
...
Including the following that should be used as often as possible:
U+1F1E6 U+1F1FA Flag for Australia
U+1F3CF Cricket Bat and Ball
U+1F32F Burrito
See #33592 .
Built from https://develop.svn.wordpress.org/trunk@35596
git-svn-id: http://core.svn.wordpress.org/trunk@35560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 03:35:25 +00:00
Andrew Ozz
f34c16674a
Responsive images: fix args order and streamline the srcset and sizes generation and better inline docs in get_header_image_tag()
.
...
See #21389 .
Built from https://develop.svn.wordpress.org/trunk@35595
git-svn-id: http://core.svn.wordpress.org/trunk@35559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 01:59:25 +00:00
Andrew Ozz
a86cac1676
Responsive images: add template helper functions to generate the tag for a (responsive) header image that includes srcset and sizes attributes.
...
Props Otto42, joemcgill, DH-Shredder, azaozz.
Fixes #21389 .
Built from https://develop.svn.wordpress.org/trunk@35594
git-svn-id: http://core.svn.wordpress.org/trunk@35558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 01:17:26 +00:00
Andrea Fercia
e6e4496822
Comments: in comment_form()
when replying to a comment ensure to set focus on the first focusable form element, regardless of what that form element is.
...
Props azaozz.
See #29974 .
Built from https://develop.svn.wordpress.org/trunk@35593
git-svn-id: http://core.svn.wordpress.org/trunk@35557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 00:43:26 +00:00
Drew Jaynes
c98b62c452
Docs: Fix some formatting in the hook doc for the wp_calculate_image_srcset
filter and clarify the summary.
...
See #34612 .
Built from https://develop.svn.wordpress.org/trunk@35592
git-svn-id: http://core.svn.wordpress.org/trunk@35556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 23:34:27 +00:00
Andrew Ozz
7d0aa3a54a
Responsive images: properly arrange the parameters for the wp_calculate_image_srcset
filter and add fix the inline documentation.
...
Props joemcgill.
Fixes #34612 .
Built from https://develop.svn.wordpress.org/trunk@35591
git-svn-id: http://core.svn.wordpress.org/trunk@35555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 23:30:26 +00:00
Konstantin Obenland
5eeeeb89ce
Menu: Continue to use post dashicon as default menu icon.
...
Prevents a bug where custom post types without a specified menu icon would
adopt the menu icon of the preceding post type. Introduced in [33723].
See #16865 .
Fixes #34637 .
Built from https://develop.svn.wordpress.org/trunk@35590
git-svn-id: http://core.svn.wordpress.org/trunk@35554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 22:00:26 +00:00
Andrew Ozz
42a955a89b
TinyMCE: update the keyboard shortcuts for the link dialog in the wplink
plugin. Fixes Ctrl + Alt + A on MacOS.
...
Fixes #34636 .
Built from https://develop.svn.wordpress.org/trunk@35589
git-svn-id: http://core.svn.wordpress.org/trunk@35553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 21:32:28 +00:00
Boone Gorges
02532ee7d5
Fix documentation typo introduced in [35585].
...
Props swissspidy, barryceelen.
See #34626 .
Built from https://develop.svn.wordpress.org/trunk@35588
git-svn-id: http://core.svn.wordpress.org/trunk@35552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 14:03:28 +00:00
Dion Hulse
f9c7ca8496
Random_Compat: Bump the OpenSSL requirement for windows servers to 5.4.1 while the upstream issue is resolved.
...
Before PHP 5.4.1 the OpenSSL extension used a OpenSSL provided function which is seemingly slow under some circumstances, PHP 5.4.1+ uses the windows crypto API.
Fixes #34409
Built from https://develop.svn.wordpress.org/trunk@35587
git-svn-id: http://core.svn.wordpress.org/trunk@35551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 04:50:25 +00:00
Dion Hulse
2103984c02
Fix a typo in a docblock
...
Built from https://develop.svn.wordpress.org/trunk@35586
git-svn-id: http://core.svn.wordpress.org/trunk@35550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:38:26 +00:00
Boone Gorges
545124ffb3
When deleting a term, delete its metadata as well.
...
Props barryceelen.
Fixes #34626 .
Built from https://develop.svn.wordpress.org/trunk@35585
git-svn-id: http://core.svn.wordpress.org/trunk@35549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:36:26 +00:00
Weston Ruter
f4659f7ee0
Customize: Fix focus and autofocus on nav_menu_item
controls.
...
Embed the `nav_menu_item` control not only when the contained `nav_menu` section expands, but also if the control was autofocused (via the `autofocus[control]` query param). Also applies change from [33596] to work-around a broken `:focusable` selector in jQuery UI.
See #33258 .
Fixes #34629 .
Built from https://develop.svn.wordpress.org/trunk@35584
git-svn-id: http://core.svn.wordpress.org/trunk@35548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:14:25 +00:00
Weston Ruter
1032bc6775
Customize: Fix broken unit test for WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()
.
...
Fixes issue in [35580] which caused unit tests to fail while run under multisite.
Fixes #32812 .
Built from https://develop.svn.wordpress.org/trunk@35583
git-svn-id: http://core.svn.wordpress.org/trunk@35547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 02:56:25 +00:00
Dion Hulse
09ada24c99
Upgrade: Force disable the rest-api plugin on upgrade to 4.4 unless it's beta5+. Previous versions of the plugin were not configured correctly to gradefully degrade during update which would cause fatal errors.
...
Props wonderboymusic.
Fixes #34415
Built from https://develop.svn.wordpress.org/trunk@35582
git-svn-id: http://core.svn.wordpress.org/trunk@35546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 01:22:28 +00:00
Weston Ruter
5411447dd3
Customize: Fix sub-nav menu items from appearing to bump to root level in preview upon saving.
...
This issue would appear when the parent nav menu item was also newly-inserted. The issue was only apparent in the prevew, as the actual data saved was correct. The `menu_item_parent` properties of the saved sub-nav menu items needed to get updated to refer to the newly-inserted parent `nav_menu_item` post IDs, as opposed to retaining the placeholder IDs.
Fixes #34628 .
Built from https://develop.svn.wordpress.org/trunk@35581
git-svn-id: http://core.svn.wordpress.org/trunk@35545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 01:19:26 +00:00
Weston Ruter
c470b872bd
Customize: Improve alignment of WP_Customize_Nav_Menu_Item_Setting::sanitize()
behavior with wp_update_nav_menu_item()
.
...
* Apply `title_save_pre`, `excerpt_save_pre`, and `content_save_pre` filters on a nav menu item's `title`, `attr_title`, and `description` properties respectively. This ensures that arbitrary markup can be supplied if the user has `unfiltered_html` cap, and for these fields to have markup stripped if not.
* Ensure a nav menu item's `post_status` is sanitized as `publish` or `draft` using the same conditions as `wp_update_nav_menu_item()`.
* Align `WP_Customize_Nav_Menu_Item_Setting::sanitize()` behavior for sanitizing `position` to be the same as `wp_update_nav_menu_item()`.
* Also apply `nav_menu_attr_title` and `nav_menu_description` filters in `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()` to ensure that previewing markup entered into menu item description will preview the same way as when the nav menu item is saved.
* Add unit tests.
Fixes #32812 .
Built from https://develop.svn.wordpress.org/trunk@35580
git-svn-id: http://core.svn.wordpress.org/trunk@35544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:48:26 +00:00
Dion Hulse
f47801d504
Media: Allow media_sideload_image()
to work when the upload directory is a PHP Stream. Using copy() instead of rename() allows the function to work across different stream sources.
...
Props mattheu.
Fixes #29257
Built from https://develop.svn.wordpress.org/trunk@35579
git-svn-id: http://core.svn.wordpress.org/trunk@35543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:44:27 +00:00
Gary Pendergast
af06409b97
Embeds: Add a filter for the site title HTML.
...
Props swissspidy.
Fixes #34534 .
Built from https://develop.svn.wordpress.org/trunk@35578
git-svn-id: http://core.svn.wordpress.org/trunk@35542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:11:26 +00:00
Gary Pendergast
a2349a2377
Embeds: Fix support for embedding in non-WordPress sites.
...
This moves the last of the iframe message code from PHP to JavaScript, so it can be included in any site, without needing to rely on any of WordPress' internal behaviour.
Props swissspidy.
Fixes #34451 .
Built from https://develop.svn.wordpress.org/trunk@35577
git-svn-id: http://core.svn.wordpress.org/trunk@35541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:08:27 +00:00
Dominik Schilling
5e0dac0f8f
Widgets: Fix typo in WP_Widget_Tag_Cloud::form()
.
...
Props skithund.
Fixes #34623 .
Built from https://develop.svn.wordpress.org/trunk@35576
git-svn-id: http://core.svn.wordpress.org/trunk@35540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 20:35:27 +00:00
Jeremy Felt
23c1050fb9
MS: Allow "Network Admin Email" to be a non-user during network setup.
...
The network admin email setting for a network is often used as a catch-all or notification email separate from the actual user ID set as the owner of the new network. If a non-user email address is set during network installation, we can defer to the current user as the actual network admin and apply the entered email as the address to which general notifications are sent and emails are sent from.
In the future, we'll want to update the messaging around "Network Admin Email" to reflect its reality. See #34293 .
Props jjeaton.
Fixes #34065 .
Built from https://develop.svn.wordpress.org/trunk@35575
git-svn-id: http://core.svn.wordpress.org/trunk@35539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 03:16:26 +00:00
Andrew Ozz
9fb7dcc30d
TinyMCE: update to 4.2.7. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=888
...
Fixes #34620 .
Built from https://develop.svn.wordpress.org/trunk@35574
git-svn-id: http://core.svn.wordpress.org/trunk@35538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:32:26 +00:00
Jeremy Felt
c0a3348487
Multisite: Clarify documentation for WP_Network::get_by_path()
.
...
See #31985 .
Built from https://develop.svn.wordpress.org/trunk@35573
git-svn-id: http://core.svn.wordpress.org/trunk@35537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:25:25 +00:00
Jeremy Felt
f3c2c7350c
Site Icon: Wrap site icon retrieval with switch_to_blog()
as needed.
...
When the site icon for another site is requested, retrieving its ID via `get_blog_option()` is not enough. `switch_to_blog()` is used to set proper context when required.
Adds multsite tests for `has_site_icon()`.
Props imath.
Fixes #34312 .
Built from https://develop.svn.wordpress.org/trunk@35572
git-svn-id: http://core.svn.wordpress.org/trunk@35536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:04:27 +00:00
Jeremy Felt
d1c09d96bf
Site Icon: Use new wp_get_attachment_image_url()
to retrieve URL.
...
`wp_get_attachment_image_url()` is a nice replacement for `wp_get_attachment_image_src()` here after its introduction in 4.4.
Props imath.
See #34312 .
Built from https://develop.svn.wordpress.org/trunk@35571
git-svn-id: http://core.svn.wordpress.org/trunk@35535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 01:59:26 +00:00
Sergey Biryukov
a4dc43106c
Remove <code>
tags from translatable string in wp-admin/network/settings.php
.
...
Add translator comment.
Props ramiy.
Fixes #34618 .
Built from https://develop.svn.wordpress.org/trunk@35570
git-svn-id: http://core.svn.wordpress.org/trunk@35534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 01:34:26 +00:00
Andrew Ozz
1b44ae6663
Responsive images: make the new functions and filters signatures more consistent.
...
Props joemcgill.
Fixes #34612 .
Built from https://develop.svn.wordpress.org/trunk@35569
git-svn-id: http://core.svn.wordpress.org/trunk@35533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 21:36:27 +00:00
Scott Taylor
175064637f
Administration: when hiding the login modal and unbind the auth check, also unbind the heartbeat auth check.
...
Props nofearinc.
Fixes #28962 .
Built from https://develop.svn.wordpress.org/trunk@35568
git-svn-id: http://core.svn.wordpress.org/trunk@35532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:22:25 +00:00
Scott Taylor
e649fabb6a
Accessibility: add missing alt
attributes to a gaggle of <img>
s.
...
Props afercia.
Fixes #34583 .
Built from https://develop.svn.wordpress.org/trunk@35567
git-svn-id: http://core.svn.wordpress.org/trunk@35531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:12:27 +00:00
Scott Taylor
b17272831c
List Tables: fix row links CSS for RTL.
...
Props afercia.
Fixes #34150 .
Built from https://develop.svn.wordpress.org/trunk@35566
git-svn-id: http://core.svn.wordpress.org/trunk@35530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:05:25 +00:00
Scott Taylor
7a24b60c2a
List Tables: to ensure that get_primary_column_name()
can match columns that were added via the "manage_{$screen->id}_columns"
filer, call get_column_headers()
instead of $this->get_columns()
.
...
List Table classes and `WP_Screen` are already tangled together. The parent list table constructor adds a filter that is called by a function that references the instance globally, even though we have access to it via composition directly in the class that is adding the filter. So the fact that functions here have to be called that reference a screen instance we already have access to is what one might call... less than elegant.
#OOP
Props SergeyBiryukov.
Fixes #34508 .
Built from https://develop.svn.wordpress.org/trunk@35565
git-svn-id: http://core.svn.wordpress.org/trunk@35529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 15:27:25 +00:00
Dominik Schilling
a3d58b3fbe
Build Tools: Update the preserveComments
option for uglify:jqueryui
.
...
Uglify2 doesn't support the value "some" anymore. Replace it with the `/^!/` regex which produces the same output as before.
See https://build.trac.wordpress.org/changeset/35502 and https://build.trac.wordpress.org/changeset/35528 .
Fixes #34177 .
Built from https://develop.svn.wordpress.org/trunk@35564
git-svn-id: http://core.svn.wordpress.org/trunk@35528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 12:37:26 +00:00
Dominik Schilling
adc233f617
Build Tools: Update autoprefixer
to 0.6.1.
...
Release Post: https://github.com/postcss/autoprefixer/releases/tag/6.1.0
Includes changes to CSS files after `grunt precommit` because of the new transition support and a new parser for gradients (see [34637]).
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35563
git-svn-id: http://core.svn.wordpress.org/trunk@35527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 11:57:31 +00:00
Dominik Schilling
4c5347fe1a
Build Tools: Update grunt-postcss
to 0.7.1.
...
Change: https://github.com/nDmitry/grunt-postcss/commit/6e18c7d5
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35562
git-svn-id: http://core.svn.wordpress.org/trunk@35526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 11:43:34 +00:00
Andrew Ozz
72a1124c45
Responsive images: omit full size images from srcset attributes when the original file is an intermediate sized GIF so we don't accidentally add animation to an otherwise flat image. Update the tests to cover this case.
...
Props joemcgill, H-Shredder, SergeyBiryukov.
Fixes #34528 .
Built from https://develop.svn.wordpress.org/trunk@35561
git-svn-id: http://core.svn.wordpress.org/trunk@35525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 02:10:25 +00:00
Andrew Ozz
be44f0a3f7
Responsive images: add test for invalid size name. Remove invalid size from other tests.
...
Props jaspermdegroot.
See #33641 .
Built from https://develop.svn.wordpress.org/trunk@35560
git-svn-id: http://core.svn.wordpress.org/trunk@35524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 01:33:27 +00:00
Sergey Biryukov
788ea5ba5a
Reset Password: Improve wording for a string used in password reset email.
...
Props obrienlabs.
Fixes #34605 .
Built from https://develop.svn.wordpress.org/trunk@35559
git-svn-id: http://core.svn.wordpress.org/trunk@35523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 22:36:25 +00:00
Drew Jaynes
efdc838019
Docs: Add a missing version to the file header for wp-admin/users.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35558
git-svn-id: http://core.svn.wordpress.org/trunk@35522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 21:54:33 +00:00
Sergey Biryukov
9dd3f6fb16
Remove <code>
tags from translatable strings in wp-admin/setup-config.php
.
...
Add translator comments.
Props ramiy.
Fixes #34579 .
Built from https://develop.svn.wordpress.org/trunk@35557
git-svn-id: http://core.svn.wordpress.org/trunk@35521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 17:22:26 +00:00
Sergey Biryukov
2583c1e4ec
Replace 7 * DAY_IN_SECONDS
with WEEK_IN_SECONDS
in get_weekstartend()
.
...
Props MikeHansenMe.
Fixes #34603 .
Built from https://develop.svn.wordpress.org/trunk@35556
git-svn-id: http://core.svn.wordpress.org/trunk@35520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 16:37:27 +00:00
Sergey Biryukov
5f16d19be7
Use the MONTH_IN_SECONDS
constant added in [33698] for the month representation in human_time_diff()
logic.
...
Props tyxla.
Fixes #34602 .
Built from https://develop.svn.wordpress.org/trunk@35555
git-svn-id: http://core.svn.wordpress.org/trunk@35519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 16:34:26 +00:00
Sergey Biryukov
7ad65267b6
Media: Avoid a PHP warning in wp_generate_attachment_metadata()
if $metadata
is not an array.
...
This was previously fixed in [25968], but accidentally reverted in [32545].
Props skithund.
Fixes #34599 .
Built from https://develop.svn.wordpress.org/trunk@35554
git-svn-id: http://core.svn.wordpress.org/trunk@35518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 09:25:26 +00:00
Weston Ruter
b9d9c6d3c9
Customize: Fix typo in WP_Customize_Manager::_cmp_priority()
which caused unstable sorting for same-priority constructs in PHP.
...
The issue, however, does not manifest in the UI because the UI is now built via JS and the `wp.customize.utils.prioritySort()` algorithm did not have the same typo.
Props bordoni, westonruter.
Fixes #34594 .
Built from https://develop.svn.wordpress.org/trunk@35553
git-svn-id: http://core.svn.wordpress.org/trunk@35517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 06:58:25 +00:00
Sergey Biryukov
cbe0cad509
Remove <code>
tags from translatable strings in wp-admin/includes/network.php
.
...
Add translator comments.
Props ramiy.
Fixes #34598 .
Built from https://develop.svn.wordpress.org/trunk@35552
git-svn-id: http://core.svn.wordpress.org/trunk@35516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:59:25 +00:00
Sergey Biryukov
d6e25c0aae
Remove <code>
tags from translatable strings in wp-admin/includes/class-wp-upgrader.php
.
...
Add translator comments.
Props ramiy.
Fixes #34580 .
Built from https://develop.svn.wordpress.org/trunk@35551
git-svn-id: http://core.svn.wordpress.org/trunk@35515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:41:25 +00:00
Sergey Biryukov
8c2ed5330a
Remove <code>
tag from translatable string in wp-admin/options-media.php
.
...
Add translator comment.
Props ramiy.
Fixes #34581 .
Built from https://develop.svn.wordpress.org/trunk@35550
git-svn-id: http://core.svn.wordpress.org/trunk@35514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:28:25 +00:00
Sergey Biryukov
387d3bca32
Add translator comments for strings in wp-admin/edit-comments.php
.
...
Props ramiy for initial patch.
Fixes #34586 .
Built from https://develop.svn.wordpress.org/trunk@35549
git-svn-id: http://core.svn.wordpress.org/trunk@35513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:23:25 +00:00
Sergey Biryukov
77b0fad640
Remove <code>
tags from translatable strings in wp-includes/class-wp-user.php
.
...
Add translator comments.
Props ramiy.
Fixes #34576 .
Built from https://develop.svn.wordpress.org/trunk@35548
git-svn-id: http://core.svn.wordpress.org/trunk@35512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:06:25 +00:00
Sergey Biryukov
a0fa0d3328
Remove <code>
tags from translatable strings in wp-load.php
.
...
Add translator comments.
Props ramiy.
Fixes #34574 .
Built from https://develop.svn.wordpress.org/trunk@35547
git-svn-id: http://core.svn.wordpress.org/trunk@35511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:59:26 +00:00
Sergey Biryukov
b5b3b0b913
Remove <code>
tag from translatable string in trackback_url()
.
...
Add translator commment.
Props ramiy.
Fixes #34573 .
Built from https://develop.svn.wordpress.org/trunk@35546
git-svn-id: http://core.svn.wordpress.org/trunk@35510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:39:25 +00:00
Sergey Biryukov
09b9fae4db
Remove <code>
tag from translatable string in the_author()
.
...
Add translator commment.
Props ramiy.
See #34573 .
Built from https://develop.svn.wordpress.org/trunk@35545
git-svn-id: http://core.svn.wordpress.org/trunk@35509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:38:27 +00:00
Sergey Biryukov
123765d9c8
I18N: Add a translator comment for the string introduced in [24758] and made translatable in [29840].
...
Props swissspidy.
See #34249 .
Built from https://develop.svn.wordpress.org/trunk@35544
git-svn-id: http://core.svn.wordpress.org/trunk@35508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 21:18:25 +00:00
Sergey Biryukov
a7e305b06f
Use correct placeholders in translator comments added in [35542].
...
See #34249 .
Built from https://develop.svn.wordpress.org/trunk@35543
git-svn-id: http://core.svn.wordpress.org/trunk@35507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 21:05:25 +00:00
Drew Jaynes
48f4b7cfc3
I18N: Add translator comments to three _doing_it_wrong()
messages added for 4.3 and 4.4.
...
Also adds a full-stop to an invalid taxonomy message introduced in [34745] and later modified in [35428] for `wp_insert_post()`.
Props pavelevap.
Fixes #34249 .
Built from https://develop.svn.wordpress.org/trunk@35542
git-svn-id: http://core.svn.wordpress.org/trunk@35506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 20:56:32 +00:00
Aaron Jorbin
627844ca34
Bump grunt-contrib-cssmin to 0.14.0
...
This updates the underlying version of cssmin
Fixes #34177
Built from https://develop.svn.wordpress.org/trunk@35541
git-svn-id: http://core.svn.wordpress.org/trunk@35505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:58:28 +00:00
Aaron Jorbin
63026a897c
Bump grunt-contrib-copy to 0.8.2
...
updates an underlying dependency and fixes an issue with multiple copies
see #34177
Built from https://develop.svn.wordpress.org/trunk@35540
git-svn-id: http://core.svn.wordpress.org/trunk@35504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:56:30 +00:00
Aaron Jorbin
25d8f212b7
Bump grunt-sass to 1.1.0
...
This bumps the underlying version of node-sass to 3.4.0 and libsass to 3.3.0. It causes no difference in the current sass output.
Props netweb.
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35539
git-svn-id: http://core.svn.wordpress.org/trunk@35503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:53:43 +00:00
Aaron Jorbin
d60ca2f758
Bump grunt-contrib-uglify to 0.10.0
...
This includes an update to the underlying version of uglify which causes all of the JS to be modified.
See #34177
Built from https://develop.svn.wordpress.org/trunk@35538
git-svn-id: http://core.svn.wordpress.org/trunk@35502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:47:30 +00:00
Boone Gorges
91a5e4c502
Make get_term()
behave more consistently in the context of shared terms.
...
When `WP_Term` was introduced in [34997], the `$taxonomy` parameter for
`get_term()` was made optional. This meant that, when the optional param was
omitted, `get_term()` had no way of determining which term was intended when
the term_id was shared between multiple taxonomies. As a (somewhat sneaky) way
of fixing things, `get_term()` split any shared terms it found. But this could
cause problems with developer expectations: it's not clear why requesting a
term should result in a database update, much less a potential change in the
ID of a term.
In place of this technique, this changeset introduces a number of changes that
make the handling of shared terms a bit less insane:
* When a taxonomy is provided to `get_term()`, and a cached term is found matching the term_id, make sure the taxonomy also matches before returning it.
* When a taxonomy is not provided, ensure that the term is not shared before adding it to the cache.
* When a term is shared between taxonomies and no taxonomy is provided, return a `WP_Error` rather than splitting the term.
* When a term is shared between taxonomies, only one of which is valid, return the term from that taxonomy.
Props boonebgorges, dlh.
Fixes #34533 .
Built from https://develop.svn.wordpress.org/trunk@35537
git-svn-id: http://core.svn.wordpress.org/trunk@35501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 16:45:25 +00:00
Sergey Biryukov
3caaa702bf
Comments: Use _n()
in get_comments_number_text()
when setting the default string for multiple comments.
...
Fixes #34593 .
Built from https://develop.svn.wordpress.org/trunk@35536
git-svn-id: http://core.svn.wordpress.org/trunk@35500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 15:36:28 +00:00
Weston Ruter
1a55cbe59d
Customize: Hide "Change" button in themes section if there are fewer than two available themes.
...
Props danielbachhuber, westonruter.
Fixes #34549 .
Built from https://develop.svn.wordpress.org/trunk@35535
git-svn-id: http://core.svn.wordpress.org/trunk@35499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 01:26:25 +00:00
Weston Ruter
e0ac4e4d05
Customize: Correct phpdoc @return
type for WP_Customize_Manager::add_dynamic_settings()
.
...
Fixes regression in [32032], where `WP_Customize_Setting[]` should have been changed to `array` instead of `WP_Customize_Setting`.
See #31888 .
Built from https://develop.svn.wordpress.org/trunk@35534
git-svn-id: http://core.svn.wordpress.org/trunk@35498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 00:43:24 +00:00
Gary Pendergast
84c8243514
Themes: Remove an errant comma from theme.js
.
...
Added in [35527].
See #34206 .
Built from https://develop.svn.wordpress.org/trunk@35533
git-svn-id: http://core.svn.wordpress.org/trunk@35497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:49:26 +00:00
Gary Pendergast
27df997eed
Media Library: After [35499], increase the specificity of our selectors so that they don't cause problems for the wp-admin
Media Library page.
...
Props aaronrutley.
Fixes #32005 .
Built from https://develop.svn.wordpress.org/trunk@35532
git-svn-id: http://core.svn.wordpress.org/trunk@35496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:43:26 +00:00
Dominik Schilling
2c54b0358e
After [35518] define $_POST['post_view']
in test_dont_process_terms_if_taxonomy_does_not_allow_show_on_quick_edit()
.
...
See #34577 .
Built from https://develop.svn.wordpress.org/trunk@35531
git-svn-id: http://core.svn.wordpress.org/trunk@35495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:06:24 +00:00
Scott Taylor
07bb2da0c9
Bump 4.4-beta3 (again, again)
...
Built from https://develop.svn.wordpress.org/trunk@35530
git-svn-id: http://core.svn.wordpress.org/trunk@35494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 22:03:24 +00:00
Scott Taylor
14aca69402
4.4-beta3 (again)
...
Built from https://develop.svn.wordpress.org/trunk@35529
git-svn-id: http://core.svn.wordpress.org/trunk@35493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 22:00:26 +00:00
Scott Taylor
2487cfb005
Bump 4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35528
git-svn-id: http://core.svn.wordpress.org/trunk@35492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:56:25 +00:00
Sergey Biryukov
a41e5d0270
Themes: Add a Favorites tab to the Add Themes screen.
...
You can now browse and install your wordpress.org theme favorites from the theme installer, just like with plugins.
Props swissspidy.
Fixes #34206 .
Built from https://develop.svn.wordpress.org/trunk@35527
git-svn-id: http://core.svn.wordpress.org/trunk@35491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:49:26 +00:00
Scott Taylor
d8b65d5582
Bump 4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35526
git-svn-id: http://core.svn.wordpress.org/trunk@35490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:47:26 +00:00
Scott Taylor
149f39d203
4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35525
git-svn-id: http://core.svn.wordpress.org/trunk@35489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:46:28 +00:00
Andrew Ozz
09c16cb4ac
Responsive images: do not generate srcset
for GIFs that are inserted at full size. Prevents breaking animated GIFs.
...
Props joemcgill.
Fixes #34528 .
Built from https://develop.svn.wordpress.org/trunk@35524
git-svn-id: http://core.svn.wordpress.org/trunk@35488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:44:25 +00:00
Andrea Fercia
3c0ed4295e
List tables: Improve the displaying of pagination links on small screens.
...
Pagination links can break in two lines on small screens. Implements a partial fix, new ideas and better solutions should be explored though.
See #33962 .
Built from https://develop.svn.wordpress.org/trunk@35523
git-svn-id: http://core.svn.wordpress.org/trunk@35487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:43:25 +00:00
Dominik Schilling
600b303668
Revert [35372] because of possible encoding issues, needs more investigation.
...
See #10373 .
Built from https://develop.svn.wordpress.org/trunk@35522
git-svn-id: http://core.svn.wordpress.org/trunk@35486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:39:26 +00:00
Aaron Jorbin
37ad21d444
Bump grunt-contrib-compress
...
Upsteam changelog: change to verbose output dependency updates Archiver 0.16
See #34177
Built from https://develop.svn.wordpress.org/trunk@35521
git-svn-id: http://core.svn.wordpress.org/trunk@35485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:36:30 +00:00
Aaron Jorbin
57a4f0841e
Bump grunt-postcss
...
See #34177
Built from https://develop.svn.wordpress.org/trunk@35520
git-svn-id: http://core.svn.wordpress.org/trunk@35484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:32:53 +00:00
Sergey Biryukov
c6c366fec0
Adjust some of the strings added in [35508].
...
Fixes #34519 .
Built from https://develop.svn.wordpress.org/trunk@35519
git-svn-id: http://core.svn.wordpress.org/trunk@35483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:32:26 +00:00
Dominik Schilling
122f38f748
List Tables: Define the global $mode
variable for Quick Edit savings.
...
Also remove two unused global imports for `$mode`.
Fixes #34577 .
Built from https://develop.svn.wordpress.org/trunk@35518
git-svn-id: http://core.svn.wordpress.org/trunk@35482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:29:25 +00:00
Sergey Biryukov
5d87e7d2b8
Introduce wp_maybe_decline_date()
for languages where certain date formats need to be declined, and hook it to the date_i18n
filter.
...
If the locale specifies that month names require a genitive case in certain formats like `'j F Y'` or `'j. F'`, the month name will be replaced with a correct form.
Fixes #11226 .
Built from https://develop.svn.wordpress.org/trunk@35517
git-svn-id: http://core.svn.wordpress.org/trunk@35481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:28:26 +00:00
Andrea Fercia
c443d45708
Admin: Ensure notices with the below-h2
class are not repositioned after [35238].
...
Keeps the `.below-h2` class for backwards compatibility with plugins that are (incorrectly) using it. Plugins should use `.inline` instead.
Props stephenharris.
Fixes #34570 . See #34294 .
Built from https://develop.svn.wordpress.org/trunk@35516
git-svn-id: http://core.svn.wordpress.org/trunk@35480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:27:26 +00:00
Boone Gorges
973223ad5f
Don't allow term meta to be added to shared taxonomy terms.
...
`add_term_meta()` and `update_term_meta()` identify terms by `$term_id`. In
cases where a term is shared between taxonomies, `$term_id` is insufficient to
distinguish where the metadata belongs.
When attempting to add/update termmeta on a shared term, a `WP_Error` object
is returned. This gives developers enough information to decide whether they'd
like to force the term to be split and retry the save, or show an error in the
UI, or whatever.
Props boonebgorges, mboynes, DH-Shredder, jorbin, aaroncampbell.
Fixes #34544 .
Built from https://develop.svn.wordpress.org/trunk@35515
git-svn-id: http://core.svn.wordpress.org/trunk@35479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:24:26 +00:00
Scott Taylor
16637eeee4
REST API: in WP_REST_Server::dispatch()
, move preg_match()
out of it's current loop, which doesn't affect the context passed to it.
...
Props TobiasBg.
Fixes #34488 .
Built from https://develop.svn.wordpress.org/trunk@35514
git-svn-id: http://core.svn.wordpress.org/trunk@35478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:23:25 +00:00
Aaron Jorbin
9e5726c233
Bump matchdep from 0.3.0 to 1.0.0
...
This drops support for node 0.8.0 so if you still using that, it's time to upgrade your node.
See #34177
Built from https://develop.svn.wordpress.org/trunk@35513
git-svn-id: http://core.svn.wordpress.org/trunk@35477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:21:36 +00:00
Boone Gorges
5c1ca9d943
WP_Comment_Query
: Fill comment objects from database when cache is unavailable.
...
This fixes a bug where widgets loaded in a preview or the Customizer are
rendered inside of a `wp_suspend_cache_addition()` block and thus could not
find comment objects in the cache.
Props rommelxcastro, stevehenty.
Fixes #34138 .
Built from https://develop.svn.wordpress.org/trunk@35512
git-svn-id: http://core.svn.wordpress.org/trunk@35476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:09:27 +00:00
Drew Jaynes
1ddb8b94af
Customizer: Adjust styles on panel titles to prevent descenders – such as with the letters g, j, p, q, or y – from getting cut off in some browsers.
...
Props umeshnevase.
Fixes #33575 .
Built from https://develop.svn.wordpress.org/trunk@35511
git-svn-id: http://core.svn.wordpress.org/trunk@35475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:53:26 +00:00
Drew Jaynes
3575214485
Pages: Introduce the get_page_uri
filter, which makes it possible to manipulate a given page's URI before it's returned from the like-named get_page_uri()
.
...
Props tanner-m for the initial patch.
Fixes #15963 .
Built from https://develop.svn.wordpress.org/trunk@35510
git-svn-id: http://core.svn.wordpress.org/trunk@35474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:29:25 +00:00
Scott Taylor
d763eb80b7
XMLRPC: ensure that empty strings are not passed as null
, which will then fail isset()
...
Props solarissmoke.
Fixes #16980 .
Built from https://develop.svn.wordpress.org/trunk@35509
git-svn-id: http://core.svn.wordpress.org/trunk@35473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:08:25 +00:00
Aaron Jorbin
b026ad4b75
Adjust heading structure for pages using wp-admin/css/install.css
...
The readme, installation, upgrade, and repair pages use a common css file. The heading structure for these pages was inconstant with h2s where there should be h1s, h1s where there is no relevant info and sometimes, no h1s at all.
Fixes #34519
Props rianrietveld
Built from https://develop.svn.wordpress.org/trunk@35508
git-svn-id: http://core.svn.wordpress.org/trunk@35472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:00:24 +00:00
Scott Taylor
9135920061
Roles: map add_users
cap to promote_users
and remove it.
...
"Never used, will be removed." - The Ghost of 3.5 Nacin
Props Craig Ralston, renoirb.
Fixes #16719 .
Built from https://develop.svn.wordpress.org/trunk@35507
git-svn-id: http://core.svn.wordpress.org/trunk@35471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 17:54:25 +00:00
Scott Taylor
5e9ed67b82
Feeds: <comments>
is optional in RSS2, so don't include it when comments aren't present or open. Same for <wfw:commentRss>
and <slash:comments>
...
Adds unit test.
Props swissspidy, realloc, hakre, sivel.
Fixes #9134 .
Built from https://develop.svn.wordpress.org/trunk@35506
git-svn-id: http://core.svn.wordpress.org/trunk@35470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 17:47:25 +00:00
Sergey Biryukov
7d09847957
Add missing @group
to Tests_Rel_No_Follow
.
...
See #9959 .
Built from https://develop.svn.wordpress.org/trunk@35505
git-svn-id: http://core.svn.wordpress.org/trunk@35469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 16:36:24 +00:00
Drew Jaynes
96616877ac
Taxonomy: Introduce the dynamic taxonomy_labels_{$taxonomy}
filter, which can be used to manipulate the labels for a given taxonomy.
...
The addition of this hook brings parity with the earlier-introduced `post_type_labels_{$post_type}` filter, which allows for similarly manipulating labels for a given post type.
Note: It isn't possible to unset or remove default labels via either of these hooks, only to overwrite. This is because WordPress relies on defaults being set for use in various UIs and admin experiences.
Props flixos90.
Fixes #34554 .
Built from https://develop.svn.wordpress.org/trunk@35504
git-svn-id: http://core.svn.wordpress.org/trunk@35468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 16:03:25 +00:00
Drew Jaynes
fd10901db5
Docs: Add a missing return description for _get_custom_object_labels()
, a private core helper function.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35503
git-svn-id: http://core.svn.wordpress.org/trunk@35467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 15:47:27 +00:00
Sergey Biryukov
18852f07f2
Menus: After [35450], use correct IDs in $initial_meta_boxes
.
...
Props swissspidy.
Fixes #33925 .
Built from https://develop.svn.wordpress.org/trunk@35502
git-svn-id: http://core.svn.wordpress.org/trunk@35466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 10:56:26 +00:00
Weston Ruter
154e3d4593
Customize: Simplify condition for returning nav_menus_invalid_post_type
error.
...
Props swissspidy.
See #16075 .
Built from https://develop.svn.wordpress.org/trunk@35501
git-svn-id: http://core.svn.wordpress.org/trunk@35465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 07:29:25 +00:00
Weston Ruter
77e365efbf
Customize: Add support for post_type_archive
nav menu items.
...
Props celloexpressions, westonruter.
Fixes #16075 .
Built from https://develop.svn.wordpress.org/trunk@35500
git-svn-id: http://core.svn.wordpress.org/trunk@35464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 04:30:26 +00:00
Gary Pendergast
e0cab8383c
Media Library: Allow longer labels in the filter dropdowns.
...
Props aaronrutley, AlbertoCT.
Fixes #32005 .
Built from https://develop.svn.wordpress.org/trunk@35499
git-svn-id: http://core.svn.wordpress.org/trunk@35463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 00:41:24 +00:00
Andrew Ozz
9e436c7e0f
Responsive images:
...
- Fix `_wp_upload_dir_baseurl()` to cache by blog_id.
- Replace `path_join()` with `trailingslashit()`, it's much faster.
- Rename $image_url to $image_src for consistency (used at about 50 other places).
- Couple of tests fixes.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35498
git-svn-id: http://core.svn.wordpress.org/trunk@35462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 00:22:26 +00:00
Sergey Biryukov
a9d6fa9c7a
Formatting: wp_make_link_relative()
should return an empty string if no path is present in the link.
...
Props bcworkz, MikeHansenMe, chriscct7, SergeyBiryukov.
Fixes #26819 .
Built from https://develop.svn.wordpress.org/trunk@35497
git-svn-id: http://core.svn.wordpress.org/trunk@35461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 21:36:25 +00:00
Sergey Biryukov
40a58409d8
Accessibility: After [35130], adjust the h2.nav-tab-wrapper
selector to only override .wrap > h2:first-child
.
...
This improves compatibility with plugins that use navigation tabs as a first H2 heading on their screens.
Props afercia.
Fixes #33559 .
Built from https://develop.svn.wordpress.org/trunk@35496
git-svn-id: http://core.svn.wordpress.org/trunk@35460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 20:49:27 +00:00
Drew Jaynes
6b14ca9407
Docs: Fix two notations for the $_wp_real_parent_file
global, which is an array.
...
Props NExt-Season.
Fixes #34443 .
Built from https://develop.svn.wordpress.org/trunk@35495
git-svn-id: http://core.svn.wordpress.org/trunk@35459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 20:13:26 +00:00
Andrea Fercia
04c2cd1913
Accessibility: Improve buttons focus and links style in the install screens.
...
Fixes #34530 .
Built from https://develop.svn.wordpress.org/trunk@35494
git-svn-id: http://core.svn.wordpress.org/trunk@35458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 17:59:24 +00:00
Andrea Fercia
862cf19772
Media: Improve form fields labels association in the Edit Media screen.
...
Fixes #34548 .
Built from https://develop.svn.wordpress.org/trunk@35493
git-svn-id: http://core.svn.wordpress.org/trunk@35457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 16:02:25 +00:00
Andrea Fercia
d7485cf10b
WP oEmbed: Improve the Sharing dialog accessibility.
...
Improves ARIA attributes, focus handling, and constrains tabbing within the modal dialog.
Fixes #34484 .
Built from https://develop.svn.wordpress.org/trunk@35492
git-svn-id: http://core.svn.wordpress.org/trunk@35456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 15:49:27 +00:00
Andrew Ozz
ea3d7c7962
Responsive images:
...
- More fixes to inline docs.
- Replace the last `wp_get_attachment_metadata()` with `get_post_meta()`.
- For consistency only accept array or named size in `wp_get_attachment_image_sizes()`.
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35491
git-svn-id: http://core.svn.wordpress.org/trunk@35455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 00:19:28 +00:00
Drew Jaynes
64f5e0683a
Docs: Document use of the $comment_status
global in the DocBlock for WP_Comments_List_Table::handle_row_actions()
.
...
Props shimakyohsuke.
Fixes #34425 .
Built from https://develop.svn.wordpress.org/trunk@35490
git-svn-id: http://core.svn.wordpress.org/trunk@35454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 21:33:27 +00:00
Sergey Biryukov
f43a25bbe1
Docs: After [32654], remove duplicate @param
tag in WP_List_Table::set_pagination_args()
DocBlock.
...
Add `@since` tag.
Props bobbingwide.
See #32444 .
Built from https://develop.svn.wordpress.org/trunk@35489
git-svn-id: http://core.svn.wordpress.org/trunk@35453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 21:03:24 +00:00
Sergey Biryukov
a44ee99ca5
Build Tools: Add Microsoft Edge to Autoprefixer options.
...
Props christophherr.
Fixes #34550 .
Built from https://develop.svn.wordpress.org/trunk@35488
git-svn-id: http://core.svn.wordpress.org/trunk@35452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 20:44:27 +00:00
Gary Pendergast
c39ae3e5e2
Upgrades: Add support for FULLTEXT
indexes to dbDelta()
.
...
Props edirect24, mdawaffe, pento.
Fixes #14445 .
Built from https://develop.svn.wordpress.org/trunk@35487
git-svn-id: http://core.svn.wordpress.org/trunk@35451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 23:10:25 +00:00
Weston Ruter
2e98e461a2
Customize: Fix auto-expand (and focus) on newly added widgets.
...
Add widget controls with an initially-true `active` state so that calling `expand()` will not be short-circuited. Previously the `active` state would be set once the preview refreshes, but this happens too late for the `addWidget` call. Fixes regression introduced in [35231].
Fixes #34514 .
Built from https://develop.svn.wordpress.org/trunk@35486
git-svn-id: http://core.svn.wordpress.org/trunk@35450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 22:27:26 +00:00
Drew Jaynes
6924523366
Docs: Correctly notate that the default $width
and $height
embed dimensions are passed to the embed_defaults
filter as a compacted array, and not two distinct parameters.
...
Props swissspidy.
Fixes #34522 .
Built from https://develop.svn.wordpress.org/trunk@35485
git-svn-id: http://core.svn.wordpress.org/trunk@35449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 15:42:25 +00:00
Sergey Biryukov
d49160ba5b
Docs: Correct $post
parameter description for display_post_states
filter.
...
Props grapplerulrich.
Fixes #34541 .
Built from https://develop.svn.wordpress.org/trunk@35484
git-svn-id: http://core.svn.wordpress.org/trunk@35448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 14:06:26 +00:00
Weston Ruter
8fed77574c
Customize: Return user to referring URL when leaving Customizer in absence of return
query param.
...
When referring URL is not available, default returning user to frontend URL instead of admin URL. Themes page is updated to include the `return` path in Customizer links.
Props McGuive7, westonruter.
Fixes #32637 .
Built from https://develop.svn.wordpress.org/trunk@35483
git-svn-id: http://core.svn.wordpress.org/trunk@35447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 06:40:28 +00:00
Sergey Biryukov
10f3ff1753
Post List Table: Hierarchical post types should not default to sorting by date.
...
Regression introduced in [34728].
Props ellie.roepken.
Fixes #34473 . See #25493 .
Built from https://develop.svn.wordpress.org/trunk@35482
git-svn-id: http://core.svn.wordpress.org/trunk@35446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 00:49:24 +00:00
Andrew Ozz
26b6acd081
Responsive images: add $image_url
parameter to wp_get_attachment_image_sizes()
and use it in the filter. This allows themes and plugins to identify the image.
...
Props joemcgill.
Fixes #34477 .
Built from https://develop.svn.wordpress.org/trunk@35481
git-svn-id: http://core.svn.wordpress.org/trunk@35445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 22:49:24 +00:00
Scott Taylor
60eaf79b67
Canonical: when /%post_id%/
is the permalink structure, don't redirect IDs that match Auto Drafts.
...
Props SergeyBiryukov.
Fixes #29431 .
Built from https://develop.svn.wordpress.org/trunk@35480
git-svn-id: http://core.svn.wordpress.org/trunk@35444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:54:25 +00:00
Scott Taylor
d8eacd51d8
Media: add a new image size, medium_large
. Bumps db version to add new options.
...
Adds unit tests.
Props DH-Shredder, joemcgill, azaozz.
Fixes #34196 .
Built from https://develop.svn.wordpress.org/trunk@35479
git-svn-id: http://core.svn.wordpress.org/trunk@35443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:50:25 +00:00
Scott Taylor
382d455235
WP oEmbed: Improve height attribute sanitization
...
Props afercia, swissspidy.
Fixes #34527 .
Built from https://develop.svn.wordpress.org/trunk@35478
git-svn-id: http://core.svn.wordpress.org/trunk@35442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:39:25 +00:00
Scott Taylor
35dd8003b0
Admin Menu: allow more than one menu item to be added at the same priority/position.
...
Props chriscct7.
Fixes #23316 .
Built from https://develop.svn.wordpress.org/trunk@35477
git-svn-id: http://core.svn.wordpress.org/trunk@35441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:31:24 +00:00
Scott Taylor
e4a2e0c4a9
Filesystem: in WP_Filesystem_FTPext::parselisting()
, check for the existence of $b['islink']
before using it.
...
Props jesin.
Fixes #27975 .
Built from https://develop.svn.wordpress.org/trunk@35476
git-svn-id: http://core.svn.wordpress.org/trunk@35440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:17:24 +00:00
Scott Taylor
244cb3e595
Comments: don't auto-close comments on draft posts.
...
Adds unit tests.
Props solarissmoke, MikeHansenMe, nacin, rachelbaker.
Fixes #20262 .
Built from https://develop.svn.wordpress.org/trunk@35475
git-svn-id: http://core.svn.wordpress.org/trunk@35439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:13:24 +00:00
Scott Taylor
a36900c076
REST API: remove the @internal
annotation from rest_api_default_filters()
.
...
Props swissspidy, rachelbaker.
Fixes #34219 .
Built from https://develop.svn.wordpress.org/trunk@35474
git-svn-id: http://core.svn.wordpress.org/trunk@35438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:08:25 +00:00
Scott Taylor
5c57e68d48
Nav Menus: add responsive styles for viewport between 768 and 1000px.
...
Props datta.parad, chriscct7.
Fixes #28912 .
Built from https://develop.svn.wordpress.org/trunk@35473
git-svn-id: http://core.svn.wordpress.org/trunk@35437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:05:26 +00:00
Sergey Biryukov
74969ca0d3
Embeds: In get_post_embed_html()
, move the optional $post
argument after the required $width
and $height
.
...
Props swissspidy.
Fixes #34523 .
Built from https://develop.svn.wordpress.org/trunk@35472
git-svn-id: http://core.svn.wordpress.org/trunk@35436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:51:25 +00:00
Sergey Biryukov
0b845e0364
Embeds: In get_oembed_response_data()
, make the $post
argument required.
...
`get_oembed_response_data()` is called by the API endpoint controller and never in a context where it makes sense to use the global post object.
Props swissspidy.
See #34523 .
Built from https://develop.svn.wordpress.org/trunk@35471
git-svn-id: http://core.svn.wordpress.org/trunk@35435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:42:25 +00:00
Sergey Biryukov
64fdde928a
Embeds: Fix typo in oembed_request_post_id
filter DocBlock.
...
Props swissspidy.
See #34523 .
Built from https://develop.svn.wordpress.org/trunk@35470
git-svn-id: http://core.svn.wordpress.org/trunk@35434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:38:25 +00:00
Andrea Fercia
d5937d6a2c
Dashboard: Activity widget CSS cleanup after [35420].
...
Props tyxla.
Fixes #34524 . See #33558 .
Built from https://develop.svn.wordpress.org/trunk@35469
git-svn-id: http://core.svn.wordpress.org/trunk@35433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 13:49:25 +00:00
Drew Jaynes
e6578e7b4f
Docs: Use 3-digit, x.x.x-style semantic versioning in the DocBlocks for post_form_autocomplete_off()
and WP_Filesystem_SSH2::sftp_path()
.
...
Props aaronrutley.
Fixes #34518 .
Built from https://develop.svn.wordpress.org/trunk@35468
git-svn-id: http://core.svn.wordpress.org/trunk@35432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 13:16:24 +00:00
Gary Pendergast
1b30c48bca
Embeds: Revert [35083], as the PNG files ended up not being used in [35466].
...
See #34204 .
Built from https://develop.svn.wordpress.org/trunk@35467
git-svn-id: http://core.svn.wordpress.org/trunk@35431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 04:42:25 +00:00
Gary Pendergast
21393df10e
Embeds: Add fallbacks for IE7-9.
...
Older IE versions need just that little bit of extra tender care to keep them going.
Props peterwilsoncc, swissspidy, pento.
Fixes #34204 .
Built from https://develop.svn.wordpress.org/trunk@35466
git-svn-id: http://core.svn.wordpress.org/trunk@35430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 04:38:25 +00:00
Andrew Ozz
8edcfabf9c
Responsive images: few more inline docs fixes.
...
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35465
git-svn-id: http://core.svn.wordpress.org/trunk@35429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 23:36:25 +00:00
Andrew Ozz
2021bc0da2
Responsive images:
...
- Merge `wp_image_srcset_attr()` into `wp_calculate_image_srcset()`.
- Remove the `wp_image_srcset` filter.
- Fix the tests for the above changes.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35464
git-svn-id: http://core.svn.wordpress.org/trunk@35428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 23:27:24 +00:00
Andrea Fercia
f014928b44
Media: Restore proper conditional statement broken after [35427].
...
Unprops afercia.
See #34273 .
Built from https://develop.svn.wordpress.org/trunk@35463
git-svn-id: http://core.svn.wordpress.org/trunk@35427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 22:06:24 +00:00
John Blackbourn
37c2054778
Remove trailing whitespace introduced in [35351].
...
Props rachelbaker
Unprops johnbillion
Fixes #34512
Built from https://develop.svn.wordpress.org/trunk@35462
git-svn-id: http://core.svn.wordpress.org/trunk@35426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 21:39:25 +00:00
Helen Hou-Sandí
c69d749c75
View mode is only a screen option for posts lists.
...
see #22222 .
Built from https://develop.svn.wordpress.org/trunk@35461
git-svn-id: http://core.svn.wordpress.org/trunk@35425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 21:03:28 +00:00
John Blackbourn
263b2890d4
Add wp-post-new-reload
to the list of removable query vars so it doesn't persist in the URL.
...
Fixes #34510
Built from https://develop.svn.wordpress.org/trunk@35460
git-svn-id: http://core.svn.wordpress.org/trunk@35424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 18:06:34 +00:00
Andrea Fercia
f1faed4024
Accessibility: Bump the Settings API sections heading one level up.
...
Also, fix a typo in the `do_settings_sections()` DocBlock.
Props neoxx.
Fixes #34492 .
Built from https://develop.svn.wordpress.org/trunk@35459
git-svn-id: http://core.svn.wordpress.org/trunk@35423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 15:30:27 +00:00
Sergey Biryukov
9876e2cccf
Don't use <a>
in translatable strings in theme-compat/sidebar.php
.
...
Add translator comments.
Props ramiy.
Fixes #34503 .
Built from https://develop.svn.wordpress.org/trunk@35458
git-svn-id: http://core.svn.wordpress.org/trunk@35422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:40:26 +00:00
Sergey Biryukov
ba55e98b24
Add translator comments for strings in theme-compat/header.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35457
git-svn-id: http://core.svn.wordpress.org/trunk@35421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:39:25 +00:00
Sergey Biryukov
7b70909232
Add translator comments for strings in theme-compat/footer.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35456
git-svn-id: http://core.svn.wordpress.org/trunk@35420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:38:49 +00:00
Sergey Biryukov
d8f50fef8a
Don't use <a>
in translatable string in theme-compat/comments.php
.
...
Add translator comments.
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35455
git-svn-id: http://core.svn.wordpress.org/trunk@35419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:38:25 +00:00
Sergey Biryukov
c342525d42
Add translator comments for strings in theme-compat/comments-popup.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35454
git-svn-id: http://core.svn.wordpress.org/trunk@35418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:35:24 +00:00
Sergey Biryukov
80fdc4afba
Don't use <a>
in translatable string in wp-includes/ms-load.php
.
...
Add translator commment.
Props ramiy.
Fixes #34506 .
Built from https://develop.svn.wordpress.org/trunk@35453
git-svn-id: http://core.svn.wordpress.org/trunk@35417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 09:16:25 +00:00
Sergey Biryukov
55a7ba2ec7
Don't use <strong>
in translatable string in wp-includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34505 .
Built from https://develop.svn.wordpress.org/trunk@35452
git-svn-id: http://core.svn.wordpress.org/trunk@35416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 08:57:26 +00:00
Sergey Biryukov
1389f731b7
Don't use <strong>
in translatable strings in wp-signup.php
.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
Built from https://develop.svn.wordpress.org/trunk@35451
git-svn-id: http://core.svn.wordpress.org/trunk@35415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 08:52:25 +00:00
Drew Jaynes
8f603650f4
Menus: Prevent display conflicts in the screen options for Menus when a post type and taxonomy share the same slug.
...
Prior to this change, both taxonomies and post types added meta boxes to the Menus UI (which in-turn registered screen options) using the same ID formula: `add-{$id}`. This caused a conflict between the two elements, resulting in the rendering of a screen option for only the taxonomy or post type but not both. Moving to a new meta box ID for post types, `add-post-type-{$id}`, removes that conflict.
Note: This change in meta box IDs for post types effectively resets current user settings for the visibility of post types in the Menus UI.
Fixes #33925 .
Built from https://develop.svn.wordpress.org/trunk@35450
git-svn-id: http://core.svn.wordpress.org/trunk@35414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 05:47:24 +00:00
Drew Jaynes
e6d50be991
Multisite: Restore display of the Toolbar on wp-activate.php while logged-in.
...
Just as with wp-signup.php, display of the Toolbar on wp-activate.php was broken in [23512] due to a hook change for the `_wp_admin_bar_init()` callback. wp-signup.php was fixed in [35423] for #34418 .
See [35423] for more in-depth background and reasoning behind restoring display of the Toolbar on wp-activate.php and wp-signup.php.
Fixes #34496 . See #34418 .
Built from https://develop.svn.wordpress.org/trunk@35449
git-svn-id: http://core.svn.wordpress.org/trunk@35413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 04:24:23 +00:00
Gary Pendergast
cad430161c
Buttons: Add some vendor prefixes missed in [35422].
...
See #31459 .
Built from https://develop.svn.wordpress.org/trunk@35448
git-svn-id: http://core.svn.wordpress.org/trunk@35412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 03:13:25 +00:00
Sergey Biryukov
044901e783
Don't use <strong>
in translatable strings in wp-signup.php
.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
Built from https://develop.svn.wordpress.org/trunk@35447
git-svn-id: http://core.svn.wordpress.org/trunk@35411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 02:09:24 +00:00
John Blackbourn
8cbd79e3dc
Ensure that the scheme used in the URL returned by get_blogaddress_by_id()
always reflects the blog's URL, instead of using http
.
...
Props thomaswm
Fixes #14867
Built from https://develop.svn.wordpress.org/trunk@35446
git-svn-id: http://core.svn.wordpress.org/trunk@35410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 02:02:24 +00:00
Sergey Biryukov
746ba4c9c4
Replace a second instance of <code>
in translatable string left in [35440].
...
Props ramiy.
See #34498 .
Built from https://develop.svn.wordpress.org/trunk@35445
git-svn-id: http://core.svn.wordpress.org/trunk@35409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:56:25 +00:00
Sergey Biryukov
2920285225
Don't use <strong>
in translatable string in wp-admin/includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
Built from https://develop.svn.wordpress.org/trunk@35444
git-svn-id: http://core.svn.wordpress.org/trunk@35408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:37:24 +00:00
Sergey Biryukov
bfbd9e3ec3
Don't use <a>
in translatable strings in `wp-admin/includes/dashboard.php'.
...
Add translator commments.
Props ramiy.
Fixes #34501 .
Built from https://develop.svn.wordpress.org/trunk@35443
git-svn-id: http://core.svn.wordpress.org/trunk@35407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:33:25 +00:00
Sergey Biryukov
a83a250ee0
Don't use <strong>
in translatable string in wp-admin/includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
Built from https://develop.svn.wordpress.org/trunk@35442
git-svn-id: http://core.svn.wordpress.org/trunk@35406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:17:26 +00:00
Sergey Biryukov
87105cdf24
Add <code>
tag missed in [35440].
...
See #34498 .
Built from https://develop.svn.wordpress.org/trunk@35441
git-svn-id: http://core.svn.wordpress.org/trunk@35405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:12:24 +00:00
Sergey Biryukov
58db99b512
Don't use <code>
in translatable strings in wp-admin/includes/class-wp-plugins-list-table.php
.
...
Add translator commments.
Props ramiy.
Fixes #34498 .
Built from https://develop.svn.wordpress.org/trunk@35440
git-svn-id: http://core.svn.wordpress.org/trunk@35404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:08:25 +00:00
Sergey Biryukov
1c21783283
Don't use <code>
in translatable string in wp-admin/includes/media.php
.
...
Add translator commment.
Props ramiy.
Fixes #34499 .
Built from https://develop.svn.wordpress.org/trunk@35439
git-svn-id: http://core.svn.wordpress.org/trunk@35403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 00:58:24 +00:00
Sergey Biryukov
e51f9061c5
Don't use <code>
in translatable strings in options-general.php
.
...
Add translator commments.
Props ramiy.
Fixes #34497 .
Built from https://develop.svn.wordpress.org/trunk@35438
git-svn-id: http://core.svn.wordpress.org/trunk@35402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 00:52:26 +00:00
Gary Pendergast
368e5f9fc3
Embeds: Provide a cached text fallback.
...
Sometimes, embedded sites might suffer from less than 100% uptime. Instead of leaving the embedding site with a big blank space where the embed should be, let's fall back to a link to the embedded post, so there's at least some context for the post.
Fixes #34462 .
Built from https://develop.svn.wordpress.org/trunk@35437
git-svn-id: http://core.svn.wordpress.org/trunk@35401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 23:11:24 +00:00
Gary Pendergast
8be4a22f82
Embeds: Who put this REST API infrastructure in my WordPress?
...
Well, while it's here, we probably should make use of it. The oEmbed endpoint now uses the REST API infrastructure, instead of providing its own.
Props swissspidy.
Fixes #34207 .
Built from https://develop.svn.wordpress.org/trunk@35436
git-svn-id: http://core.svn.wordpress.org/trunk@35400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 22:51:24 +00:00
John Blackbourn
c68c3804fa
Correctly populate the user_id
field for comments when a user submits a comment while logged in.
...
Props imath
Fixes #34493
Built from https://develop.svn.wordpress.org/trunk@35435
git-svn-id: http://core.svn.wordpress.org/trunk@35399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 21:29:24 +00:00
Sergey Biryukov
5d9dc4b8bf
REST API: Use correct version in _doing_it_wrong()
call.
...
Props TobiasBg.
Fixes #34490 .
Built from https://develop.svn.wordpress.org/trunk@35434
git-svn-id: http://core.svn.wordpress.org/trunk@35398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 20:12:24 +00:00
Sergey Biryukov
e7082e31dd
REST API: Add missing translator comments for deprecated function and argument strings.
...
Props akirk.
Fixes #34486 .
Built from https://develop.svn.wordpress.org/trunk@35433
git-svn-id: http://core.svn.wordpress.org/trunk@35397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 19:04:26 +00:00
Sergey Biryukov
a3aaa0f951
Embeds: Include post name in "Continue reading" links to provide a readable link for screenreaders.
...
Props swissspidy.
Fixes #34481 .
Built from https://develop.svn.wordpress.org/trunk@35432
git-svn-id: http://core.svn.wordpress.org/trunk@35396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 13:21:26 +00:00
Sergey Biryukov
1b0bc28579
Rename internal variable in set_transient()
.
...
The previous name was inadvertently changing the dynamic part of `set_transient_{transient}` action and the transient name passed to the action since [35082].
Props GregLone.
Fixes #34470 .
Built from https://develop.svn.wordpress.org/trunk@35431
git-svn-id: http://core.svn.wordpress.org/trunk@35395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:52:28 +00:00
Gary Pendergast
85c273818c
Embeds: Tweak a string added in [35429], and add a translator comment.
...
See #32522 .
Built from https://develop.svn.wordpress.org/trunk@35430
git-svn-id: http://core.svn.wordpress.org/trunk@35394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:42:25 +00:00
Gary Pendergast
59b1c9823a
Embeds: Tweak the "embed not found" message, based on the Twenty Sixteen 404 template.
...
See #32522 .
Built from https://develop.svn.wordpress.org/trunk@35429
git-svn-id: http://core.svn.wordpress.org/trunk@35393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:10:25 +00:00
Gary Pendergast
44fb83dc0b
Shortcodes: Tweak the error messages added in [34745].
...
See #34090 .
Built from https://develop.svn.wordpress.org/trunk@35428
git-svn-id: http://core.svn.wordpress.org/trunk@35392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 10:32:26 +00:00
Andrea Fercia
db8b09c40d
Media: Improve the headings hierarchy in the Media Views for better accessibility.
...
Fixes #34273 .
Built from https://develop.svn.wordpress.org/trunk@35427
git-svn-id: http://core.svn.wordpress.org/trunk@35391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 23:08:24 +00:00
Andrew Ozz
d7da5970fa
Responsive images: add inline docs for private functions.
...
Props swissspidy.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35426
git-svn-id: http://core.svn.wordpress.org/trunk@35390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 21:55:24 +00:00
Scott Taylor
ce23a01aa8
Bump 4.4 Beta 2.
...
Built from https://develop.svn.wordpress.org/trunk@35425
git-svn-id: http://core.svn.wordpress.org/trunk@35389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:48:25 +00:00
Scott Taylor
5f6bdd9d60
4.4-beta2
...
Built from https://develop.svn.wordpress.org/trunk@35424
git-svn-id: http://core.svn.wordpress.org/trunk@35388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:32:24 +00:00
Drew Jaynes
33d9b8e4d0
Multisite: Restore displaying the Toolbar on wp-signup.php while logged-in.
...
Prior to [23512], the Toolbar was still displayed on wp-signup.php while logged-in because it was hooked to the `init` action. When `_wp_admin_bar_init()` was moved to instead fire on `template_redirect` for the front-end and `admin_init` on the back-end, the visibility was lost because `template_redirect` isn't fired on wp-signup.php due to `WP_USE_THEMES` not being defined.
In order to maintain expected display results, a default filter has been added to hook `_wp_admin_bar_init()` to the `before_signup_header` action. This approach has the added benefit of allowing `_wp_admin_bar_init()` to be fired prior to the `wp_head` action where `_admin_bar_bump_cb()` is called (or the callback defined when 'admin-bar' theme support is added).
Fixes #34418 .
Built from https://develop.svn.wordpress.org/trunk@35423
git-svn-id: http://core.svn.wordpress.org/trunk@35387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:30:25 +00:00
Helen Hou-Sandí
68951bd30c
Buttons: Screen Options/Help shouldn't have active styling.
...
see #31459 .
Built from https://develop.svn.wordpress.org/trunk@35422
git-svn-id: http://core.svn.wordpress.org/trunk@35386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:26:24 +00:00
Helen Hou-Sandí
831f3d4105
Buttons: More consistent focus styling.
...
props afercia.
fixes #32915 .
Built from https://develop.svn.wordpress.org/trunk@35421
git-svn-id: http://core.svn.wordpress.org/trunk@35385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:17:27 +00:00
Scott Taylor
fc440ef0f0
Dashboard: cleanup after [35414].
...
Props afercia.
Fixes #33558 .
Built from https://develop.svn.wordpress.org/trunk@35420
git-svn-id: http://core.svn.wordpress.org/trunk@35384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:08:25 +00:00
Andrew Ozz
fd11ef9c45
Responsive images:
...
- Check if wp_get_attachment_metadata() has returned an array to prevent errors when using SVGs.
- Only add the srcset attribute if there will be a sizes attribute.
- Better filter names.
- Some more inline docs fixes.
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35419
git-svn-id: http://core.svn.wordpress.org/trunk@35383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:01:26 +00:00
Scott Taylor
f507751a40
Thickbox: spinner should disappear when loading is done.
...
Props niklasbr, afercia.
Fixes #33311 .
Built from https://develop.svn.wordpress.org/trunk@35418
git-svn-id: http://core.svn.wordpress.org/trunk@35382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:19:26 +00:00
Boone Gorges
91c191f5d7
Don't specify an offset
default in get_posts()
.
...
The default value should be a null offset. A `0` default overrides any value
of `paged` passed to `get_posts()`. See [34697].
Fixes #34060 .
Built from https://develop.svn.wordpress.org/trunk@35417
git-svn-id: http://core.svn.wordpress.org/trunk@35381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:18:24 +00:00
Scott Taylor
70689237f3
Admin Menu: after [34861], prevent adjacent separators.
...
Props johnjamesjacoby.
Fixes #24104 .
Built from https://develop.svn.wordpress.org/trunk@35416
git-svn-id: http://core.svn.wordpress.org/trunk@35380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:06:24 +00:00
Scott Taylor
34a9b6e428
Mail: in wp_notify_postauthor()
and wp_notify_moderator()
, ensure that special chars aren't HTML-encoded in the email message body.
...
Props solarissmoke, leemon.
Fixes #12584 .
Built from https://develop.svn.wordpress.org/trunk@35415
git-svn-id: http://core.svn.wordpress.org/trunk@35379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:03:24 +00:00
Scott Taylor
843d1c003b
Dashboard: make tags used for headings more semantic.
...
Props Cheffheid, afercia.
Fixes #33558 .
Built from https://develop.svn.wordpress.org/trunk@35414
git-svn-id: http://core.svn.wordpress.org/trunk@35378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 17:57:25 +00:00
John Blackbourn
ef6abd3891
List the possible values for the dynamic portion of the {type}_template
hook.
...
See #14310 , #32246
Built from https://develop.svn.wordpress.org/trunk@35413
git-svn-id: http://core.svn.wordpress.org/trunk@35377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 14:06:27 +00:00
Andrew Ozz
61d21cc0d9
Responsive images:
...
- Introduce `wp_calculate_image_srcset()` that replaces `wp_get_attachment_image_srcset_array()` and is used as lower level function for retrieving the srcset data as array.
- Use the new function when generating `srcset` and `sizes` on the front-end. This is faster as no (other) image API functions are used.
- Change the `wp_get_attachment_image_srcset()`. Now it is meant for use in templates and is no longer used in core.
- A few logic fixes and improvements.
- Some names changed to be (hopefully) more descriptive.
- Fixed/updated tests.
Props joemcgill, jaspermdegroot, azaozz.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35412
git-svn-id: http://core.svn.wordpress.org/trunk@35376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 05:41:24 +00:00
Sergey Biryukov
8d0f76bc11
Settings: Don't display Site Address field description if WP_HOME
is defined and the field is disabled.
...
Props dipesh.kakadiya.
Fixes #33354 .
Built from https://develop.svn.wordpress.org/trunk@35411
git-svn-id: http://core.svn.wordpress.org/trunk@35375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 04:54:26 +00:00
Dion Hulse
82d034a386
Update Random_Compat to master.
...
This update mostly concerns OpenSSL being unusable on PHP 5.3~5.3.3.
See #28633 , #34409
Built from https://develop.svn.wordpress.org/trunk@35410
git-svn-id: http://core.svn.wordpress.org/trunk@35374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 01:12:24 +00:00
Dominik Schilling
3def1c5014
Embeds: Provide a site icon via srcset
for HiDPI screens.
...
Fixes #34433 .
Built from https://develop.svn.wordpress.org/trunk@35409
git-svn-id: http://core.svn.wordpress.org/trunk@35373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 21:00:24 +00:00
Dominik Schilling
80116f2136
Embeds: Replace hardcoded error messages with get_status_header_desc( $http_code )
.
...
Fixes #34275 .
Built from https://develop.svn.wordpress.org/trunk@35408
git-svn-id: http://core.svn.wordpress.org/trunk@35372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 20:44:23 +00:00
Drew Jaynes
887dca222c
Docs: Standardize the file header for wp-admin/includes/ms-deprecated.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35407
git-svn-id: http://core.svn.wordpress.org/trunk@35371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 20:08:27 +00:00
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
Scott Taylor
c7b0db99a6
Unit Tests: better fixtures for Tests_Meta_Slashes
and Tests_WP_Customize_Section
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35249
git-svn-id: http://core.svn.wordpress.org/trunk@35215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 21:29:24 +00:00
Scott Taylor
11d1e8af8b
Unit Tests: better fixtures for Tests_User_WpSetCurrentUser
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35248
git-svn-id: http://core.svn.wordpress.org/trunk@35214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 21:19:24 +00:00
Scott Taylor
32bb609d88
Unit Tests: better fixtures for Tests_User
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35247
git-svn-id: http://core.svn.wordpress.org/trunk@35213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 21:15:25 +00:00
Scott Taylor
a9134691d4
Unit Tests: better fixtures for Tests_AdminBar
. Don't force-delete some posts: some filter callbacks are no-ops on Multisite if the post is vanquished.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35246
git-svn-id: http://core.svn.wordpress.org/trunk@35212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 20:49:24 +00:00
Scott Taylor
4204afdd40
Unit Tests: better fixtures for Tests_Admin_Includes_Post
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35245
git-svn-id: http://core.svn.wordpress.org/trunk@35211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 19:48:23 +00:00
Scott Taylor
d54f567862
Unit Tests: WP_UnitTest_Generator_Sequence
needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).
...
While we're at it, remove unnecessary `tearDown()` code.
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35244
git-svn-id: http://core.svn.wordpress.org/trunk@35210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 19:25:24 +00:00
Scott Taylor
7d7c85b83d
Unit Tests: after [35242], declare some missing instance props on individual test classes.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35243
git-svn-id: http://core.svn.wordpress.org/trunk@35209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 18:30:24 +00:00
Scott Taylor
7f8dca02b7
Unit Tests: after [35225], make factory
a method/getter on WP_UnitTestCase
and add magic methods for BC for every plugin that is extending WP_UnitTestCase
and accessing the $factory
instance prop.
...
Props nerrad, wonderboymusic.
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35242
git-svn-id: http://core.svn.wordpress.org/trunk@35208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 18:03:25 +00:00
Drew Jaynes
8a386cb24f
Docs: Add missing file headers to the list table classes and adjust class DocBlocks accordingly.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35241
git-svn-id: http://core.svn.wordpress.org/trunk@35207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 15:13:25 +00:00
Drew Jaynes
767d091c74
Docs: Improve the hook doc for the get_post_status
filter, introduced in [35233].
...
Also adds a missing parameter description for `$post`.
See #23458 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35240
git-svn-id: http://core.svn.wordpress.org/trunk@35206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 14:24:25 +00:00
Ella Iseulde Van Dorpe
08f71faac3
JSHint after [35238]
...
Built from https://develop.svn.wordpress.org/trunk@35239
git-svn-id: http://core.svn.wordpress.org/trunk@35205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 07:11:24 +00:00
Ella Iseulde Van Dorpe
47e364de42
Admin: fix repositioning notices
...
Fixes #34294 .
Props afercia.
Built from https://develop.svn.wordpress.org/trunk@35238
git-svn-id: http://core.svn.wordpress.org/trunk@35204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 07:04:26 +00:00
Drew Jaynes
10d94ea673
Docs: Add a missing file header for wp-admin/includes/class-wp-list-table.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35237
git-svn-id: http://core.svn.wordpress.org/trunk@35203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 06:07:24 +00:00
Weston Ruter
c7a951194d
Customizer: Add unit test for WP_Customize_Widgets::is_panel_active()
.
...
See #33052 .
Built from https://develop.svn.wordpress.org/trunk@35236
git-svn-id: http://core.svn.wordpress.org/trunk@35202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 04:44:25 +00:00
Sergey Biryukov
a908d2d4b1
Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.
...
See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks.
Props swissspidy.
Fixes #34272 .
Built from https://develop.svn.wordpress.org/trunk@35235
git-svn-id: http://core.svn.wordpress.org/trunk@35201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 01:21:25 +00:00
Sergey Biryukov
1157540283
Replace Quick Edit and Bulk Edit headings with <legend>
elements.
...
Props afercia.
Fixes #34289 .
Built from https://develop.svn.wordpress.org/trunk@35234
git-svn-id: http://core.svn.wordpress.org/trunk@35200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 00:45:25 +00:00
Aaron Jorbin
b778726e74
Improve get_post_permalink
compatibility with non standard post status
...
This adds a new filter named `get_post_status` to the function named `get_post_status` which can be used to make additional post types behave like unpublished post status in `get_post_permalink`.
Props misterbisson, antpb, iamfriendly
Fixes #23458
Built from https://develop.svn.wordpress.org/trunk@35233
git-svn-id: http://core.svn.wordpress.org/trunk@35199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 00:44:26 +00:00
Sergey Biryukov
7c2919c02b
Merge two strings for expanding accordion and Customizer sections.
...
Props pavelevap.
Fixes #33939 .
Built from https://develop.svn.wordpress.org/trunk@35232
git-svn-id: http://core.svn.wordpress.org/trunk@35198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 00:28:25 +00:00
Weston Ruter
6bcd8ad757
Customizer: Always show Widgets panel initially if sidebars are registered; show notice to users in panel if no widget areas are in current preview.
...
Widgets panel will not wait to display until the preview loads.
Also fixes problems with `margin-top` in panels where other panels' `active` states change, as well as ensuring sections of deactivated panel collapse before panel is hidden to prevent the pane from becoming empty of controls.
Fixes #33052 .
Fixes #33567 .
Built from https://develop.svn.wordpress.org/trunk@35231
git-svn-id: http://core.svn.wordpress.org/trunk@35197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 23:48:25 +00:00
Sergey Biryukov
5c8522c022
Merge two warning strings.
...
Props pavelevap.
Fixes #29740 .
Built from https://develop.svn.wordpress.org/trunk@35230
git-svn-id: http://core.svn.wordpress.org/trunk@35196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 23:31:25 +00:00
Sergey Biryukov
f98136c1b5
Sample permalink: Improve accessibility of changing the permalink on Edit Post screen.
...
Props afercia.
Fixes #34255 .
Built from https://develop.svn.wordpress.org/trunk@35229
git-svn-id: http://core.svn.wordpress.org/trunk@35195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 23:02:25 +00:00
Sergey Biryukov
ac630ba233
Embeds: In print_oembed_embed_styles()
, load non-minified file if SCRIPT_DEBUG
is true.
...
This is consistent with `print_oembed_embed_scripts()`.
Props MikeHansenMe.
Fixes #34321 .
Built from https://develop.svn.wordpress.org/trunk@35228
git-svn-id: http://core.svn.wordpress.org/trunk@35194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 22:43:24 +00:00
Boone Gorges
4430e5dbbb
Return null
from get_term()
on taxonomy mismatch.
...
[34997] caused `get_term()` to return an error object in the case when
`$taxonomy` did not match the taxonomy of the located term. This was an
inadvertant change from the previous behavior, when `get_term()` would return
null in these cases.
Props dlh.
See #14162 . Fixes #34332 .
Built from https://develop.svn.wordpress.org/trunk@35227
git-svn-id: http://core.svn.wordpress.org/trunk@35193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 21:42:25 +00:00
Scott Taylor
efb224e831
Unit Tests: PHP 5.2, I Hate You and You Are Bringing Me Down.
...
#YOLOFriday
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35226
git-svn-id: http://core.svn.wordpress.org/trunk@35192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 21:15:25 +00:00
Scott Taylor
a2a65a06bd
Unit Tests: one $factory
to rule them all, and it shall be static
.
...
Using more than one instance of `WP_UnitTest_Factory` causes all kinds of craziness, due to out-of-sync internal generator sequences. Since we want to use `setUpBeforeClass`, we were creating ad hoc instances. To avoid that, we were injecting one `static` instance via Dependency Injection in `wpSetUpBeforeClass`. All tests should really use the `static` instance, so we will remove the instance prop `$factory`.
Replace `$this->factory` with `self::$factory` over 2000 times.
Rewrite all of the tests that were hard-coding dynamic values.
#YOLOFriday
Built from https://develop.svn.wordpress.org/trunk@35225
git-svn-id: http://core.svn.wordpress.org/trunk@35191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 21:05:25 +00:00
Scott Taylor
3693228a9b
Unit Tests: since [32953], we can just use self::delete_user()
instead of using if
logic for Multisite.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35224
git-svn-id: http://core.svn.wordpress.org/trunk@35190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 19:52:27 +00:00
Sergey Biryukov
7fdbebdd7d
In WP_Posts_List_Table
, correct the type for $comment_pending_count
.
...
See #11381 .
Built from https://develop.svn.wordpress.org/trunk@35223
git-svn-id: http://core.svn.wordpress.org/trunk@35189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 18:25:25 +00:00
Sergey Biryukov
dcf23c5e2a
In WP_Media_List_Table
, rename $pending_count
to $comment_pending_count
and mark it as protected, for consistency with WP_Posts_List_Table
.
...
See #11381 .
Built from https://develop.svn.wordpress.org/trunk@35222
git-svn-id: http://core.svn.wordpress.org/trunk@35188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 18:23:27 +00:00
Drew Jaynes
1cb39b180f
Docs: Standardize the file header summary for wp-admin/includes/file.php.
...
Also adds an `@since` version and corrects the `@subpackage` value.
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35221
git-svn-id: http://core.svn.wordpress.org/trunk@35187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 16:56:26 +00:00
Andrea Fercia
dc0e7e1a79
Accessibility: Improve headings hierarchy in the Theme browser modal dialog.
...
Fixes #34288 .
Built from https://develop.svn.wordpress.org/trunk@35220
git-svn-id: http://core.svn.wordpress.org/trunk@35186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 15:56:25 +00:00
Andrea Fercia
7f4a0ebbf3
Bump H4 headings to H2 in the Updates screen for better accessibility.
...
Fixes #34265 .
Built from https://develop.svn.wordpress.org/trunk@35219
git-svn-id: http://core.svn.wordpress.org/trunk@35185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 15:45:28 +00:00
Dominik Schilling
0df9abe092
Travis CI: Use a pinned version of the object cache drop-in.
...
Props tollmanz.
See #31491 .
Built from https://develop.svn.wordpress.org/trunk@35218
git-svn-id: http://core.svn.wordpress.org/trunk@35184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 14:16:28 +00:00
Ella Iseulde Van Dorpe
bafdd96ebf
TinyMCE: add lang attribute
...
This is needed to make `hyphens: auto;` work correctly.
Fixes #32555 .
Built from https://develop.svn.wordpress.org/trunk@35217
git-svn-id: http://core.svn.wordpress.org/trunk@35183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 10:11:27 +00:00
Ella Iseulde Van Dorpe
ef01315cac
TinyMCE: make sure markers are removed after first init
...
This is only relevant to non embeddable URLs.
After first init, markers were set but not removed,
causing an edited URL to revert when switching to text mode
or any paragraph after the URL to just contain that URL.
Fixes #33954 .
Built from https://develop.svn.wordpress.org/trunk@35216
git-svn-id: http://core.svn.wordpress.org/trunk@35182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 05:43:26 +00:00
Helen Hou-Sandí
fc02ca2d01
Account for icon alignment using text-indent in RTL.
...
fixes #33808 .
Built from https://develop.svn.wordpress.org/trunk@35215
git-svn-id: http://core.svn.wordpress.org/trunk@35181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 00:58:25 +00:00
Scott Taylor
438c2462e1
Unit Tests: add SpeedTrapListener
to phpunit/includes
and add the config node to phpunit.xml.dist
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35214
git-svn-id: http://core.svn.wordpress.org/trunk@35180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 00:28:23 +00:00
Dominik Schilling
dd753ef3ad
Travis: Extend our test suite with a memcached instance.
...
To test persistent object caching Travis CI runs now a build on PHP 5.6 with memached enabled. The build uses the drop-in from https://github.com/tollmanz/wordpress-pecl-memcached-object-cache which is based on the PECL memcached extension.
Props pento, ocean90.
Fixes #31491 .
Built from https://develop.svn.wordpress.org/trunk@35213
git-svn-id: http://core.svn.wordpress.org/trunk@35179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 22:52:25 +00:00
Dominik Schilling
22874716dd
Multisite: Remove the strictness for $using_paths
in WP_Network::get_by_path()
.
...
The network lookup was broken when using an external object cache because `$using_paths` isn't always a boolean. Added in [34099].
See #31985 , #31491 .
Built from https://develop.svn.wordpress.org/trunk@35212
git-svn-id: http://core.svn.wordpress.org/trunk@35178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 22:07:24 +00:00
Dominik Schilling
272ff97709
Tests: Remove the @runTestsInSeparateProcesses
annotation for Ajax tests.
...
They were added 3 years ago in [846/tests] because tests weren't excluded from the normal runs.
Reverts [35209] because it doesn't work with Xdebug.
`Tests_Ajax_Response::test_response_charset_in_header` is the only test which needs to run in a separate process, see [975/tests].
See #31491 .
Built from https://develop.svn.wordpress.org/trunk@35211
git-svn-id: http://core.svn.wordpress.org/trunk@35177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 21:31:24 +00:00
Drew Jaynes
d4711aff8a
Docs: Fix a typo in an inline comment in wp_get_attachment_image_srcset_array()
.
...
Props neoxx.
Fixes #34319 .
Built from https://develop.svn.wordpress.org/trunk@35210
git-svn-id: http://core.svn.wordpress.org/trunk@35176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 20:52:24 +00:00
Dominik Schilling
bcdad0aa12
Tests: Don't preserve the global state for Ajax tests when using an external object cache.
...
Most of the Ajax tests are running in a separate PHP process, and thus PHPUnit attempts to preserve the global state from the parent process by serializing all globals. But this doesn't work for external object caches so we have to disable this "feature".
See #31491 .
Built from https://develop.svn.wordpress.org/trunk@35209
git-svn-id: http://core.svn.wordpress.org/trunk@35175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 20:35:23 +00:00
Aaron Jorbin
41b21cf23b
Add Twenty Sixteen to travis builds
...
This allows the automated tests to include Twenty Sixteen.
Fixes #34315 . See #34306 .
Built from https://develop.svn.wordpress.org/trunk@35208
git-svn-id: http://core.svn.wordpress.org/trunk@35174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 19:06:25 +00:00
Helen Hou-Sandí
7aabfdaca4
Circular focus styling for widgets and menus in the customizer.
...
see #33808 .
Built from https://develop.svn.wordpress.org/trunk@35207
git-svn-id: http://core.svn.wordpress.org/trunk@35173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 18:53:25 +00:00
Boone Gorges
76a89d95c3
Fix incorrect variable name introduced in [35197].
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35206
git-svn-id: http://core.svn.wordpress.org/trunk@35172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 18:48:24 +00:00
Sergey Biryukov
2d540d0280
In WP::parse_request()
and url_to_postid()
, don't skip objects that have a post status with 'exclude_from_search' => false
, e.g. inherit
.
...
This fixes pretty permalinks for attachments, broken in [35195].
Fixes #21970 .
Built from https://develop.svn.wordpress.org/trunk@35205
git-svn-id: http://core.svn.wordpress.org/trunk@35171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 17:53:24 +00:00
Helen Hou-Sandí
395258bcaa
Make the database update button primary.
...
see #23738 .
Built from https://develop.svn.wordpress.org/trunk@35204
git-svn-id: http://core.svn.wordpress.org/trunk@35170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 17:35:24 +00:00
Sergey Biryukov
de730d605f
Twenty Sixteen: Update Gruntfile.js
to ignore the html5 shiv for JSHint.
...
See #34306 , #34315 .
Built from https://develop.svn.wordpress.org/trunk@35203
git-svn-id: http://core.svn.wordpress.org/trunk@35169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 17:27:24 +00:00
Drew Jaynes
0905e847ae
Docs: Walker_Nav_Menu_Checklist
and Walker_Nav_Menu_Edit
are part of the Navigation Menu API, but intended for use in the scope of administration.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35202
git-svn-id: http://core.svn.wordpress.org/trunk@35168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 17:26:24 +00:00
Helen Hou-Sandí
12290303a8
Box shadows still need -webkit-
, turns out.
...
see #33808 , [35200].
Built from https://develop.svn.wordpress.org/trunk@35201
git-svn-id: http://core.svn.wordpress.org/trunk@35167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 17:09:26 +00:00
Helen Hou-Sandí
50288dea5a
Circular focus styling for expand/collapse arrows.
...
Affects postboxes, widgets, and nav menus, all in the admin.
props grvrulz for the initial patch.
see #33808 .
Built from https://develop.svn.wordpress.org/trunk@35200
git-svn-id: http://core.svn.wordpress.org/trunk@35166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 16:47:25 +00:00
Ella Iseulde Van Dorpe
3eb4a57c27
TinyMCE: make captioned images draggable
...
See #28003 .
Built from https://develop.svn.wordpress.org/trunk@35199
git-svn-id: http://core.svn.wordpress.org/trunk@35165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 15:20:25 +00:00
Ella Iseulde Van Dorpe
3babb1682a
Fix close button plugin modal after [18590]
...
See #18590 .
Built from https://develop.svn.wordpress.org/trunk@35198
git-svn-id: http://core.svn.wordpress.org/trunk@35164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 14:52:26 +00:00
Scott Taylor
9d4069e5d9
Unit Tests: add/upgrade the fixtures in Tests_User_Query
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35197
git-svn-id: http://core.svn.wordpress.org/trunk@35163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 07:29:24 +00:00
Scott Taylor
1603ccad71
Unit Tests: create fewer terms in Tests_Term_getTerms::test_get_terms_parent_zero()
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35196
git-svn-id: http://core.svn.wordpress.org/trunk@35162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 06:53:24 +00:00
Sergey Biryukov
8a6d07f596
In WP::parse_request()
and url_to_postid()
, if a post slug clashes with a trashed page, return the post instead of the page.
...
Props kovshenin, SergeyBiryukov, igmoweb.
Fixes #21970 .
Built from https://develop.svn.wordpress.org/trunk@35195
git-svn-id: http://core.svn.wordpress.org/trunk@35161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 06:49:25 +00:00
Scott Taylor
3bf9aa75a4
Unit Tests: upgrade the fixtures in Tests_Post_Thumbnail_Template
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35194
git-svn-id: http://core.svn.wordpress.org/trunk@35160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 06:40:24 +00:00
Scott Taylor
274d7f5bb0
Unit Tests: upgrade the fixtures in Tests_Post_Revisions
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35193
git-svn-id: http://core.svn.wordpress.org/trunk@35159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 06:32:25 +00:00
Scott Taylor
5b49ff3a48
Unit Tests: in Tests_Comment_Query::test_get_comments_for_post()
, create fewer comments (5, instead of 10).
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35192
git-svn-id: http://core.svn.wordpress.org/trunk@35158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:57:25 +00:00
Scott Taylor
53ef754260
Unit Tests: after [35186], "upgrade" the Canonical fixtures.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35191
git-svn-id: http://core.svn.wordpress.org/trunk@35157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:51:24 +00:00
Sergey Biryukov
8aa7fb88f0
Remove a one-time variable from edit_user()
added in [35189].
...
See #27317 .
Built from https://develop.svn.wordpress.org/trunk@35190
git-svn-id: http://core.svn.wordpress.org/trunk@35156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:46:24 +00:00
Sergey Biryukov
7f08716c16
Users: Add 'illegal_user_logins'
filter to allow certain usernames to be blacklisted.
...
Props danielbachhuber, chriscct7, crazycoolcam, SergeyBiryukov.
Fixes #27317 .
Built from https://develop.svn.wordpress.org/trunk@35189
git-svn-id: http://core.svn.wordpress.org/trunk@35155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:43:26 +00:00
Scott Taylor
b6b2baccbd
Unit Tests: create more fixtures for Tests_User
. When using a factory to create ad hoc users, use the inherited static prop $static_factory
instead of the instance prop, $factory
. If 2 factories are used out of sync, the generator sequences diverge and dupes can be created, causing an untold number of unforeseen errors. Yay.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35188
git-svn-id: http://core.svn.wordpress.org/trunk@35154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:30:25 +00:00
Sergey Biryukov
09ee95ea49
Themes: Add Install Parent Theme button for child themes that are missing a parent theme.
...
Props rabmalin for initial patch.
Fixes #32668 .
Built from https://develop.svn.wordpress.org/trunk@35187
git-svn-id: http://core.svn.wordpress.org/trunk@35153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 05:11:24 +00:00
Scott Taylor
5cebd10ced
Unit Tests: implement setUpBeforeClass()
and tearDownAfterClass()
on WP_UnitTestCase
. Use late static binding (plus a gross fallback for PHP 5.2) to check if wpSetUpBeforeClass()
or wpTearDownAfterClass()
exist on the called class, and then call it and pass a static WP_UnitTest_Factory
instance via Dependency Injection, if it exists.
...
This makes it way easier to add fixtures, and tear them down, without needing to instantiate `WP_UnitTest_Factory` in every class - removes the need to call `commit_transaction()` in each individual class.
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35186
git-svn-id: http://core.svn.wordpress.org/trunk@35152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 04:44:25 +00:00
Scott Taylor
e62864ce46
Unit Tests: in Tests_Term
, create fixtures for posts.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35185
git-svn-id: http://core.svn.wordpress.org/trunk@35151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 03:48:25 +00:00
Sergey Biryukov
e63ba31f93
Acessibility: Add back-compat styles for plugins that use h3
inside the .metabox-holder
container.
...
Props afercia.
Fixes #33557 .
Built from https://develop.svn.wordpress.org/trunk@35184
git-svn-id: http://core.svn.wordpress.org/trunk@35150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 03:38:25 +00:00
Scott Taylor
ad90d33285
Unit Tests: in Tests_Post
, create fixtures for users.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35183
git-svn-id: http://core.svn.wordpress.org/trunk@35149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 03:31:24 +00:00
Helen Hou-Sandí
f3107e5842
Make some primary action buttons look primary.
...
* User deletion/removal
* Site status change (multisite)
* Network upgrade
* Import file upload
* Media browser upload
props Dezzy for the initial patch.
fixes #23738 .
Built from https://develop.svn.wordpress.org/trunk@35182
git-svn-id: http://core.svn.wordpress.org/trunk@35148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 03:08:24 +00:00
Scott Taylor
2c46a4dcba
Unit Tests: in Tests_Media::test_wp_get_attachment_image_srcset_array_no_width()
, just toggle metadata, instead of creating a new attachment. Shaves 75ms off the test.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35181
git-svn-id: http://core.svn.wordpress.org/trunk@35147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 02:55:24 +00:00
Sergey Biryukov
6d91caa931
Theme Editor: Repurpose the 'wp_theme_editor_filetypes'
filter added in [35134] to actually filter file types instead of files.
...
Default types include 'php' and 'css' and cannot be removed, only new types can be added.
Props DrewAPicture, SergeyBiryukov.
Fixes #22924 .
Built from https://develop.svn.wordpress.org/trunk@35180
git-svn-id: http://core.svn.wordpress.org/trunk@35146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 02:20:24 +00:00
Scott Taylor
317d62bfad
Unit Tests: make a fixture in Tests_Media
to represent the large image, instead of creating it 10 times.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35179
git-svn-id: http://core.svn.wordpress.org/trunk@35145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 01:43:24 +00:00
Scott Taylor
60ad26b4fd
Unit Tests: move some oEmbed tests that can trigger HTTP calls to Tests_External_HTTP_OEmbed
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35178
git-svn-id: http://core.svn.wordpress.org/trunk@35144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 01:29:24 +00:00
Scott Taylor
f19e4c9b46
Unit Tests: Tests_Canonical
doesn't need to call wp_set_current_user()
or implement tearDown
because its grandparent calls wp_set_current_user( 0 )
in tearDown()
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35177
git-svn-id: http://core.svn.wordpress.org/trunk@35143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 01:18:24 +00:00
Scott Taylor
972e76991f
Unit Tests: Tests_Comment
needs a tearDownAfterClass
impl to avoid spillage.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35176
git-svn-id: http://core.svn.wordpress.org/trunk@35142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 01:06:24 +00:00
Scott Taylor
083537d213
Unit Tests: Tests_Auth
needs a tearDownAfterClass
impl to avoid spillage.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35175
git-svn-id: http://core.svn.wordpress.org/trunk@35141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 01:04:24 +00:00
Scott Taylor
b7e9b93be3
Unit Tests: call commit_transaction()
in Tests_Auth
set up.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35174
git-svn-id: http://core.svn.wordpress.org/trunk@35140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 00:49:24 +00:00
Scott Taylor
b1a39f1a6a
Unit Tests: reuse fixtures in Tests_Comment
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35173
git-svn-id: http://core.svn.wordpress.org/trunk@35139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 00:39:23 +00:00
Scott Taylor
e9db7c15fd
Unit Tests: move ->test_readme()
out of Tests_Basic
and into Tests_External_HTTP_Basic
in tests/external-http/
.
...
I intend to move other `wp_remote_get()` tests into similar classes.
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35172
git-svn-id: http://core.svn.wordpress.org/trunk@35138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 00:23:24 +00:00
Scott Taylor
351d78fbac
Unit Tests: wrestle performance out of Tests_Auth
by cloning the same user for a majority of the tests.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35171
git-svn-id: http://core.svn.wordpress.org/trunk@35137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 00:11:24 +00:00
Drew Jaynes
217b661703
Docs: Add missing descriptions for the $wpdb
global in DocBlocks all the places.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35170
git-svn-id: http://core.svn.wordpress.org/trunk@35136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 23:44:25 +00:00
Drew Jaynes
43c10f7d35
Docs: Fix third-person singular verbs for summaries in wp-admin/includes/bookmarks.php.
...
Also adds some missing parameter, return, and global descriptions, and one missing summary.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35169
git-svn-id: http://core.svn.wordpress.org/trunk@35135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 23:25:25 +00:00
Drew Jaynes
c78ee60edd
Docs: Standardize file header summary for wp-admin/includes/ajax-actions.php.
...
See #33701 .
[ci skip]
Built from https://develop.svn.wordpress.org/trunk@35168
git-svn-id: http://core.svn.wordpress.org/trunk@35134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 22:49:24 +00:00
Drew Jaynes
c3ee28ea06
Docs: wp-admin/includes/admin-filters.php is part of the Administration subpackage, update the summary.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35167
git-svn-id: http://core.svn.wordpress.org/trunk@35133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 22:35:24 +00:00
Drew Jaynes
2e2e898802
Docs: Add a version and standardize the file header summary for wp-admin/includes/admin.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35166
git-svn-id: http://core.svn.wordpress.org/trunk@35132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 22:32:24 +00:00
Boone Gorges
a53fe085aa
Fix incorrect variable names from [35164].
...
Cool story - the tests appeared to pass with the typos.
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35165
git-svn-id: http://core.svn.wordpress.org/trunk@35131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 22:00:26 +00:00
Boone Gorges
ba37dc9123
Share fixtures in Tests_Admin_includesListTable
tests.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35164
git-svn-id: http://core.svn.wordpress.org/trunk@35130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 21:41:24 +00:00
Boone Gorges
cb8a2f2e47
Share fixtures in Tests_Get_Archives
.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35163
git-svn-id: http://core.svn.wordpress.org/trunk@35129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 21:30:25 +00:00
Boone Gorges
530111994d
Create fewer fixtures in some tests.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35162
git-svn-id: http://core.svn.wordpress.org/trunk@35128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 21:24:24 +00:00
Helen Hou-Sandí
6820130e33
Screen options: Improve the "Apply" button
...
Previously the button was output as a part of the per-page option rendering, inline with that input. While this was appropriate for core's usage, the `screen_settings` filter has allowed plugins to place additional items at the bottom of the panel, which a number take advantage of. This leads to confusing situations where plugins that don't save settings via Ajax either have to add their own button or piggyback onto the existing button, which doesn't make any sense in the flow of additional options. It also hinders core from adding any other options that need to be submitted.
Also, when the screen options panel is open, a submit button there is the primary action at that moment. The "Apply" button also does a full page load, which a primary button indicates better.
fixes #34295 . see #22222 , #23738 .
Built from https://develop.svn.wordpress.org/trunk@35161
git-svn-id: http://core.svn.wordpress.org/trunk@35127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 18:58:25 +00:00
Andrea Fercia
f1787056de
Bump the "Status" H3 heading to H2 on the Edit Comment screen for better accessibility.
...
Fixes #34286 .
Built from https://develop.svn.wordpress.org/trunk@35160
git-svn-id: http://core.svn.wordpress.org/trunk@35126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 17:44:24 +00:00
Jeremy Felt
9dd1462fe3
MS: Introduce action before_signup_header
.
...
This aligns `wp-signup.php` a bit more `with `wp-activate.php` and, among other things, allows a plugin to redirect signup requests.
Props pbearne.
Fixes #17630 .
Built from https://develop.svn.wordpress.org/trunk@35159
git-svn-id: http://core.svn.wordpress.org/trunk@35125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 17:32:49 +00:00
Andrea Fercia
c4ff6317a7
Bump H3 headings to H2 on the legacy Link Manager screen for better accessibility.
...
Fixes #34285 .
Built from https://develop.svn.wordpress.org/trunk@35158
git-svn-id: http://core.svn.wordpress.org/trunk@35124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 17:32:24 +00:00
Drew Jaynes
d01f1c2e15
Docs: Add missing file headers to two Toolbar API files: wp-includes/admin-bar.php and wp-includes/class-wp-admin-bar.php.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35157
git-svn-id: http://core.svn.wordpress.org/trunk@35123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 17:27:25 +00:00
Jeremy Felt
b9b7592ee8
MS: Add "Settings" link under "Network Admin" toolbar menu.
...
Props johnjamesjacoby.
Fixes #34287 .
Built from https://develop.svn.wordpress.org/trunk@35156
git-svn-id: http://core.svn.wordpress.org/trunk@35122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 17:00:26 +00:00
Andrea Fercia
19eb905f58
Accessibility: update a jQuery selector used for the Plugin Cards after [35009].
...
When updating a plugin from its details modal dialog, focus should be moved back to the plugin title which now is a H3 heading.
Fixes #33818 .
Built from https://develop.svn.wordpress.org/trunk@35155
git-svn-id: http://core.svn.wordpress.org/trunk@35121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 15:27:27 +00:00
Boone Gorges
fde30ae8b7
Create fewer fixtures in XML-RPC getComments
tests.
...
See #30017 , #33968 .
Built from https://develop.svn.wordpress.org/trunk@35154
git-svn-id: http://core.svn.wordpress.org/trunk@35120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 14:39:27 +00:00
John Blackbourn
a5cca9c5ff
Reinstate the Link Category admin screen after [34359].
...
See [13216]
Fixes #34284
Built from https://develop.svn.wordpress.org/trunk@35153
git-svn-id: http://core.svn.wordpress.org/trunk@35119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-14 01:51:26 +00:00
John Blackbourn
8dd677a09f
Introduce a language chooser to the site signup process on Multisite.
...
If your Multisite installation is one of the relatively few that allows new sites to be registered, either by existing users or by new visitors to your site, a 'Site Language' dropdown menu will now be presented if your network has additional languages installed. This option defaults to the value of the 'Default Language' setting on the Network Admin Settings screen, and is restricted to currently installed languages.
The languages available in this setting can be controlled via the `signup_get_available_languages` filter. To disable it completely, return an empty array.
Fixes #33844
Props DrewAPicture, johnbillion
Built from https://develop.svn.wordpress.org/trunk@35152
git-svn-id: http://core.svn.wordpress.org/trunk@35118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 23:46:25 +00:00
John Blackbourn
87aa982824
Include network-active plugins and inactive network-only plugins on the Plugins listing screen for individual sites on Multisite.
...
These plugins are only shown to users with the `manage_network_plugins` capability, which is Super Admins by default. This new feature lowers the blood pressure of Super Admins who may browse or search the Plugins listing screen of an individual site, having forgotten that a particular plugin is network-active. Showing inactive network-only plugins here also reduces friction when searching the Plugins listing screen on individual sites.
This change introduces a `show_network_active_plugins` filter which controls whether the network-active plugins and inactive network-only plugins are shown. This can be used to enable this functionality for regular site admininstrators, or, indeed, to disable this functionality for Super Admins.
Fixes #20104
Built from https://develop.svn.wordpress.org/trunk@35151
git-svn-id: http://core.svn.wordpress.org/trunk@35117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 22:12:25 +00:00
Sergey Biryukov
31b40bdbb7
Remove fast_finish: true
from Travis CI configuration for now.
...
Upstream: https://github.com/travis-ci/travis-ci/issues/4928
Built from https://develop.svn.wordpress.org/trunk@35150
git-svn-id: http://core.svn.wordpress.org/trunk@35116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 21:36:24 +00:00
John Blackbourn
537ac4c2ec
Improve the docs for the $expiration
parameter in set_transient()
, set_site_transient()
, and associated filters.
...
See #32246
Built from https://develop.svn.wordpress.org/trunk@35149
git-svn-id: http://core.svn.wordpress.org/trunk@35115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 21:31:25 +00:00
Dominik Schilling
a2a4bdcb9d
Improve [35146] to only skip pluggable function signature tests for wp-includes/cache.php
when an external object cache is in use.
...
See #31491 , #33867 .
Built from https://develop.svn.wordpress.org/trunk@35148
git-svn-id: http://core.svn.wordpress.org/trunk@35114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 20:45:24 +00:00
John Blackbourn
a9f9cca311
Reinstate wp_cache_get()
into the pluggable function tests. The signature tests are now skipped if an external object cache is in use.
...
See #31491
Built from https://develop.svn.wordpress.org/trunk@35147
git-svn-id: http://core.svn.wordpress.org/trunk@35113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 19:33:24 +00:00
John Blackbourn
74167bc09a
Skip the pluggable function signature tests when an external object cache is in use.
...
See #31491
Built from https://develop.svn.wordpress.org/trunk@35146
git-svn-id: http://core.svn.wordpress.org/trunk@35112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 19:31:25 +00:00
John Blackbourn
a13e405b4c
Remove wp_cache_reset()
from the pluggable functions signature tests, as the function is deprecated and no longer used.
...
See #31491 , #33867
Built from https://develop.svn.wordpress.org/trunk@35145
git-svn-id: http://core.svn.wordpress.org/trunk@35111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 19:20:25 +00:00
Drew Jaynes
57e69d4a3f
Upgrader: Introduce a new action hook pre_auto_update
, which fires immediately prior to an auto-update for core, themes, plugins, or translations.
...
Props DavidAnderson, welcher.
Fixes #30441 .
Built from https://develop.svn.wordpress.org/trunk@35144
git-svn-id: http://core.svn.wordpress.org/trunk@35110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 18:58:25 +00:00
Sergey Biryukov
4ef12c7814
Correct the error message displayed on setup when wp-config-sample.php
does not exist.
...
Props bradparbs.
Fixes #23247 .
Built from https://develop.svn.wordpress.org/trunk@35143
git-svn-id: http://core.svn.wordpress.org/trunk@35109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 17:36:25 +00:00
Drew Jaynes
a0bbd154d9
Multisite: Improve two error strings specifying allowed characters in usernames and site names.
...
Also removes two error strings that were likely never being triggered anyway due to the stricter character matching higher up.
Props atomicjack, bjornjohansen, DrewAPicture.
Fixes #33336 .
Built from https://develop.svn.wordpress.org/trunk@35142
git-svn-id: http://core.svn.wordpress.org/trunk@35108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 17:33:24 +00:00
Scott Taylor
55e16aa98a
KSES: have you ever heard of the <bdo>
HTML tag? Same. http://www.w3schools.com/tags/tag_bdo.asp
...
Adds unit test.
Props iandunn.
Fixes #34063 .
Built from https://develop.svn.wordpress.org/trunk@35141
git-svn-id: http://core.svn.wordpress.org/trunk@35106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 17:18:25 +00:00
Scott Taylor
296671abcc
Taxonomy: in wp_list_categories()
, add an arg: separator
, to allow the overriding of <br/>
.
...
Props wojtek.szkutnik.
Fixes #9025 .
Built from https://develop.svn.wordpress.org/trunk@35140
git-svn-id: http://core.svn.wordpress.org/trunk@35105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 17:02:25 +00:00
Scott Taylor
45a0c26091
Taxonomy: get_terms_to_edit()
can also return false
or WP_Error
. Vars using it should be set to empty string when errors are returned to avoid producing fatal errors when used in string operations.
...
Props valendesigns.
Fixes #30472 .
Built from https://develop.svn.wordpress.org/trunk@35139
git-svn-id: http://core.svn.wordpress.org/trunk@35104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-13 16:40:26 +00:00