Commit Graph

11716 Commits

Author SHA1 Message Date
Mark Jaquith c85d50ac3c Revision our post format postmeta.
props kovshenin, WraithKenny. see #20564.

git-svn-id: https://develop.svn.wordpress.org/trunk@23859 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 10:37:44 +00:00
bumpbot 38e8fd6923 Compress scripts/styles: 3.6-alpha-23857.
git-svn-id: https://develop.svn.wordpress.org/trunk@23857 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 08:58:41 +00:00
bumpbot 50b9f427b5 Compress scripts/styles: 3.6-alpha-23852.
git-svn-id: https://develop.svn.wordpress.org/trunk@23852 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:58:40 +00:00
Andrew Ozz 4525912f59 Post revisions:
- Always update the revision version when updating post authors.
- Check if revisions have been updated and return early.
- Update the revisions by direct query to avoid resetting post_modified.
- Fix a bug where we may be comparing with an autosave but need to compare with the latest revision.

Fixes #16215.

git-svn-id: https://develop.svn.wordpress.org/trunk@23849 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 05:28:44 +00:00
Mark Jaquith fe4da10a48 Add compat code for 'image' post format.
see #19570. props wonderboymusic.

git-svn-id: https://develop.svn.wordpress.org/trunk@23847 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 05:21:23 +00:00
bumpbot fc753f9803 Compress scripts/styles: 3.6-alpha-23846.
git-svn-id: https://develop.svn.wordpress.org/trunk@23846 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 04:58:39 +00:00
Mark Jaquith e7cde8715f Post Format UI.
* Icons
* Selection
* Prompt text
* Special fields
* Styling
* Sparkles

This is going to need testing, polish, and love.

see #19570. props melchoyce, helen, wonderboymusic, lessbloat, rachelbaker, aaroncampbell, DrewAPicture, ryelle.

git-svn-id: https://develop.svn.wordpress.org/trunk@23843 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 03:35:41 +00:00
Mark Jaquith 191ceb01cd Use the wp_insert_post hook to save revisions, so we save revisions for
an initial wp_insert_post() run, not just updates.

see #16215

git-svn-id: https://develop.svn.wordpress.org/trunk@23842 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 23:45:19 +00:00
Mark Jaquith e187d14142 Move the "look for the first media attachment" code below the "look
in the post content for media" code, so that it is the method of last
resort. This way, if you attach AND embed media, you won't get duplication.

fixes #23879

git-svn-id: https://develop.svn.wordpress.org/trunk@23840 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 07:28:27 +00:00
Mark Jaquith 2b9b1080ec Rename the_extra_content() to the_remaining_content().
fixes #23877.

git-svn-id: https://develop.svn.wordpress.org/trunk@23836 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 05:59:18 +00:00
bumpbot 9681287f64 Compress scripts/styles: 3.6-alpha-23833.
git-svn-id: https://develop.svn.wordpress.org/trunk@23833 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 02:58:39 +00:00
Andrew Ozz 0a02f89dec Fix wp_list_post_revisions() to include all autosaves when listing autosaves only and properly include or exclude the current post, see #23665, see #16215
git-svn-id: https://develop.svn.wordpress.org/trunk@23830 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 00:56:44 +00:00
Mark Jaquith 54e229a8b8 Fix a longstanding "off by one" revision authorship bug.
* Fixes old revision data on the fly when you open a post for editing.
* Uses post_name of revisions to store a post version number (-v1), so we know what has been fixed.
* Latest version should also have a revision stored, whereas before it did not.

props adamsilverstein, mdawaffe. fixes #16215.

git-svn-id: https://develop.svn.wordpress.org/trunk@23823 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:21:38 +00:00
Mark Jaquith a243e9653b Better default quote markup for post format fallbacks.
props obenland. see #23347

git-svn-id: https://develop.svn.wordpress.org/trunk@23822 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 19:21:56 +00:00
Mark Jaquith 3817df14ec Add some filters to the image extraction-from-post bits so people with
existing postmeta-based flows can hook in and make magic happen.

props wonderboymusic. fixes #22960.

git-svn-id: https://develop.svn.wordpress.org/trunk@23821 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 19:07:58 +00:00
Mark Jaquith d9ac303f83 Give themers tangible, user-friendly template functions to take full advantage of structured post formats.
* the_audio()
* the_video()
* the_image()
* get_the_media()

Also introduces:

* get_the_extra_content()
* the_extra_content()

Those two functions are like their non-extra versions, except that they
will have any post-format bits extracted. e.g. It's an image post, for
which the_image() will extract an <img /> tag. the_extra_content() will
output the content *without* that image.

props wonderboymusic. Herculean effort. fixes #23572

git-svn-id: https://develop.svn.wordpress.org/trunk@23819 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 18:34:59 +00:00
Mark Jaquith 404aa52ea2 Take revision control out of the realm of a pure constant. Make it filterable.
* New filter: wp_revisions_to_keep

