Sergey Biryukov
ad7bc20cb1
Customizer: Introduce WP_Customize_Control::active() method to determine whether the control is relevant to the current context (i.e. to the current URL being previewed).
...
Control can indicate its active state by a subclass overriding the 'active_callback' method, by supplying a callable 'active_callback' argument into the control's constructor, or by filtering 'customize_control_active'.
props westonruter.
see #27993 .
Built from https://develop.svn.wordpress.org/trunk@29051
git-svn-id: http://core.svn.wordpress.org/trunk@28839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 23:58:16 +00:00
Andrew Ozz
1c55723a16
Fix whitespace, quotes and double patch content in wpautoresize plugin, see #28328
...
Built from https://develop.svn.wordpress.org/trunk@29050
git-svn-id: http://core.svn.wordpress.org/trunk@28838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 22:43:14 +00:00
Andrew Ozz
5e4a020ff8
Enhance the editor on the Add/Edit Post screens, first run. Props avril, see #28328 .
...
Built from https://develop.svn.wordpress.org/trunk@29049
git-svn-id: http://core.svn.wordpress.org/trunk@28837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 22:06:15 +00:00
Helen Hou-Sandí
a180b44763
Display plugin install results as "cards" rather than in a list table, first run.
...
props stephdau, ryelle, tellyworth, melchoyce. see #28785 , #28646 .
Built from https://develop.svn.wordpress.org/trunk@29047
git-svn-id: http://core.svn.wordpress.org/trunk@28835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 20:02:14 +00:00
John Blackbourn
52aa3a5112
Revert [29033] pending further discussion. See #28319 .
...
Built from https://develop.svn.wordpress.org/trunk@29046
git-svn-id: http://core.svn.wordpress.org/trunk@28834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 19:19:14 +00:00
Andrew Nacin
ba59fac708
WP_Comment_Query: Add fields => 'ids' query var.
...
props mordauk.
fixes #28434 .
Built from https://develop.svn.wordpress.org/trunk@29045
git-svn-id: http://core.svn.wordpress.org/trunk@28833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 18:16:15 +00:00
Scott Taylor
ef436cb6e0
Revert [28563]. See #18298 .
...
Built from https://develop.svn.wordpress.org/trunk@29044
git-svn-id: http://core.svn.wordpress.org/trunk@28832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 18:07:16 +00:00
John Blackbourn
2ce53ede8e
Persist the "Remember Me" state of the auth cookie when changing your own password. Props jesin. Fixes #27627 .
...
Built from https://develop.svn.wordpress.org/trunk@29043
git-svn-id: http://core.svn.wordpress.org/trunk@28831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 18:05:15 +00:00
John Blackbourn
5a43586db1
Add support for a full path parameter to is_page()
and is_single()
. Props Jesper800, engelen, johnbillion. Fixes #16802 .
...
Built from https://develop.svn.wordpress.org/trunk@29039
git-svn-id: http://core.svn.wordpress.org/trunk@28827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-09 16:04:16 +00:00
Andrew Ozz
2f4b08860b
TinyMCE wpView: remove leftover/unused bits, see #28567 .
...
Built from https://develop.svn.wordpress.org/trunk@29038
git-svn-id: http://core.svn.wordpress.org/trunk@28826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 22:56:14 +00:00
Helen Hou-Sandí
3575612966
Customizer panels:
...
* Close all accordion sections when going in and out of panels.
* Fix panel positioning when top-level Customizer controls are scrolled down.
* Keyboard accessibility: only focus on visible elements and transfer between them as needed when navigating around panels.
props celloexpressions. see #27406 .
Built from https://develop.svn.wordpress.org/trunk@29035
git-svn-id: http://core.svn.wordpress.org/trunk@28823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 20:19:15 +00:00
John Blackbourn
1e681c1421
Add a create_wp_error
action which is called when a WP_Error
instance is created. Fixes #28319 . Props ebinnion
...
Built from https://develop.svn.wordpress.org/trunk@29033
git-svn-id: http://core.svn.wordpress.org/trunk@28821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 18:47:15 +00:00
Scott Taylor
57dbc55e6e
When setting the poster image for a video shortcode, set that image as the featured image for that attachment (if found) in the background. This AJAX functionality could be used for audio as well.
...
Introduces `attachment_url_to_postid()` to attempt to turn URLs into post IDs.
Fixes #27891 .
Built from https://develop.svn.wordpress.org/trunk@29029
git-svn-id: http://core.svn.wordpress.org/trunk@28817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 17:48:17 +00:00
Sergey Biryukov
0b921efe38
Use wp_hash() instead of AUTH_KEY in WP_Customize_Widgets::get_instance_hash_key().
...
props juliobox.
fixes #28783 .
Built from https://develop.svn.wordpress.org/trunk@29028
git-svn-id: http://core.svn.wordpress.org/trunk@28816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 17:17:14 +00:00
Scott Taylor
dc7c246da3
Allow an array()
to be passed as the value for orderby
to WP_Query
. Allows for an independent order
value for each key.
...
Example: `'orderby' => array( 'title' => 'DESC', 'menu_order' => 'ASC' )`.
Adds docs and unit tests.
Props wonderboymusic, johnbillion, DrewAPicture, dd32, andy.
See #17065 .
Built from https://develop.svn.wordpress.org/trunk@29027
git-svn-id: http://core.svn.wordpress.org/trunk@28815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 17:16:15 +00:00
Helen Hou-Sandí
b6d3c0841e
Prompt the user before leaving the Customizer if they have unsaved changes. props westonruter. fixes #25439 .
...
Built from https://develop.svn.wordpress.org/trunk@29025
git-svn-id: http://core.svn.wordpress.org/trunk@28813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 17:04:15 +00:00
John Blackbourn
32224314a5
Pass the post object rather than the post ID between the post permalink functions. Fixes #28425 . Props arnee
...
Built from https://develop.svn.wordpress.org/trunk@29024
git-svn-id: http://core.svn.wordpress.org/trunk@28812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 15:48:17 +00:00
Andrew Ozz
f44553d78c
Pre-commit autoprefixer fixes for media-views.css
...
Built from https://develop.svn.wordpress.org/trunk@29023
git-svn-id: http://core.svn.wordpress.org/trunk@28811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 04:30:15 +00:00
Andrew Ozz
00ff787a86
TinyMCE wpView:
...
- Improve the fake caret hide/show.
- Improve getView() speed.
- Add callback for showing the proper path when a view is selected. This currently doesn't work, will start working after we update TinyMCE.
props avryl, see #28567 , #28595 .
Built from https://develop.svn.wordpress.org/trunk@29022
git-svn-id: http://core.svn.wordpress.org/trunk@28810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 04:15:14 +00:00
John Blackbourn
64f686b4c8
Focus and blur styling (via JS) for the install screen language selector. Props jorbin. See #28577
...
Built from https://develop.svn.wordpress.org/trunk@29020
git-svn-id: http://core.svn.wordpress.org/trunk@28808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-08 00:30:14 +00:00
Andrew Ozz
93170e58fa
TinyMCE wpView:
...
- Add loadingPlaceholder() that returns some html to use as placeholder while the view is loading. Includes a subtle CSS based loading animation.
- Fix setContent(), it should empty the element before appending the new node.
- Change getHtml() to always return a string.
Fixes #28761 .
Built from https://develop.svn.wordpress.org/trunk@29019
git-svn-id: http://core.svn.wordpress.org/trunk@28807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 22:41:15 +00:00
Helen Hou-Sandí
d7abad48e0
Remove some unnecessary empty space in the media library grid view. props adamsilverstein. see #24716 .
...
Built from https://develop.svn.wordpress.org/trunk@29017
git-svn-id: http://core.svn.wordpress.org/trunk@28805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 20:30:16 +00:00
Drew Jaynes
9ef7c41a15
Inline docs syntax fixes following [28978].
...
See #28740 .
Built from https://develop.svn.wordpress.org/trunk@29015
git-svn-id: http://core.svn.wordpress.org/trunk@28803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 16:42:16 +00:00
Sergey Biryukov
c321e40016
Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed.
...
props solarissmoke, wonderboymusic, DrewAPicture.
fixes #19017 .
Built from https://develop.svn.wordpress.org/trunk@29014
git-svn-id: http://core.svn.wordpress.org/trunk@28802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 10:18:15 +00:00
Drew Jaynes
f5b5b89e66
Fix inconsistent language in two function descriptions in wp-includes/functions.php.
...
Also adds correct coding standards to a code sample in `_deprecated_argument()`.
Props TobiasBg.
Fixes #26185 .
Built from https://develop.svn.wordpress.org/trunk@29013
git-svn-id: http://core.svn.wordpress.org/trunk@28801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 07:08:15 +00:00
Drew Jaynes
b8750d5bb6
Add phpDoc blocks for two WP_oEmbed
methods added in [28846].
...
Fixes #28284 .
Built from https://develop.svn.wordpress.org/trunk@29012
git-svn-id: http://core.svn.wordpress.org/trunk@28800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 06:34:14 +00:00
Drew Jaynes
9f8ddaa627
General inline documentation improvements in wp-includes/functions.php.
...
Final run. Fixes #26185 .
Built from https://develop.svn.wordpress.org/trunk@29011
git-svn-id: http://core.svn.wordpress.org/trunk@28799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 06:19:14 +00:00
Andrew Ozz
bf9908b37f
TinyMCE wpView:
...
- When a view is selected, pressing the up or down arrow key should move the caret to the block above or below the view.
- Selecting some text that touches the view and deleting it should not remove part of the view.
- Show/hide the "fake" carets on editor focus/blur.
- Don't create new paragraphs before or after a view on pressing the arrow keys or delete key. Paragraphs are created on pressing Enter.
Props avryl, see #28595 .
Built from https://develop.svn.wordpress.org/trunk@29010
git-svn-id: http://core.svn.wordpress.org/trunk@28798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 01:21:15 +00:00
Sergey Biryukov
4a11203b06
Clarify a string on Add New User screen.
...
props vancoder, collinsinternet.
fixes #27398 .
Built from https://develop.svn.wordpress.org/trunk@29009
git-svn-id: http://core.svn.wordpress.org/trunk@28797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 00:54:14 +00:00
Sergey Biryukov
8d358a16c3
Exclude a newline between delimeters from further checks in wptexturize() for better performance.
...
props miqrogroove.
fixes #28724 .
Built from https://develop.svn.wordpress.org/trunk@29008
git-svn-id: http://core.svn.wordpress.org/trunk@28796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-06 08:50:18 +00:00
Andrew Nacin
4e2f1bd155
Introduce wp_dropdown_languages() and use it on general settings.
...
Early rough cut. Obviously not fully implemented.
see #15677 .
Built from https://develop.svn.wordpress.org/trunk@29007
git-svn-id: http://core.svn.wordpress.org/trunk@28795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-05 06:19:16 +00:00
Andrew Ozz
e4fb3e7695
Remove debug remnants, see #28595
...
Built from https://develop.svn.wordpress.org/trunk@29004
git-svn-id: http://core.svn.wordpress.org/trunk@28792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-05 00:25:14 +00:00
Sergey Biryukov
2550fb200a
Add 'status-sticky' class in get_post_class() for sticky posts in the admin.
...
props mordauk, netweb.
fixes #22590 .
Built from https://develop.svn.wordpress.org/trunk@29003
git-svn-id: http://core.svn.wordpress.org/trunk@28791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-05 00:13:14 +00:00
Sergey Biryukov
6827624501
Fix alignment of Advanced Options close toggle arrow in Edit Media dialog.
...
props paulwilde.
fixes #28752 .
Built from https://develop.svn.wordpress.org/trunk@29001
git-svn-id: http://core.svn.wordpress.org/trunk@28789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 23:38:15 +00:00
Sergey Biryukov
9587c27aab
Fix a regression of positioning in Attachment Display Settings.
...
props paulwilde.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@29000
git-svn-id: http://core.svn.wordpress.org/trunk@28788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 23:29:16 +00:00
Sergey Biryukov
7197468003
Add is_customize_preview(), a conditional function to check if the site is being previewed in the Customizer.
...
props sammybeats, mattwiebe.
fixes #23509 .
Built from https://develop.svn.wordpress.org/trunk@28999
git-svn-id: http://core.svn.wordpress.org/trunk@28787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 16:17:15 +00:00
Scott Taylor
53bd731570
Media Grid: JSHint fixes.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28998
git-svn-id: http://core.svn.wordpress.org/trunk@28786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 05:14:15 +00:00
Scott Taylor
6b377e12a0
Media Grid: Use the proper attachment value for uploadedToTitle
.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28997
git-svn-id: http://core.svn.wordpress.org/trunk@28785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 05:04:15 +00:00
Scott Taylor
2938a50a28
Media Grid: for audio and video files with covers, show that instead of the icon. The filename is still present with the extension to identify the type.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28996
git-svn-id: http://core.svn.wordpress.org/trunk@28784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 05:00:14 +00:00
Scott Taylor
9a1ac73c34
Make media grid text fields (data) toggle-able. Checking/unchecking is saved in user settings cookie.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28995
git-svn-id: http://core.svn.wordpress.org/trunk@28783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 04:48:15 +00:00
Andrew Ozz
fb559a8095
TinyMCE: improve the way wpViews work. Add two paragraphs and capture the caret in them on clicking before/after/left/right of a view or moving the caret with the arrow keys, then show a "fake" caret.
...
This makes it much more "natural" to move the caret with the arrow keys and to add paragraphs before a view when it is the first element or after a view when it's last.
Props avryl, see #28595 .
Built from https://develop.svn.wordpress.org/trunk@28994
git-svn-id: http://core.svn.wordpress.org/trunk@28782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 03:59:15 +00:00
Helen Hou-Sandí
63f9cbd02a
Media grid, round 2. Expect much more to come.
...
* Instead of a sidebar for details, utilize a modal. The modal experience allows for a larger preview, editing images, audio/video previews, and previous/next navigation, like the theme browser. Think of it as an attachment browser.
* Show some details in the grid view to more easily distinguish items.
props ericlewis, wonderboymusic, JerrySarcastic. see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28993
git-svn-id: http://core.svn.wordpress.org/trunk@28781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 03:39:15 +00:00
Scott Taylor
0546378ce8
Make a new file: media-grid.js
. This will be way more useful in later commits and help reduce churn and bloat in media-views.js
.
...
See #24716 .
Built from https://develop.svn.wordpress.org/trunk@28992
git-svn-id: http://core.svn.wordpress.org/trunk@28780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 02:18:14 +00:00
Scott Taylor
1637dbe164
The MCE view for galleries needs to read wp.media.galleryDefaults.columns
after [28990].
...
See #28693 .
Built from https://develop.svn.wordpress.org/trunk@28991
git-svn-id: http://core.svn.wordpress.org/trunk@28779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 02:06:14 +00:00
Scott Taylor
1571d3c47c
Allow users to override default gallery settings in JS via wp_localize_script()
. This is already possible in PHP by filtering shortcode_atts_gallery
.
...
Fixes #28693 .
Built from https://develop.svn.wordpress.org/trunk@28990
git-svn-id: http://core.svn.wordpress.org/trunk@28778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 02:03:14 +00:00
Scott Taylor
0510e0e589
Add more docs for media.view.MediaFrame.Select
methods.
...
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28989
git-svn-id: http://core.svn.wordpress.org/trunk@28777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 01:43:17 +00:00
Scott Taylor
9d123aa326
WP_Query::parse_tax_query()
has always been documented as protected
. Plugins should never have used it. However, it did not have a protected
access modifier, so its visibility was public
by default. If the access modifier had been present, accessing the method in a plugin would have produced a fatal error. The access modifier was added in [28523], along with magic methods to allow it to be accessed for BC. This one method is problematic because it expects to be passed a reference. The WP_Query::__call()
logic does not go out of its way to fix this signature discrepancy, and so a warning is thrown: Parameter 1 to WP_Query::parse_tax_query() expected to be a reference, value given
.
...
Remove the `protected` access modifier from `WP_Query::parse_tax_query()`.
Fixes #28739 .
Built from https://develop.svn.wordpress.org/trunk@28987
git-svn-id: http://core.svn.wordpress.org/trunk@28776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 01:29:14 +00:00
Scott Taylor
5eb23f8e3c
Optimize regexp usage in wptexturize()
for a "3x Performance Boost."
...
Props miqrogroove.
See #28724 .
Built from https://develop.svn.wordpress.org/trunk@28986
git-svn-id: http://core.svn.wordpress.org/trunk@28775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 01:15:15 +00:00
Scott Taylor
9181f36b7e
Add IE11 to the browser whitelist for MediaElement-based MCE views.
...
Props azaozz.
Fixes #28742 .
Built from https://develop.svn.wordpress.org/trunk@28985
git-svn-id: http://core.svn.wordpress.org/trunk@28774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-04 01:10:15 +00:00
Helen Hou-Sandí
2f399f18b7
Remove a toolbar CSS hack for a Chrome bug that no longer appears to exist. props avryl. fixes #28606 . see #18868 .
...
Built from https://develop.svn.wordpress.org/trunk@28981
git-svn-id: http://core.svn.wordpress.org/trunk@28770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 20:20:15 +00:00
Helen Hou-Sandí
fee65bacd7
Don't escape customizer control descriptions, just as section descriptions are not escaped. These are set programmatically, not via user input. props tollmanz. fixes #27981 .
...
Built from https://develop.svn.wordpress.org/trunk@28980
git-svn-id: http://core.svn.wordpress.org/trunk@28769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 20:11:15 +00:00
Andrew Nacin
b35982cbff
Simplify the setup-config.php UI flow and load process.
...
When no configuration file is detected, we now redirect to setup-config.php. This process now uses the WordPress bootstrap, rather than a set of fragile hacks.
fixes #28740 .
Built from https://develop.svn.wordpress.org/trunk@28978
git-svn-id: http://core.svn.wordpress.org/trunk@28767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 19:57:14 +00:00
Drew Jaynes
6623df8b1f
Clarify the inline documentation for plugins_url()
to reflect that it also works with mu-plugins.
...
Props ericlewis.
See #28499 .
Built from https://develop.svn.wordpress.org/trunk@28977
git-svn-id: http://core.svn.wordpress.org/trunk@28766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 19:42:15 +00:00
Drew Jaynes
d4dd02b4ae
Remove backticks on $post
variables in some short parameter descriptions.
...
See [28653], [28654].
See #28388 .
Built from https://develop.svn.wordpress.org/trunk@28976
git-svn-id: http://core.svn.wordpress.org/trunk@28765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 19:28:14 +00:00
John Blackbourn
fd2d2ebb2e
Correct typo in sanitize_html_class()
docblock.
...
Built from https://develop.svn.wordpress.org/trunk@28973
git-svn-id: http://core.svn.wordpress.org/trunk@28762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 16:58:16 +00:00
Helen Hou-Sandí
5f6b531f70
Improve oEmbed caching. Introduces the concept of a TTL for oEmbed caches and a filter for oembed_ttl
.
...
We will no longer replace previously valid oEmbed responses with an `{{unknown}}` cache value. When this happens due to reaching a rate limit or a service going down, it is data loss, and is not acceptable. This means that oEmbed caches for a post are no longer deleted indiscriminately every time that post is saved.
oEmbed continues to be cached in post meta, with the addition of a separate meta key containing the timestamp of the last retrieval, which is used to avoid re-requesting a recently cached oEmbed response. By default, we consider a valued cached in the past day to be fresh. This can greatly reduce the number of outbound requests, especially in cases where a post containing multiple embeds is saved frequently.
The TTL used to determine whether or not to request a response can be filtered using `oembed_ttl`, thus allowing for the possibility of respecting the optional oEmbed response parameter `cache_age` or altering the period of time a cached value is considered to be fresh.
Now that oEmbeds are previewed in the visual editor as well as the media modal, oEmbed caches are often populated before a post is saved or published. By pre-populating and avoiding having to re-request that response, we also greatly reduce the chances of a stampede happening when a published post is visible before oEmbed caching is complete.
As it previously stood, a stampede was extremely likely to happen, as the AJAX caching was only triggered when `$_GET['message']` was 1. The published message is 6. We now trigger the caching every time `$_GET['message']` is present on the edit screen, as we are able to avoid triggering so many HTTP requests overall.
props markjaquith. fixes #14759 . see #17210 .
Built from https://develop.svn.wordpress.org/trunk@28972
git-svn-id: http://core.svn.wordpress.org/trunk@28761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 16:45:14 +00:00
Sergey Biryukov
c6c1f56d60
Fix texturization of quotes when enclosed by angle brackets.
...
props miqrogroove.
fixes #28718 .
Built from https://develop.svn.wordpress.org/trunk@28971
git-svn-id: http://core.svn.wordpress.org/trunk@28760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 16:22:14 +00:00
Sergey Biryukov
2f344b9d3c
Prevent sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead.
...
props westonruter.
fixes #27992 .
Built from https://develop.svn.wordpress.org/trunk@28970
git-svn-id: http://core.svn.wordpress.org/trunk@28759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 16:10:15 +00:00
Sergey Biryukov
4e75d406ec
Pass $post object to 'preview_post_link' filter.
...
props danielbachhuber.
fixes #28729 .
Built from https://develop.svn.wordpress.org/trunk@28969
git-svn-id: http://core.svn.wordpress.org/trunk@28758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 14:42:15 +00:00
Scott Taylor
ece86c380b
Make sure hundreds of canonical tests don't fail in multisite every other time they are run.
...
See #28706 .
Built from https://develop.svn.wordpress.org/trunk@28964
git-svn-id: http://core.svn.wordpress.org/trunk@28757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 00:50:14 +00:00
John Blackbourn
b8bd46c406
Prepend "Draft:" to draft post titles when previewing on the front end, and add a "single-status-$status" class to the body classes for all post statuses. Fixes #28006 . Props hlashbrooke
...
Built from https://develop.svn.wordpress.org/trunk@28963
git-svn-id: http://core.svn.wordpress.org/trunk@28756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 22:53:14 +00:00
Sergey Biryukov
428a83259e
Avoing a PHP warning in media modal if the attached file does not exist.
...
props kovshenin.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28959
git-svn-id: http://core.svn.wordpress.org/trunk@28755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 14:37:15 +00:00
Sergey Biryukov
f84ef60b52
Canonical redirects should only be applied for GET requests.
...
props c.axelsson.
fixes #27498 .
Built from https://develop.svn.wordpress.org/trunk@28958
git-svn-id: http://core.svn.wordpress.org/trunk@28754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 14:11:14 +00:00
Sergey Biryukov
19a3159082
Make default 'template' argument of the_taxonomies() and get_the_taxonomies() translatable.
...
props juliobox.
fixes #28714 .
Built from https://develop.svn.wordpress.org/trunk@28957
git-svn-id: http://core.svn.wordpress.org/trunk@28753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 13:21:16 +00:00
Drew Jaynes
6dd339f215
Specify the $single
parameter default for get_post_meta()
. Docs spacing.
...
See #28708 .
Built from https://develop.svn.wordpress.org/trunk@28955
git-svn-id: http://core.svn.wordpress.org/trunk@28751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 03:30:14 +00:00
Sergey Biryukov
81103f482a
Mark $single parameter of get_post_meta() as optional.
...
props netweb.
fixes #28708 .
Built from https://develop.svn.wordpress.org/trunk@28954
git-svn-id: http://core.svn.wordpress.org/trunk@28750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 03:26:16 +00:00
Drew Jaynes
52fbb3c484
Fix parameter description for $append
in wp_set_object_terms()
inline docs.
...
See #26570 .
Built from https://develop.svn.wordpress.org/trunk@28952
git-svn-id: http://core.svn.wordpress.org/trunk@28749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 01:39:15 +00:00
Sergey Biryukov
1b23dd8f05
Clarify the docs and add more unit tests for wp_set_object_terms().
...
props DrewAPicture.
fixes #26570 .
Built from https://develop.svn.wordpress.org/trunk@28951
git-svn-id: http://core.svn.wordpress.org/trunk@28748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 01:28:15 +00:00
Drew Jaynes
41b7269f16
Remove duplicate of the 'oembed_providers' filter accidentally introduced in [28949].
...
Move annoted table of oEmbed providers into the existing filter docs.
See #28507 .
Fixes #28372 .
Built from https://develop.svn.wordpress.org/trunk@28950
git-svn-id: http://core.svn.wordpress.org/trunk@28747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:34:15 +00:00
Drew Jaynes
e618b986bf
Introduce an annotated list of oEmbed providers, their flavors, whether they support SSL, and when they were added to the oembed_providers
filter docs.
...
See #28507 .
Fixes #28372 .
Built from https://develop.svn.wordpress.org/trunk@28949
git-svn-id: http://core.svn.wordpress.org/trunk@28746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:19:15 +00:00
Sergey Biryukov
fc24029d65
Simplify logic in get_sample_permalink_html(), remove duplicated code.
...
see #28350 .
Built from https://develop.svn.wordpress.org/trunk@28947
git-svn-id: http://core.svn.wordpress.org/trunk@28744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:04:15 +00:00
Sergey Biryukov
63a875ce80
Use correct variable.
...
props azaozz.
see #24472 .
Built from https://develop.svn.wordpress.org/trunk@28945
git-svn-id: http://core.svn.wordpress.org/trunk@28742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 23:30:15 +00:00
Sergey Biryukov
63b1667a01
Add a filter for wp_editor() settings.
...
props DH-Shredder, JPry, DrewAPicture.
fixes #24472 .
Built from https://develop.svn.wordpress.org/trunk@28944
git-svn-id: http://core.svn.wordpress.org/trunk@28741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 23:03:15 +00:00
Sergey Biryukov
788597141a
Make wp_kses_no_null() remove any invalid control characters in a string.
...
props mauteri, miqrogroove.
fixes #28506 .
Built from https://develop.svn.wordpress.org/trunk@28942
git-svn-id: http://core.svn.wordpress.org/trunk@28740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 18:01:17 +00:00
Sergey Biryukov
177fe21194
Asterisk is an allowed character in a URI and should not be stripped out by wp_sanitize_redirect().
...
fixes #28362 .
Built from https://develop.svn.wordpress.org/trunk@28939
git-svn-id: http://core.svn.wordpress.org/trunk@28737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 15:56:15 +00:00
Sergey Biryukov
575425ffbe
Add @since for get_translations_for_domain().
...
props DrewAPicture.
see #28690 .
Built from https://develop.svn.wordpress.org/trunk@28938
git-svn-id: http://core.svn.wordpress.org/trunk@28736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 15:29:13 +00:00
Sergey Biryukov
440c78d405
Some fixes for get_weekstartend() docs.
...
see #26185 .
Built from https://develop.svn.wordpress.org/trunk@28937
git-svn-id: http://core.svn.wordpress.org/trunk@28735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 14:59:15 +00:00
Drew Jaynes
300c53e6fe
General inline documentation improvements in wp-includes/functions.php.
...
Second run. See #26185 .
Built from https://develop.svn.wordpress.org/trunk@28936
git-svn-id: http://core.svn.wordpress.org/trunk@28734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 01:44:15 +00:00
Sergey Biryukov
7e226aaa70
WP_Date_Query: The inclusive logic should include all times within the date range.
...
props mboynes, oso96_2000, DrewAPicture.
fixes #26653 .
Built from https://develop.svn.wordpress.org/trunk@28935
git-svn-id: http://core.svn.wordpress.org/trunk@28733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-01 01:18:15 +00:00
Sergey Biryukov
7a47b7585d
Move ms-load.php and ms-default-constants.php inclusion back to ms-settings.php to avoid breaking WP-CLI.
...
Use require_once() to allow for ms-settings.php to be included multiple times while testing.
props jeremyfelt.
see #27884 .
Built from https://develop.svn.wordpress.org/trunk@28934
git-svn-id: http://core.svn.wordpress.org/trunk@28732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 23:50:15 +00:00
Sergey Biryukov
f7703c03d3
Remove free-spacing modifier and extra spaces from wp_extract_urls() pattern.
...
fixes #28222 .
Built from https://develop.svn.wordpress.org/trunk@28933
git-svn-id: http://core.svn.wordpress.org/trunk@28731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 23:09:16 +00:00
Andrew Ozz
99c9ef1a59
TinyMCE:
...
- Update the 'paste' plugin including cb36a78e54
- Better filtering of WebKit inserted  .
- Remove empty paragraphs and all inline styles on pasting but preserve styles added in the editor. This brings back the WP 3.8 behavior and makes pasting in all browsers work the same.
See #28016
Built from https://develop.svn.wordpress.org/trunk@28932
git-svn-id: http://core.svn.wordpress.org/trunk@28730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 21:55:18 +00:00
Dominik Schilling
958ab24709
Customizer: Support textarea
and commonly-used input types as control type in WP_Customize_Control
.
...
Add `input_attrs` property to support custom input attributes.
(Demo plugin attached to ticket.)
props celloexpressions.
fixes #28477 .
Built from https://develop.svn.wordpress.org/trunk@28930
git-svn-id: http://core.svn.wordpress.org/trunk@28728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 19:48:13 +00:00
Scott Taylor
a71d57da0a
Remove obsolete comment in wptexturize()
.
...
http://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2014-06-30&sort=asc#m879104
See [28831].
Built from https://develop.svn.wordpress.org/trunk@28929
git-svn-id: http://core.svn.wordpress.org/trunk@28727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 17:59:14 +00:00
Sergey Biryukov
ca650bd79c
Replace a redundant ! is_preview() check with a more appropriate one.
...
fixes #20496 .
Built from https://develop.svn.wordpress.org/trunk@28928
git-svn-id: http://core.svn.wordpress.org/trunk@28726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 17:19:14 +00:00
Helen Hou-Sandí
e1db9240b7
Support descriptions for individual customizer controls.
...
* Control title (label) markup will also only be output if specified.
* Control section descriptions are no longer italicized for visual hierarchy / differentiation.
props celloexpressions. fixes #27981 .
Built from https://develop.svn.wordpress.org/trunk@28927
git-svn-id: http://core.svn.wordpress.org/trunk@28725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 15:55:17 +00:00
Sergey Biryukov
2752456493
Document @return value for load_plugin_textdomain(). props jdgrimes.
...
Document $path parameter for load_child_theme_textdomain().
fixes #28690 .
Built from https://develop.svn.wordpress.org/trunk@28924
git-svn-id: http://core.svn.wordpress.org/trunk@28723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 13:52:15 +00:00
Sergey Biryukov
f799048057
Pass $url parameter to wp_embed_defaults() and 'embed_defaults' filter.
...
props wpsmith, sabreuse, jacobdubail.
fixes #20151 .
Built from https://develop.svn.wordpress.org/trunk@28923
git-svn-id: http://core.svn.wordpress.org/trunk@28722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 11:16:15 +00:00
Sergey Biryukov
c8d8610a15
Avoid a PHP notice in wp_new_comment() if user ID is not passed.
...
see #23231 .
Built from https://develop.svn.wordpress.org/trunk@28922
git-svn-id: http://core.svn.wordpress.org/trunk@28721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 11:03:14 +00:00
Sergey Biryukov
706f85d814
Force a separator in get_wp_title_rss() if it was inadvertently filtered out by the theme.
...
fixes #22362 .
Built from https://develop.svn.wordpress.org/trunk@28921
git-svn-id: http://core.svn.wordpress.org/trunk@28720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 10:11:15 +00:00
Sergey Biryukov
8dcf86f94d
Display consistent preview links for drafts.
...
props mordauk.
fixes #28350 .
Built from https://develop.svn.wordpress.org/trunk@28920
git-svn-id: http://core.svn.wordpress.org/trunk@28719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 10:02:16 +00:00
Andrew Ozz
5168f9c7c6
Secure embeds in the editor (first run):
...
- When the user pastes an embeddable http URL, try to get the https embed.
- If an embed provider doesn't support ssl embeds, show a placeholder/error message.
- Revise the way we return error messages.
See #28195 , #28507 .
Built from https://develop.svn.wordpress.org/trunk@28919
git-svn-id: http://core.svn.wordpress.org/trunk@28718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 05:49:16 +00:00
Drew Jaynes
c97a364b79
General inline documentation improvements in wp-includes/functions.php.
...
First run. See #26185 .
Built from https://develop.svn.wordpress.org/trunk@28918
git-svn-id: http://core.svn.wordpress.org/trunk@28717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 03:56:15 +00:00
Drew Jaynes
36be4e5703
Improve inline documentation for date_i18n()
, _http_build_query()
, wp_checkdate()
, and wp_auth_check()
.
...
Props morganestes.
See #26185 .
Built from https://develop.svn.wordpress.org/trunk@28917
git-svn-id: http://core.svn.wordpress.org/trunk@28716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 03:47:16 +00:00
Sergey Biryukov
c8adae8ec7
Normalize 'user_id' and 'user_ID' values in wp_new_comment() before passing the comment data to 'preprocess_comment' filter.
...
props dkotter.
fixes #23231 .
Built from https://develop.svn.wordpress.org/trunk@28915
git-svn-id: http://core.svn.wordpress.org/trunk@28714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 00:41:16 +00:00
Scott Taylor
63c4cd485f
Revert [28911] for performance concerns.
...
See #14157 .
Built from https://develop.svn.wordpress.org/trunk@28914
git-svn-id: http://core.svn.wordpress.org/trunk@28713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 23:43:14 +00:00
Scott Taylor
21864a98d0
Add a function, get_comments_number_text()
, that returns instead of echoing. comments_number()
wraps it.
...
Props kapeels, nbachiyski.
Fixes #10177 .
Built from https://develop.svn.wordpress.org/trunk@28912
git-svn-id: http://core.svn.wordpress.org/trunk@28711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 23:13:15 +00:00
Scott Taylor
f7ac459a61
Use includes_url( ..., 'relative' )
in script-loader.php
in lieu of hard-coding /wp-includes/....
everywhere.
...
Fixes #14157 .
Built from https://develop.svn.wordpress.org/trunk@28911
git-svn-id: http://core.svn.wordpress.org/trunk@28710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:56:14 +00:00
Andrew Nacin
4695573f51
Add initial unit tests for multisite's bootstrap.
...
props jeremyfelt.
fixes #27884 .
Built from https://develop.svn.wordpress.org/trunk@28910
git-svn-id: http://core.svn.wordpress.org/trunk@28709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:51:16 +00:00
Drew Jaynes
a10aff4d92
Convert documentation of default arguments in wp_list_authors()
to the hash-notation style.
...
Props Viper007Bond.
Fixes #28684 .
Built from https://develop.svn.wordpress.org/trunk@28909
git-svn-id: http://core.svn.wordpress.org/trunk@28708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:34:14 +00:00
Scott Taylor
9e2eb6aa62
Use includes_url()
in wlwmanifest_link()
.
...
Props nacin.
See #14157 .
Built from https://develop.svn.wordpress.org/trunk@28908
git-svn-id: http://core.svn.wordpress.org/trunk@28707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:27:15 +00:00
Scott Taylor
53968da5e2
WP_Scripts->in_default_dir()
should use the WPINC
constant
...
Props wojtek.szkutnik
See #14157 .
Built from https://develop.svn.wordpress.org/trunk@28907
git-svn-id: http://core.svn.wordpress.org/trunk@28706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:23:15 +00:00
Scott Taylor
8dd3c0e909
wlwmanifest_link()
should use the WPINC
constant
...
Props wojtek.szkutnik
See #14157 .
Built from https://develop.svn.wordpress.org/trunk@28905
git-svn-id: http://core.svn.wordpress.org/trunk@28704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:17:14 +00:00
Scott Taylor
c8852cc909
Use the WPINC
constant when loading class-phpass.php
...
Props wojtek.szkutnik
See #14157 .
Built from https://develop.svn.wordpress.org/trunk@28903
git-svn-id: http://core.svn.wordpress.org/trunk@28702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 22:12:16 +00:00
Sergey Biryukov
a8d0832a15
Notify developers when register_post_type() or register_taxonomy() fails because of post type or taxonomy key length.
...
props mattheweppelsheimer.
fixes #28683 .
Built from https://develop.svn.wordpress.org/trunk@28902
git-svn-id: http://core.svn.wordpress.org/trunk@28701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 21:54:14 +00:00
Drew Jaynes
6216aa2331
Add documentation for the default playlist shortcode attributes in wp_playlist_shortcode()
.
...
Props taylorde.
Fixes #28678 .
Built from https://develop.svn.wordpress.org/trunk@28901
git-svn-id: http://core.svn.wordpress.org/trunk@28700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 21:29:17 +00:00
Andrew Nacin
708f73ccc9
Add index key support for wp_list_pluck(), à la array_column().
...
props trepmal.
fixes #28666 .
Built from https://develop.svn.wordpress.org/trunk@28900
git-svn-id: http://core.svn.wordpress.org/trunk@28699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 21:26:17 +00:00
Drew Jaynes
5f08eed052
Re-document default arguments in wp_link_pages()
using the hash-notation style.
...
Props taylorde.
Fixes #28680 .
Built from https://develop.svn.wordpress.org/trunk@28899
git-svn-id: http://core.svn.wordpress.org/trunk@28698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 18:56:16 +00:00
Sergey Biryukov
ae0e22b61c
Fix feature pointer positioning issues for both LTR and RTL.
...
fixes #28062 .
Built from https://develop.svn.wordpress.org/trunk@28897
git-svn-id: http://core.svn.wordpress.org/trunk@28696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 16:06:14 +00:00
John Blackbourn
60ff3a61f9
Conditionally set the the secure
flag on the test cookie, post password cookie, settings cookies, and comment author cookies depending on whether the front end and/or admin area are served over https
. Fixes #28427
...
Built from https://develop.svn.wordpress.org/trunk@28895
git-svn-id: http://core.svn.wordpress.org/trunk@28694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 13:25:16 +00:00
John Blackbourn
de664966b0
Introduce is_https_url()
for testing whether the scheme for a given URL is https
. See #28487 .
...
Built from https://develop.svn.wordpress.org/trunk@28894
git-svn-id: http://core.svn.wordpress.org/trunk@28693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 11:32:15 +00:00
Drew Jaynes
e7f7fcbab8
General phpDoc fixes in wp-includes/plugin.php.
...
See #28516 .
Built from https://develop.svn.wordpress.org/trunk@28891
git-svn-id: http://core.svn.wordpress.org/trunk@28690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 09:19:15 +00:00
Sergey Biryukov
341eca6024
List the expected @param type first.
...
see #28516 .
Built from https://develop.svn.wordpress.org/trunk@28889
git-svn-id: http://core.svn.wordpress.org/trunk@28688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 08:47:14 +00:00
Sergey Biryukov
7bb7693dd1
More tweaks to @param docs in wp-includes/plugin.php.
...
see #28516 .
Built from https://develop.svn.wordpress.org/trunk@28888
git-svn-id: http://core.svn.wordpress.org/trunk@28687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-29 08:42:16 +00:00
Drew Jaynes
ff109ddc5a
First-run documention of WP_Query
argument defaults.
...
Props siobhan for some language tweaks. Props DrewAPicture.
See #25367 .
Built from https://develop.svn.wordpress.org/trunk@28887
git-svn-id: http://core.svn.wordpress.org/trunk@28686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 23:03:17 +00:00
Scott Taylor
62075239b8
Update @param
docs in plugin.php
...
Props dkotter.
Fixes #28516 .
Built from https://develop.svn.wordpress.org/trunk@28886
git-svn-id: http://core.svn.wordpress.org/trunk@28685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:50:15 +00:00
Scott Taylor
0289b98648
After [28883], remove_filter()
should set $GLOBALS['wp_filter'][ $tag ]
to array()
when empty.
...
Props wonderboymusic, sphoid.
Fixes #28142 .
Built from https://develop.svn.wordpress.org/trunk@28884
git-svn-id: http://core.svn.wordpress.org/trunk@28683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:38:15 +00:00
Scott Taylor
9275c87190
remove_all_filters()
should set to array()
, not call unset()
.
...
Props nacin, c3mdigital.
Fixes #19306 .
Built from https://develop.svn.wordpress.org/trunk@28883
git-svn-id: http://core.svn.wordpress.org/trunk@28682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:27:15 +00:00
Scott Taylor
0e3c4450cb
wp_extract_urls()
should not match dates.
...
Updates unit tests.
Props hinnerk, sergej.mueller.
Fixes #28222 .
Built from https://develop.svn.wordpress.org/trunk@28882
git-svn-id: http://core.svn.wordpress.org/trunk@28681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:16:14 +00:00
Scott Taylor
2e81419d4c
In multisite, on the updated_option
action, if the option name is one of: 'blogname', 'siteurl', 'post_count' - refresh the blog details cache for the current blog id.
...
Adds unit test.
Props kovshenin.
Fixes #26410 .
Built from https://develop.svn.wordpress.org/trunk@28881
git-svn-id: http://core.svn.wordpress.org/trunk@28680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:07:16 +00:00
Scott Taylor
13d0a45932
If the get_the_excerpt()
is called out of bounds of a global $post
, return ''.
...
Fixes #22413 .
Built from https://develop.svn.wordpress.org/trunk@28880
git-svn-id: http://core.svn.wordpress.org/trunk@28679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 04:01:14 +00:00
Scott Taylor
cf95c6ecc2
Add ->get_quality()
method to WP_Image_Editor
class.
...
Adds unit tests.
Props markoheijnen.
Fixes #28154 .
Built from https://develop.svn.wordpress.org/trunk@28879
git-svn-id: http://core.svn.wordpress.org/trunk@28678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 03:50:15 +00:00
Sergey Biryukov
a6a2183bf6
Fix typo in a comment.
...
props JustinSainton.
see #20496 .
Built from https://develop.svn.wordpress.org/trunk@28878
git-svn-id: http://core.svn.wordpress.org/trunk@28677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 03:30:16 +00:00
Scott Taylor
dad07f85b8
Fix the spacing between the wp-pointer arrow and bubble in LTR and RTL.
...
Fixes #28062 .
Built from https://develop.svn.wordpress.org/trunk@28877
git-svn-id: http://core.svn.wordpress.org/trunk@28676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 02:26:16 +00:00
Scott Taylor
8b3bb6cc2d
Remove obsolete wp_cache_delete('get_pages', 'posts')
from clean_post_cache()
.
...
Fixes #27459 .
Built from https://develop.svn.wordpress.org/trunk@28875
git-svn-id: http://core.svn.wordpress.org/trunk@28674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 02:16:14 +00:00
Scott Taylor
a60b01b138
Perform a canonical redirect for posts that are published but are visited at a ?p=123&preview=true
URL.
...
Props amit, joostdevalk.
Fixes #20496 .
Built from https://develop.svn.wordpress.org/trunk@28874
git-svn-id: http://core.svn.wordpress.org/trunk@28673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 02:13:15 +00:00
Scott Taylor
f09663f784
Remove remaining Heartbeat API experimental notices
...
Props DH-Shredder.
Fixes #28626 .
Built from https://develop.svn.wordpress.org/trunk@28872
git-svn-id: http://core.svn.wordpress.org/trunk@28672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-28 02:06:14 +00:00
Scott Taylor
71090a7f12
Remove title attributes in wp_authenticate_username_password()
.
...
Props joedolson.
Fixes #26547 .
Built from https://develop.svn.wordpress.org/trunk@28870
git-svn-id: http://core.svn.wordpress.org/trunk@28670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-27 20:05:15 +00:00
Sergey Biryukov
819d4f972c
Correct filter documentation in wp_nav_menu().
...
props dlh.
fixes #28657 .
Built from https://develop.svn.wordpress.org/trunk@28867
git-svn-id: http://core.svn.wordpress.org/trunk@28667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-27 03:37:16 +00:00
Andrew Ozz
db501d7f72
TinyMCE: force 'font-weight: bold` for <strong> and <b> inside the editor or Chrome and Safari may replace them with spans on pasting. Fixes #28656 .
...
Built from https://develop.svn.wordpress.org/trunk@28866
git-svn-id: http://core.svn.wordpress.org/trunk@28666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-27 03:00:15 +00:00
Sergey Biryukov
4d9286ad21
Avoid a PHP notice and warning on language selection screen.
...
props meekyhwang.
fixes #28648 .
Built from https://develop.svn.wordpress.org/trunk@28865
git-svn-id: http://core.svn.wordpress.org/trunk@28665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-27 00:25:15 +00:00
Sergey Biryukov
aebf8f0fea
Make sure the first number in LIMIT clause in WP_Query::get_posts() is always an integer.
...
fixes #23383 .
Built from https://develop.svn.wordpress.org/trunk@28864
git-svn-id: http://core.svn.wordpress.org/trunk@28664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-27 00:04:16 +00:00
Scott Taylor
4ad56ce548
Make sure the audio player's time tooltip is visible in the media modal for Audio Details.
...
Fixes #28453 .
Built from https://develop.svn.wordpress.org/trunk@28863
git-svn-id: http://core.svn.wordpress.org/trunk@28663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 20:29:14 +00:00
Dominik Schilling
b7c93eb3d0
Customizer: Introduce a "panel" API to organize multiple sections into a one section.
...
Create a panel via `$GLOBALS['wp_customize']->add_panel( $panel_id, $args )` and use `$panel_id` for the `panel` argument in `$GLOBALS['wp_customize']->add_section( $section_id, $args )`. That's it.
As an example all widget area sections are now summarized into one panel. Feedback appreciated.
props celloexpressions.
see #27406 .
Built from https://develop.svn.wordpress.org/trunk@28861
git-svn-id: http://core.svn.wordpress.org/trunk@28662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 20:17:15 +00:00
Scott Taylor
a21d9cdacf
Do not touch absint()
. Reverts [28855].
...
Built from https://develop.svn.wordpress.org/trunk@28858
git-svn-id: http://core.svn.wordpress.org/trunk@28661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 18:45:14 +00:00
Scott Taylor
ff8e9774ae
Revert [28856] at nacin's behest. See #23383 .
...
Built from https://develop.svn.wordpress.org/trunk@28857
git-svn-id: http://core.svn.wordpress.org/trunk@28660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 18:34:15 +00:00
Scott Taylor
cd93bc05e5
absint()
should always return PHP_INT_MAX
if the resulting value exceeds it.
...
See [28855].
Fixes #23383 .
Built from https://develop.svn.wordpress.org/trunk@28856
git-svn-id: http://core.svn.wordpress.org/trunk@28659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 18:24:15 +00:00
Scott Taylor
bae2b054ad
Add a second optional parameter to absint()
to limit the result to PHP_INT_MAX
.
...
See #23383 .
Built from https://develop.svn.wordpress.org/trunk@28855
git-svn-id: http://core.svn.wordpress.org/trunk@28658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 17:52:15 +00:00
Sergey Biryukov
81b8b6cfbc
XML-RPC: Make sure wp.newPost does not produce a fatal error when a post_date field is included in the data.
...
props dllh.
fixes #28601 .
Built from https://develop.svn.wordpress.org/trunk@28854
git-svn-id: http://core.svn.wordpress.org/trunk@28657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 17:43:14 +00:00
Scott Taylor
9997f77d7f
Use less greedy regex in wptexturize()
. Adds unit tests.
...
Props miqrogroove.
See #28564 .
Built from https://develop.svn.wordpress.org/trunk@28852
git-svn-id: http://core.svn.wordpress.org/trunk@28656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 17:15:14 +00:00
Sergey Biryukov
1c227553b9
Fix unexpected replacement of a previous tag when selecting a tag from autosuggest results.
...
props camdensegal.
fixes #28471 .
Built from https://develop.svn.wordpress.org/trunk@28851
git-svn-id: http://core.svn.wordpress.org/trunk@28655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 16:08:14 +00:00
Sergey Biryukov
d7f9b38c3e
XML-RPC: Add wp.deleteMediaItem as an alias to wp_deletePost.
...
props fahmiadib.
fixes #5310 .
Built from https://develop.svn.wordpress.org/trunk@28849
git-svn-id: http://core.svn.wordpress.org/trunk@28653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 15:21:15 +00:00
Andrew Ozz
b9fd9db83b
Uploader: enable selecting multiple files on mobile devices (still doesn't work on Android). See #28640 .
...
Built from https://develop.svn.wordpress.org/trunk@28847
git-svn-id: http://core.svn.wordpress.org/trunk@28651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 04:15:15 +00:00
Scott Taylor
2efb8f8507
When wp_oembed_add_provider()
or wp_oembed_remove_provider()
is called before the plugins_loaded
hook has, store the values statically on the WP_oEmbed
object and add them just-in-time when the object is instantiated.
...
This ensures that all plugins have an accurate provider list when `apply_filters( 'oembed_providers', $providers )` is called.
Props kovshenin.
Fixes #28284 .
Built from https://develop.svn.wordpress.org/trunk@28846
git-svn-id: http://core.svn.wordpress.org/trunk@28650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 02:30:15 +00:00
Scott Taylor
38e39c93ea
In kses.php
, ensure that $allowedposttags
, $allowedtags
, and $allowedentitynames
are added to the global namespace.
...
Props Jaza613.
Fixes #28582 .
Built from https://develop.svn.wordpress.org/trunk@28845
git-svn-id: http://core.svn.wordpress.org/trunk@28649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 02:14:15 +00:00
Scott Taylor
c725b77068
Check for the existence of $post
before using it in get_the_ID()
. Return false
if it doesn't exist.
...
Props UmeshSingla.
Fixes #17034 .
Built from https://develop.svn.wordpress.org/trunk@28844
git-svn-id: http://core.svn.wordpress.org/trunk@28648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 02:05:14 +00:00
Scott Taylor
4bcf6b2d6a
Add mime support for 3gp, 3g2 and 3gpp video formats. These are not supported by MediaElement or the WP media shortcodes, just an FYI.
...
Props azaozz, m_uysl.
Fixes #23380 .
Built from https://develop.svn.wordpress.org/trunk@28841
git-svn-id: http://core.svn.wordpress.org/trunk@28645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:43:15 +00:00
Scott Taylor
6bcb24a344
In wp_localize_script()
, instantiate the $wp_scripts
global instead of bailing when it is called before wp_enqueue_scripts
. This allows wp_enqueue_media()
to be called on the front end with no JS errors.
...
Props ericlewis.
Fixes #24724 .
Built from https://develop.svn.wordpress.org/trunk@28840
git-svn-id: http://core.svn.wordpress.org/trunk@28644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:38:15 +00:00
Scott Taylor
6ab2f15b0b
Dynamically prepend screen reader text to the attachment filters dropdown and the search box in the media modal.
...
Props SergeyBiryukov.
Fixes #25102 .
Built from https://develop.svn.wordpress.org/trunk@28839
git-svn-id: http://core.svn.wordpress.org/trunk@28643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:28:16 +00:00
Scott Taylor
6c3ce75b1c
Race conditions can cause .uploader-window
to be visible with opacity of 0
. It will cause the user to have to refresh the page or inspect the element to hide it. Add a delay in wp.media.view.UploaderWindow.hide()
to ensure that the uploader window is indeed hidden.
...
Props kovshenin.
Fixes #27341 .
Built from https://develop.svn.wordpress.org/trunk@28838
git-svn-id: http://core.svn.wordpress.org/trunk@28642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 01:20:15 +00:00