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