props ethitter, SergeyBiryukov. fixes #22289.

git-svn-id: https://develop.svn.wordpress.org/trunk@23818 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 18:11:56 +00:00
bumpbot a60042072a Compress scripts/styles: 3.6-alpha-23815.
git-svn-id: https://develop.svn.wordpress.org/trunk@23815 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 14:58:40 +00:00
Peter Westwood d160c66498 Pluggable Auth: When setting new passwords for users trim any leading or trailing space to match what we do when we test passwords.
Fixes #23494


git-svn-id: https://develop.svn.wordpress.org/trunk@23814 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 14:15:13 +00:00
bumpbot 156cb9baab Compress scripts/styles: 3.6-alpha-23812.
git-svn-id: https://develop.svn.wordpress.org/trunk@23812 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 12:58:43 +00:00
Mark Jaquith 58476bf203 Minor revisions PHP reorg, code cleanup, restores _post_restored_from functionality.
props adamsilverstein. see #23497

git-svn-id: https://develop.svn.wordpress.org/trunk@23811 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 11:56:28 +00:00
bumpbot a7433676be Compress scripts/styles: 3.6-alpha-23809.
git-svn-id: https://develop.svn.wordpress.org/trunk@23809 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:58:40 +00:00
Andrew Ozz 45f54b41d8 Logged out warnings: add fallback text dialog for:
- The login page has "X-Frame-Options: DENY" header.
- Cross-domain when displaying on the front-end on multisite with domain mapping.
- The site forces ssl login but not ssl admin.

Add onbeforeunload prompt to counter (frame-busting) JS redirects. Move the JS and CSS into separate files. See #23295.

git-svn-id: https://develop.svn.wordpress.org/trunk@23805 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:43:11 +00:00
Mark Jaquith e5e3844c58 Extract chats as structured data.
* add_chat_detection_format() — to add a chat regex pattern
* get_content_chat() — to grab a chat from content
* get_the_chat() — grab the chat from the current (or passed) post
* the_chat() — output the chat in formatted HTML
* paginate_content() — puts the <!--nextpage--> splitting stuff into a function
* get_paged_content() — grabs a page of raw content, needed to paginate chats properly

see #23625. props wonderboymusic, lancewillett.

git-svn-id: https://develop.svn.wordpress.org/trunk@23804 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:31:12 +00:00
Andrew Ozz e8ff44ba96 In the HTML outputted from get_search_form(): increment the ID connecting <label> to <input> when the function is called multiple times, remove the form and submit button IDs for HTML 5.0 and for XHTML after the first call. Props WraithKenny, fixes #16539
git-svn-id: https://develop.svn.wordpress.org/trunk@23801 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 23:18:43 +00:00
Sergey Biryukov 26c02ab51c Rename 'get_search_form' action to 'pre_get_search_form' to prevent collision with the filter of the same name. Make sure the filtered result is not null to prevent search form from disappearing if an action function is attached to the old hook. fixes #19321.
git-svn-id: https://develop.svn.wordpress.org/trunk@23800 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 21:08:04 +00:00
Sergey Biryukov 1da02a2270 Use a filter instead of recently added $format argument in get_search_form(). props WraithKenny. fixes #23850. see #15081.
git-svn-id: https://develop.svn.wordpress.org/trunk@23798 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 20:27:13 +00:00
bumpbot 198beee877 Compress scripts/styles: 3.6-alpha-23797.
git-svn-id: https://develop.svn.wordpress.org/trunk@23797 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 00:58:40 +00:00
Andrew Ozz 6d5bbd04bc Local autosave: remove the locally stored data after a post is saved. This prevents false positives when several users edit the same post multiple times. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23796 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-25 23:43:06 +00:00
Ryan Boren 315f606306 Fire the update_blog_public action from update_blog_status() instead of update_blog_public(). Pass blog ID and value to the action.
Add code to noindex() to sync the 'public' value in the site options table with the blog_public value in the options table.

fixes #23155


