Commit Graph

22046 Commits

Author SHA1 Message Date
Mark Jaquith
240dc4b968 correct a revision/tooltip mismatch.
props adamsilverstein. see #23497

git-svn-id: https://develop.svn.wordpress.org/trunk@23831 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 01:51:12 +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
Lance Willett
ac87a472f7 Twenty Thirteen: refresh Quote post format styles based on new default markup, see r23822. Props obenland, fixes #23852.
git-svn-id: https://develop.svn.wordpress.org/trunk@23829 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 22:28:31 +00:00
Lance Willett
c22e908e32 Twenty Thirteen: add support and styling for Audio structured post format. Moves audio content out from the main post content, using the_audio() and the_extra_content(). Props obenland, fixes #23871.
git-svn-id: https://develop.svn.wordpress.org/trunk@23828 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 22:08:16 +00:00
Lance Willett
a3e4aba14d Twenty Thirteen: fix "Must log in to post comment" message misalignment. Props beaulebens and obenland, fixes #23872.
git-svn-id: https://develop.svn.wordpress.org/trunk@23827 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:49:08 +00:00
Lance Willett
b8aff153c9 Twenty Ten: improve how gallery image IDs are retrieved for use in the Gallery post format template. Props to obenland for original patch, fixes #23617.
git-svn-id: https://develop.svn.wordpress.org/trunk@23826 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:37:34 +00:00
Lance Willett
2d018dd75e Twenty Thirteen: change version compare string to "3.6-alpha" to avoid an error for alpha and beta testers during development. See #23819, props kovshenin.
git-svn-id: https://develop.svn.wordpress.org/trunk@23825 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:36:19 +00:00
Lance Willett
cc97cb633d Twenty Eleven: improve how gallery image IDs are retrieved for use in the Gallery post format template. Props to obenland for original patch, fixes #22907.
git-svn-id: https://develop.svn.wordpress.org/trunk@23824 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 20:34:28 +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
Lance Willett
334e0eb13e Twenty Thirteen: take full advantage of new structured post format template functions, see r23819.
Extract first video or image from Video and Image post format posts, and place the item above the title within its own HTML wrapper with `the_video()` and `the_image()'. Also, remove the item from the post content with `the_extra_content()`.

This allows us to meet the design requirements for Twenty Thirteen with minimal changes to the theme template files. Fixes #23620.

git-svn-id: https://develop.svn.wordpress.org/trunk@23820 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 18:51:47 +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
Lance Willett
17d4a3302b Twenty Thirteen: better styles for Chat structured post format output. Props Joen for starter CSS, closes #23869.
git-svn-id: https://develop.svn.wordpress.org/trunk@23817 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 17:16:31 +00:00
Lance Willett
0496ad8fd8 Twenty Thirteen: add back-compat function to avoid activation with older WordPress installs. Props kovshenin, see #23819 and #13780.
git-svn-id: https://develop.svn.wordpress.org/trunk@23816 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 17:06:19 +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
Mark Jaquith
348f0f4fd5 *Very* rough runthough of revisions.js for JS style, variable names, etc.
Consider this the lawnmower that precedes Daryl's scissors.

see #23497

git-svn-id: https://develop.svn.wordpress.org/trunk@23813 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 12:59:41 +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
Mark Jaquith
51708e83c6 Move nav menus to a tabbed interface, so that users with a lot of locations can do bulk assignment.
props DrewAPicture, lessbloat. fixes #23770

git-svn-id: https://develop.svn.wordpress.org/trunk@23810 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 11:46:08 +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
Mark Jaquith
40fdf5107e RTL for Nav Menu tweaks. see #23641. see #23645. props lessbloat
git-svn-id: https://develop.svn.wordpress.org/trunk@23808 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:53:26 +00:00
Mark Jaquith
4632d80f6f Use GET for nav menu selection, and default action.
fixes #23813. props helen.

git-svn-id: https://develop.svn.wordpress.org/trunk@23807 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:51:17 +00:00
Mark Jaquith
34ce2c00e5 Drop the_chat() into twentythirteen. Style updates to follow — just wanted the_chat() to be utilized somewhere.
props lancewillett. see #23869

git-svn-id: https://develop.svn.wordpress.org/trunk@23806 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:45:49 +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
Lance Willett
929093695e Twenty Thirteen: explicitly declare 'link' and 'video' as the only (current) structured post formats in Twenty Thirteen. See #23852 #23619 #23864 and #23620.
git-svn-id: https://develop.svn.wordpress.org/trunk@23803 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 05:11:41 +00:00
Lance Willett
0a251f5b20 Twenty Thirteen: add styles for default core output for structured quote post format. Depends on #23347 for the improved markup for quote post formats. Props obenland, see #23852.
git-svn-id: https://develop.svn.wordpress.org/trunk@23802 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 05:09:14 +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
Lance Willett
f9316e4a8b Twenty Thirteen: remove HTML5 argument for search form, using a filter instead. See #23850, closes #23701.
git-svn-id: https://develop.svn.wordpress.org/trunk@23799 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 20:34:37 +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
Lance Willett
8d54218162 Twenty Thirteen: change link URL function name to twentythirteen_get_link_url(), props obenland. Also remove function_exists() check since this function should not be pluggable, by design. Closes #23619.
git-svn-id: https://develop.svn.wordpress.org/trunk@23795 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-25 16:36:27 +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
Lance Willett
e9746944fa Twenty Ten: change gallery category post meta output to check for a "gallery" category using get_term_by() to avoid a possible WP_Error for an empty result by getting a false (boolean) return value instead.
And, change link output to use `get_category_link()` instead of `get_term_link()`.

Props SergeyBiryukov and keoshi, fixes #23837.

git-svn-id: https://develop.svn.wordpress.org/trunk@23793 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 22:56:55 +00:00
Lance Willett
309fb3d7f5 Twenty Eleven: use new URL extraction function, get_the_url() for link post formats in the Ephemera widget. Props obenland, fixes #23618.
git-svn-id: https://develop.svn.wordpress.org/trunk@23792 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 22:42:37 +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
Andrew Ozz
5c4cff0a29 Editor: fix switching Text to Visual and back if TinyMCE fails to initialise, fixes #23235
git-svn-id: https://develop.svn.wordpress.org/trunk@23790 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 20:43: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
Lance Willett
ca74e47950 Twenty Thirteen: use new get_the_url() function to find first link in a "Link" post format post. See #23619, props Frank Klein for the original patch.
git-svn-id: https://develop.svn.wordpress.org/trunk@23787 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:57:50 +00:00
Lance Willett
e8f03e4555 Twenty Thirteen: we loves us some structured post formats. See #23619 #23620 #23621.
git-svn-id: https://develop.svn.wordpress.org/trunk@23786 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:54:05 +00:00
Lance Willett
6bfa29bd10 Twenty Thirteen: improve separation between Link and Aside posts, props Joen for starter CSS rules. Fixes #23818 and closes #23707 as related.
git-svn-id: https://develop.svn.wordpress.org/trunk@23785 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 18:35:14 +00:00
Sergey Biryukov
3b91b9e622 Update RTL styles for Customizer. see #23449.
git-svn-id: https://develop.svn.wordpress.org/trunk@23784 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 17:46:48 +00:00
Lance Willett
b62344098c Twenty Thirteen: remove hover styles for screen reader text.
git-svn-id: https://develop.svn.wordpress.org/trunk@23783 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 17:35:05 +00:00
Lance Willett
a001b8541f Twenty Thirteen: use gallery shortcode filter for featured galleries, props obenland. Closes #23823.
git-svn-id: https://develop.svn.wordpress.org/trunk@23782 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-22 17:29:19 +00:00