git-svn-id: https://develop.svn.wordpress.org/trunk@23794 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-25 09:29:58 +00:00
bumpbot ea8c0feefb Compress scripts/styles: 3.6-alpha-23791.
git-svn-id: https://develop.svn.wordpress.org/trunk@23791 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 20:58:37 +00:00
Sergey Biryukov 6cf433a314 Fix order of in_array() parameters. props lancewillett. see #23570.
git-svn-id: https://develop.svn.wordpress.org/trunk@23789 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:58:55 +00:00
bumpbot 28b36ea5cd Compress scripts/styles: 3.6-alpha-23787.
git-svn-id: https://develop.svn.wordpress.org/trunk@23788 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:58:40 +00:00
bumpbot fe046574b4 Compress scripts/styles: 3.6-alpha-23779.
git-svn-id: https://develop.svn.wordpress.org/trunk@23779 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 16:58:37 +00:00
Helen Hou-Sandi 072ec2bca9 Add a generic `get_attached_media()` function and use it in get_attached_audio|video|images. Add filters for the query args and resulting array. fixes #23843.
git-svn-id: https://develop.svn.wordpress.org/trunk@23776 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 08:08:46 +00:00
Helen Hou-Sandi 4fd8f9915d Add a filter for get_the_url(). Make sure get_the_url() also checks for the quote post format, as it currently has a URL field. see #23570.
git-svn-id: https://develop.svn.wordpress.org/trunk@23775 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 07:28:56 +00:00
Mark Jaquith 9a431958e4 Add functions to parse audio or video data out of arbitrary content or a post
props wonderboymusic. see #23572

git-svn-id: https://develop.svn.wordpress.org/trunk@23774 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 05:55:08 +00:00
Mark Jaquith a5cb6404d4 Add functions to extract a URL from an arbitrary string, HTML, or the current $post
props wonderboymusic. see #23570

git-svn-id: https://develop.svn.wordpress.org/trunk@23773 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 05:25:20 +00:00
Mark Jaquith bb00d973a7 Add functions to extract images from posts in various forms
props wonderboymusic. fixes #22960

git-svn-id: https://develop.svn.wordpress.org/trunk@23772 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 05:20:38 +00:00
bumpbot 90de4d1a69 Compress scripts/styles: 3.6-alpha-23770.
git-svn-id: https://develop.svn.wordpress.org/trunk@23770 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 16:58:38 +00:00
Peter Westwood ae03f1a0b6 Revisions: UI Update.
* Refines the UI to make it clearer and easier to use
* Introduces weighted tickmarks
* Fixes comparison bugs.

See #23497 props adamsilverstein


git-svn-id: https://develop.svn.wordpress.org/trunk@23769 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 15:54:11 +00:00
bumpbot cd16e77429 Compress scripts/styles: 3.6-alpha-23767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23767 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:58:38 +00:00
Mark Jaquith 53ea4e0566 Add functions for generating metadata for video and audio, using the
ID3 library. Also allows themes/plugins to add thumbnail support
to these media types. Think stuff like album art, movie covers, and
video freeze-frames.

props wonderboymusic. fixes #23673

git-svn-id: https://develop.svn.wordpress.org/trunk@23766 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:55:42 +00:00
bumpbot 23f9315857 Compress scripts/styles: 3.6-alpha-23764.
git-svn-id: https://develop.svn.wordpress.org/trunk@23764 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 02:58:40 +00:00
bumpbot c6bda62923 Compress scripts/styles: 3.6-alpha-23762.
git-svn-id: https://develop.svn.wordpress.org/trunk@23762 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-20 06:13:30 +00:00
bumpbot 6e92b305fa Compress scripts/styles: 3.6-alpha-23754.
git-svn-id: https://develop.svn.wordpress.org/trunk@23754 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 18:58:40 +00:00
Helen Hou-Sandi 987251f582 Remove separate meta fields for image and gallery post formats. These are proving to be more confusing and labor-intensive from both a user and dev perspective than entering into the regular content editor. We will rely on good content parsing instead. See #19570, #23347.
git-svn-id: https://develop.svn.wordpress.org/trunk@23753 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 17:18:07 +00:00
Ryan Boren 806002166b In refresh_blog_details(), make sure clean_blog_cache() gets the blog ID when the blog has been previously cached as non-existent. This ensures that -1 values in blog-details are cleared after blogs are created.
Props beezeee, hirozed
fixes #23405


git-svn-id: https://develop.svn.wordpress.org/trunk@23752 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 05:05:19 +00:00
bumpbot 8700943f39 Compress scripts/styles: 3.6-alpha-23751.
git-svn-id: https://develop.svn.wordpress.org/trunk@23751 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 04:58:37 +00:00
Ryan Boren 0da872a785 Clarify phpdoc for the vertical and horizontal arguments to the flip() method in WP_Image_Editor*.
Props dh-shredder
fixes #23775


git-svn-id: https://develop.svn.wordpress.org/trunk@23750 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 03:30:04 +00:00
bumpbot e3023dcdbb Compress scripts/styles: 3.6-alpha-23746. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23746 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:58:39 +00:00
Andrew Ozz cc7ca57f85 Editor: preserve the textarea content when saving, wpautop is not used and TinyMCE is hidden. Props WraithKenny, fixes #23743
git-svn-id: https://develop.svn.wordpress.org/trunk@23745 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:40:39 +00:00
Ryan Boren 1c2a9008c5 Make WP_Image_Editor::make_image() safe for replication plugins by making sure the directory for the image being made exists.
Props batmoo
fixes #23306


git-svn-id: https://develop.svn.wordpress.org/trunk@23744 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 18:05:23 +00:00
Ryan Boren 72c65a3145 Fix i18n for revision diff strings displaying human time.
Props johnbillion
fixes #23723


git-svn-id: https://develop.svn.wordpress.org/trunk@23743 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:58:30 +00:00
Ryan Boren b16e4eaf58 Pass tag ID and args array to topic_count_text_callback from wp_generate_tag_cloud().
Props najamelan, toscho
fixes #21198


git-svn-id: https://develop.svn.wordpress.org/trunk@23741 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:17:55 +00:00
Ryan Boren 5cf0bc9be0 Bail early with correct WP_Error when an invalid post ID is passed to wp_insert_post() and wp_update_post().
Props simonwheatley
fixes #23474


git-svn-id: https://develop.svn.wordpress.org/trunk@23740 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 14:33:09 +00:00
Ryan Boren 18e3a300ab Remove old phpdoc that incorrectly marks wp_timezone_choice() as temporary.
Props danielbachhuber
fixes #23804


git-svn-id: https://develop.svn.wordpress.org/trunk@23738 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 13:35:34 +00:00
bumpbot 9e7cac887b Compress scripts/styles: 3.6-alpha-23736.
git-svn-id: https://develop.svn.wordpress.org/trunk@23736 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 22:58:39 +00:00
Andrew Ozz c996f27c4d Create one autosave per user rather than a single autosave for all users. Remove unused code from autosave.js and wp_ajax_autosave(). See #23665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23735 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 21:15:43 +00:00
bumpbot 54dff9f493 Compress scripts/styles: 3.6-alpha-23734.
git-svn-id: https://develop.svn.wordpress.org/trunk@23734 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 20:58:37 +00:00
Dion Hulse eff3a330f8 Move the Mediaelement.js include into the wp-includes/js folder, rather than wp-includes directly. Fixes the mediaplayer in browsers which don't support <audio> directly.
Props DrewAPicture See #23282.


git-svn-id: https://develop.svn.wordpress.org/trunk@23732 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 08:43:19 +00:00
bumpbot e4071c0d8b Compress scripts/styles: 3.6-alpha-23731.
git-svn-id: https://develop.svn.wordpress.org/trunk@23731 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 06:58:41 +00:00
Andrew Ozz e4b6b84d8e Pass post format as a class to TinyMCE's body, props adamsilverstein, fixes #23198
git-svn-id: https://develop.svn.wordpress.org/trunk@23730 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:57:54 +00:00
Mark Jaquith 0132e8100c Introduce [audio] and [video] shortcodes, and use MediaElement.js to play them.
props wonderboymusic. see #23282.

git-svn-id: https://develop.svn.wordpress.org/trunk@23729 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:25:44 +00:00
bumpbot 050124e6ce Compress scripts/styles: 3.6-alpha-23728.
git-svn-id: https://develop.svn.wordpress.org/trunk@23728 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 04:58:37 +00:00
bumpbot 23427e8e51 Compress scripts/styles: 3.6-alpha-23726.
git-svn-id: https://develop.svn.wordpress.org/trunk@23726 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 22:58:35 +00:00
Sergey Biryukov c4f8e11df0 Remove redundant code from post_type_supports() and remove_post_type_support(). props obenland, bilalcoder. fixes #21527.
git-svn-id: https://develop.svn.wordpress.org/trunk@23722 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 18:28:33 +00:00
Sergey Biryukov 03aac4585d Add phpdoc for $attr argument of wp_get_attachment_image(). props GaryJ. fixes #23791.
git-svn-id: https://develop.svn.wordpress.org/trunk@23714 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 17:19:10 +00:00
Sergey Biryukov d8f3366704 Fix placeholder reference in translator comment. props devesine. fixes #23766.
git-svn-id: https://develop.svn.wordpress.org/trunk@23709 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 16:20:15 +00:00
bumpbot 117e132a94 Compress scripts/styles: 3.6-alpha-23708.
git-svn-id: https://develop.svn.wordpress.org/trunk@23708 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 14:58:36 +00:00
bumpbot 951a73e486 Compress scripts/styles: 3.6-alpha-23706.
git-svn-id: https://develop.svn.wordpress.org/trunk@23706 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:58:36 +00:00
Andrew Ozz ded373a640 Local autosave: remove the temp cookie after first use. Prevents false negative if the browser crashes. Add some temp logging to aid testing. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23705 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:15:14 +00:00
bumpbot a4b13093c4 Compress scripts/styles: 3.6-alpha-23704.
git-svn-id: https://develop.svn.wordpress.org/trunk@23704 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:58:53 +00:00
Mark Jaquith 4163b21746 Wrap self.run in an anonymous function wrapper so self always gets the same scope.
props azaozz. fixes #23780

git-svn-id: https://develop.svn.wordpress.org/trunk@23703 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:32:05 +00:00
bumpbot 458058760f Compress scripts/styles: 3.6-alpha-23695.
git-svn-id: https://develop.svn.wordpress.org/trunk@23695 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 04:58:39 +00:00
Mark Jaquith 134fb4f257 Improve wp_list_comments() markup.
* Whitespace cleanup
* Accepts format=html5 which uses some of the HTML5 elements
* Some helpful HTML comments to help untangle the HTML
* Other misc code cleanup

props lancewillett, obenland, georgestephanis. fixes #20088.

git-svn-id: https://develop.svn.wordpress.org/trunk@23694 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 04:26:04 +00:00
Andrew Ozz 5e71fb3992 Local autosave: set a temp cookie on submitting the form and change it on redirecting after the post is saved/updated, then use it to determine if saving worked properly. Removes the chance for false positives after saving/updating a post. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23693 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 03:06:07 +00:00
Mark Jaquith b95b9917f1 Add the ability to use HTML5 input types in the comment form.
props jorbin, georgestephanis, obenland. fixes #15080

git-svn-id: https://develop.svn.wordpress.org/trunk@23689 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 20:31:43 +00:00
Peter Westwood 7e33770010 Multisite: Ensure that get_blogaddress_by_name does not mangle blognames with leading digits.
Correctly specify the backreference in the regular expression so that it can not become ambiguous when there is a leading digit on the blogname.

Fixes #23689 props dllh.


git-svn-id: https://develop.svn.wordpress.org/trunk@23686 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 16:00:38 +00:00
Peter Westwood 6c937208e7 Formatting: Pass the blog charset to htmlspecialchars so that we don't eat non-UTF8 strings in PHP 5.4
Fixes #23688


git-svn-id: https://develop.svn.wordpress.org/trunk@23685 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 15:24:38 +00:00
bumpbot 4ff35bd528 Compress scripts/styles: 3.6-alpha-23684.
git-svn-id: https://develop.svn.wordpress.org/trunk@23684 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:58:39 +00:00
Andrew Ozz 4ad27d6d14 Autosave to the browser's sessionStorage, compare this autosave to the post content on page load and let the user restore it when the data is not the same. First run, see #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23683 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:08:16 +00:00
bumpbot 5e439e799e Compress scripts/styles: 3.6-alpha-23682.
git-svn-id: https://develop.svn.wordpress.org/trunk@23682 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:58:39 +00:00
Andrew Ozz 631980b5fa Post locks on the posts list screen: new icons for the lock, props empireoflight, show avatar for the user currently editing, props dh-shredder, see #23312
git-svn-id: https://develop.svn.wordpress.org/trunk@23681 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:28:07 +00:00
Sergey Biryukov 317d45f452 Fix array formatting. see #21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@23668 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:30:58 +00:00
Sergey Biryukov c4c4c09c43 Add $format argument to get_search_form() to allow HTML5 markup. props georgestephanis, lancewillett. fixes #15081.
git-svn-id: https://develop.svn.wordpress.org/trunk@23667 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:25:08 +00:00
Sergey Biryukov f4a77a66b4 Always respect $echo argument in get_search_form(). props garyc40, kawauso. fixes #16541.
git-svn-id: https://develop.svn.wordpress.org/trunk@23666 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:51:56 +00:00
Sergey Biryukov a33ecb5f56 Improve punctuation in phpdoc. see #23090.
git-svn-id: https://develop.svn.wordpress.org/trunk@23665 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:30:13 +00:00
Sergey Biryukov 514e6ca11f Fix fatal error in WP_User_Query when searching users by URL. Move wp_is_large_network() to wp-includes. fixes #23683 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23664 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:19:55 +00:00
bumpbot 96f4a86553 Compress scripts/styles: 3.6-alpha-23662.
git-svn-id: https://develop.svn.wordpress.org/trunk@23662 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 04:58:35 +00:00
Sergey Biryukov 9dc7a6a22f Avoid an undefined index notice in get_post_type_archive_feed_link(). props ericlewis. fixes #23744.
git-svn-id: https://develop.svn.wordpress.org/trunk@23660 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 01:50:46 +00:00
Sergey Biryukov 99392425cb Fix typo in phpdoc. props fanquake. fixes #23737.
git-svn-id: https://develop.svn.wordpress.org/trunk@23659 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-11 09:39:55 +00:00
Sergey Biryukov 44e0f5ff09 Pass the post ID to the_title filter in post_formats_compat(). see #23347.
git-svn-id: https://develop.svn.wordpress.org/trunk@23655 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 02:29:29 +00:00
Sergey Biryukov 16f38de702 Make wp_link_pages() filterable. Add 'separator' argument. Simplify the function logic. props obenland, brianlayman. fixes #13578.
git-svn-id: https://develop.svn.wordpress.org/trunk@23653 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-08 18:33:52 +00:00
Sergey Biryukov 82b5f9e128 Add orientation information to gallery items. props obenland. fixes #23695.
git-svn-id: https://develop.svn.wordpress.org/trunk@23649 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-08 16:13:15 +00:00
bumpbot 5d98f47677 Compress scripts/styles: 3.6-alpha-23646.
git-svn-id: https://develop.svn.wordpress.org/trunk@23646 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 22:58:48 +00:00
Peter Westwood ae4522b5f1 Revisions: Updates to the new Revisions UI.
Various Updates including:
 * i18n fixes
 * Added tracking of what revision ID was restored
 * async fetching of diffs so that slider works sooner even with many revisions

See #23497 props adamsilverstein, ethitter


git-svn-id: https://develop.svn.wordpress.org/trunk@23639 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 15:32:26 +00:00
Andrew Nacin 4bd1d84c02 Revert [23411] until encoding differences are worked out. see #20771.
git-svn-id: https://develop.svn.wordpress.org/trunk@23637 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:57:56 +00:00
Andrew Nacin 0a1b374283 XML-RPC: Return an error for getRecentPosts (mw and blogger) if the user does not have edit_posts.
props redsweater.
fixes #22320.



git-svn-id: https://develop.svn.wordpress.org/trunk@23636 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:52:37 +00:00
Andrew Nacin f5de3b88a8 Allow get_post_ancestors() to inspect the $post global, when null/0 is received. see #23708.
git-svn-id: https://develop.svn.wordpress.org/trunk@23635 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:49:46 +00:00
Sergey Biryukov 3213c4ca46 Always escape the URL echoed by header_image(). fixes #23664.
git-svn-id: https://develop.svn.wordpress.org/trunk@23633 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 05:30:00 +00:00
bumpbot bc37473b87 Compress scripts/styles: 3.6-alpha-23627.
git-svn-id: https://develop.svn.wordpress.org/trunk@23627 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 22:58:49 +00:00
Andrew Nacin 87bea49dc5 Add shortcode_atts_$shortcode filter for when the name of the shortcode is passed to shortcode_atts(). props coffee2code. fixes #15155.
git-svn-id: https://develop.svn.wordpress.org/trunk@23626 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 20:07:40 +00:00
Andrew Nacin 11b772ea05 Add filters to comments_link_feed(), comment_link(), and get_comments_link(). esc_url() the echoed output of comments_link().
props MarcusPope.
fixes #19210.



git-svn-id: https://develop.svn.wordpress.org/trunk@23624 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 19:57:31 +00:00
Andrew Nacin ddb81178b7 Properly handle timezones in get_date_from_gmt() rather than relying on the implicit gmt_offset. This offset is only good for the current time, rather than the passed time, which causes problems when converting a DST date when DST is not in effect, or vice versa.
Update get_gmt_from_date() to make these functions match in formatting, as they are complementary and just reverse a few operations.

props scholesmafia
Tests: [1233/tests]

fixes #20328.



git-svn-id: https://develop.svn.wordpress.org/trunk@23618 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 16:14:14 +00:00
bumpbot 32e9ee9d42 Compress scripts/styles: 3.6-alpha-23617.
git-svn-id: https://develop.svn.wordpress.org/trunk@23617 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:49:17 +00:00
Andrew Nacin 8f97270ec5 Add heartbeat and revisions .min.js files.
git-svn-id: https://develop.svn.wordpress.org/trunk@23616 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:47:29 +00:00
Dion Hulse 5c1c214b26 WP_HTTP: Prevent the 'max_body_length' and 'stream_handle' properties of the curl class from leaking between requests by specifically initializing them in every case. See #23472 & r23605
git-svn-id: https://develop.svn.wordpress.org/trunk@23609 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 05:40:43 +00:00
Dion Hulse c267aa97a8 WP_HTTP: Fix returning WP_Error's on too-many-redirects after r23603 See #23682
git-svn-id: https://develop.svn.wordpress.org/trunk@23608 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 05:17:05 +00:00
Dion Hulse 86a9ca48a1 WP_HTTP: Return error responses from cURL for non-blocking requests. Contrary to popular belief, cURL's non-blocking requests are not exact non-blocking, we still wait for cURL to make the request before returning, so making this change aids in development debugging. Props SergeyBiryukov Fixes #23310
git-svn-id: https://develop.svn.wordpress.org/trunk@23607 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:47:39 +00:00
Dion Hulse c5ebf25b8e WP_HTTP: Enable developers to request the first x bytes of a document using the 'limit-response-size' parameter.
The connection to the remote server will be disconnected after x number of bytes has been received.
See #23472


git-svn-id: https://develop.svn.wordpress.org/trunk@23605 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:24:26 +00:00
Sergey Biryukov 67a775ec5b Fix typos in phpdoc. props bradparbs. fixes #23481.
git-svn-id: https://develop.svn.wordpress.org/trunk@23604 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:23:00 +00:00
Dion Hulse b3e461dddd WP_HTTP: Funnel all redirect requests through WP_HTTP::request() via wp_remote_request() to ensure that the proper transport is chosen for redirects.
This change also moves PHP Streams from redirecting internally, to us handling the redirections in PHP, which brings a more consistent behaviour between transports.
Fixes #23682



git-svn-id: https://develop.svn.wordpress.org/trunk@23603 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:10:36 +00:00
Dion Hulse f936278590 WP_HTTP: Specifically mark a static function as being static
git-svn-id: https://develop.svn.wordpress.org/trunk@23602 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:36:08 +00:00
Dion Hulse d15b5ca24b WP_HTTP: Do not send a Accept-Encoding header when we're streaming to file, or decompression has been disabled by the caller, See #22913
git-svn-id: https://develop.svn.wordpress.org/trunk@23601 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:33:12 +00:00
Dion Hulse 349fb6ed6d WP_HTTP: Allow developers to specify a Accept-Encoding header. Fixes #20142
git-svn-id: https://develop.svn.wordpress.org/trunk@23600 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:11:25 +00:00
Sergey Biryukov 1df0c7277c Remove unnecessary error suppression from get_terms(). fixes #21887.
git-svn-id: https://develop.svn.wordpress.org/trunk@23599 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:52:43 +00:00
Sergey Biryukov 2158fa203b Fix array formatting. props WraithKenny. fixes #21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@23598 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:48:20 +00:00
Sergey Biryukov 4cfc8178cf Simplify logic in WP_Widget_Recent_Posts and WP_Widget_Recent_Comments. fixes #23089.
git-svn-id: https://develop.svn.wordpress.org/trunk@23597 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:14:23 +00:00
bumpbot cb9f18d20f Compress scripts/styles: 3.6-alpha-23596.
git-svn-id: https://develop.svn.wordpress.org/trunk@23596 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:58:36 +00:00
Sergey Biryukov deb52aded0 Use correct variable. see [23592]. see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23595 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:04:33 +00:00
Ryan Boren 6d2a8d2ef0 Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23594 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 21:11:40 +00:00
Ryan Boren c61b68d896 Remove unnecessary stripslashes().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23593 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 20:55:30 +00:00
Ryan Boren 6c3d30e58a In ms-functions.php, remove unnecessary slashing, don't strip the return of get_site_option, s/stripslashes*/wp_unslash/.
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23592 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:55:53 +00:00
Ryan Boren b78520da15 Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
see #WP21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23591 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:30:38 +00:00
Daryl Koopersmith cb8328d912 Media: Reset modal after gallery insertion.
Removes hardcoded (and vestigial) 'upload' states in favor of using the default modal state.
When a media toolbar action is triggered, reset the modal after switching to the new state (as opposed to beforehand).

fixes #23675.


git-svn-id: https://develop.svn.wordpress.org/trunk@23590 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:36:21 +00:00
Daryl Koopersmith c2e7a67fbe Update Backbone to 0.9.10. Update media to handle breaking changes.
* When overriding `Backbone.sync()`, ensure the `sync` and `error` events fire consistently.

* `Model#make()` has been removed. Use `$` instead, and be sure to grab the DOM node where necessary (using `[0]`).

* `Collection#get()` now accepts `cid`s. `Collection#getByCid()` has been removed.

* When overriding the `State` constructor, bind `change` callbacks after the default `Model` constructor is called, because the `Model` constructor no longer passes the `silent` flag when calling `set()` for the default attributes.

* In 'change' events, `options.changes` was removed. It can now be accessed through `model.changed`. Check if any attributes have changed by calling `model.hasChanged()`. Also, don't mess with `model.changed`; it persists beyond the scope of a single event.

* `options.index` is no longer be set in the `add` event callback. Use `collection.indexOf(model)` can be used to retrieve the index of a model instead.

props gcorne. fixes #23262.


git-svn-id: https://develop.svn.wordpress.org/trunk@23589 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:04:06 +00:00
Andrew Nacin 16d1aa3485 Remove the three default contact methods (AIM, YIM, Jabber) for new installs. fixes #11541.
git-svn-id: https://develop.svn.wordpress.org/trunk@23588 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 03:00:34 +00:00
bumpbot 0c4b47f631 Compress scripts/styles: 3.6-alpha-23585.
git-svn-id: https://develop.svn.wordpress.org/trunk@23585 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 22:58:34 +00:00
bumpbot ec3fda3cc1 Compress scripts/styles: 3.6-alpha-23582.
git-svn-id: https://develop.svn.wordpress.org/trunk@23582 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 22:58:38 +00:00
Helen Hou-Sandi 45b4d47b02 * Simplify jQuery UI slider CSS and bring into line with admin styles.
* Merge styles into wp-admin.css and colors-*.css.
* Scope the CSS with a class so as not to conflict with the color picker, which also utilizes jQuery UI slider. Authors wanting to use built-in styling for sliders should add a class of `.wp-slider` to the container to be intialized.

props karmatosed, helen. see #23497.


git-svn-id: https://develop.svn.wordpress.org/trunk@23581 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 19:24:03 +00:00
Sergey Biryukov 3e811c5171 Use distinct error code in wp_authenticate_username_password() when user is a spammer. props sirzooro. fixes #19445.
git-svn-id: https://develop.svn.wordpress.org/trunk@23579 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:01:16 +00:00
Andrew Nacin 12882f9848 Ensure the referer functions operate completely on unslashed data: wp_referer_field(), wp_original_referer_field(), wp_get_referer(), wp_get_original_referer().
Use wp_slash() instead of addslashes().

see #21767.



git-svn-id: https://develop.svn.wordpress.org/trunk@23578 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:58:43 +00:00
Andrew Nacin 20f86706e4 Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597). see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23573 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:51:16 +00:00
Sergey Biryukov 15cc36bd4b Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217.
git-svn-id: https://develop.svn.wordpress.org/trunk@23571 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:39:52 +00:00
Ryan Boren 37fae23001 Always wp_unslash() the return of wp_get_referer().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23570 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:32 +00:00
Sergey Biryukov ad40af5edc Add a filter for attributes on menu item links. props simonwheatley, DrewAPicture, SergeyBiryukov, nacin. fixes #16738.
git-svn-id: https://develop.svn.wordpress.org/trunk@23565 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:06:35 +00:00
Ryan Boren 85782c3e39 Introduce wp_slash() and wp_unslash(). This will be used to cleanup the myriad calls to addslashes*, add_magic_quotes, stripslashes*. see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23555 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:34:48 +00:00
Ryan Boren c363aea627 Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:28:40 +00:00
Sergey Biryukov da77df683e Make wp_remove_object_terms() return false if nothing has been deleted. props kovshenin. fixes #15475.
git-svn-id: https://develop.svn.wordpress.org/trunk@23552 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:22:07 +00:00
Sergey Biryukov 80e66db499 Make wp_convert_bytes_to_hr() return consistent results on 32-bit and 64-bit systems. fixes #23626.
git-svn-id: https://develop.svn.wordpress.org/trunk@23551 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:59:10 +00:00
Sergey Biryukov c99000e98c Ensure that get_nav_menu_locations() always returns an array. props JustinSainton for initial patch. fixes #23508.
git-svn-id: https://develop.svn.wordpress.org/trunk@23550 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:51:16 +00:00
Andrew Ozz da3d4313b4 Logged out warnings: restructure the PHP code (no need for a class), props nacin, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23543 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 01:55:33 +00:00
bumpbot 85550f9f94 Compress scripts/styles: 3.6-alpha-23542.
git-svn-id: https://develop.svn.wordpress.org/trunk@23542 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 22:58:40 +00:00
Helen Hou-Sandi 144a7a190b Remove input field focus styles in DFW to enhance the distraction-free-ness. props ocean90. fixes #23648.
git-svn-id: https://develop.svn.wordpress.org/trunk@23540 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 22:22:48 +00:00
Andrew Nacin 3c4c5649fe Allow paths with two consecutive dots to be passed to home_url() and all related *_url() functions.
props markjaquith.
fixes #19032.



git-svn-id: https://develop.svn.wordpress.org/trunk@23537 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 21:04:26 +00:00
Andrew Nacin 715edd6d00 Remove direct call to add_new_user_to_blog() as this is already hooked into wpmu_activate_user.
The second argument passed by that hook is not $email, so let's change that. It is not used.

props wonderboymusic.
fixes #15173.



git-svn-id: https://develop.svn.wordpress.org/trunk@23535 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 20:28:36 +00:00
Andrew Nacin 352183c346 Revert [23359]. The post_author and comment_count post object fields will remain numeric strings for back compat. see #22324.
git-svn-id: https://develop.svn.wordpress.org/trunk@23531 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:40:26 +00:00
bumpbot 60a88cf02c Compress scripts/styles: 3.6-alpha-23530.
git-svn-id: https://develop.svn.wordpress.org/trunk@23530 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:07:34 +00:00
Andrew Nacin 94a0410530 Make Twenty Thirteen the default theme.
Has the added benefit of ensuring the WordPress Beta Tester plugin allows updates of Twenty Thirteen.

props JustinSainton.
fixes #23573.



git-svn-id: https://develop.svn.wordpress.org/trunk@23529 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:01:07 +00:00