Commit Graph

22663 Commits

Author SHA1 Message Date
Lance Willett 7587a581e3 Twenty Thirteen: simpler name for custom image size for image post formats, see #23620.
git-svn-id: https://develop.svn.wordpress.org/trunk@23848 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 05:24:12 +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 0f9ebf4c63 Post Format prompt copy tweaks. props sabreuse. see #19570
git-svn-id: https://develop.svn.wordpress.org/trunk@23845 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 04:19:44 +00:00
Mark Jaquith f290fe2b51 Nav Menus help tab updates.
fixes #23608. props DrewAPicture, Ipstenu, JerrySarcastic.

git-svn-id: https://develop.svn.wordpress.org/trunk@23844 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 03:39:34 +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
Lance Willett c8449285ae Bundled themes: remove cases of `:active` and `:hover` pseudo-class selectors used for accessibility. These cases need `:focus` only. See r23783 and #23803.
git-svn-id: https://develop.svn.wordpress.org/trunk@23841 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 16:37:42 +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
Lance Willett 38a4515766 Twenty Thirteen: improvements to Image post format handling to use a custom image size instead of filtering a `$content_width` variable.
Includes CSS cleanup and markup improvements to both video and image templates, moving the media HTML piece out of the `header` element.

Props obenland, closes #23620.

git-svn-id: https://develop.svn.wordpress.org/trunk@23839 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 07:02:51 +00:00
Lance Willett 3579782a0e Twenty Thirteen: back compat file PHPDoc updates, thanks DrewAPicture for the nudge. See #23819.
git-svn-id: https://develop.svn.wordpress.org/trunk@23838 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 06:53:45 +00:00
Lance Willett d8b58a167d Twenty Thirteen: better back compat handling by moving version compare before the include to avoid loading the file altogether. Also prevent Customizer views. Props obenland, closes #23819.
git-svn-id: https://develop.svn.wordpress.org/trunk@23837 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 06:45:56 +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
Lance Willett 5f6f7c663f Twenty Thirteen: style native `mediaelement` video player with a black background color. Props obenland, closes #23821.
git-svn-id: https://develop.svn.wordpress.org/trunk@23835 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 04:44:27 +00:00
Mark Jaquith 15a0ae209d Kill the HR on revisions page. see #23497
git-svn-id: https://develop.svn.wordpress.org/trunk@23834 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 03:17:03 +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
Mark Jaquith b134331956 Make sure that the ID of the right revision is not less than the ID of the left revision
see #23497

git-svn-id: https://develop.svn.wordpress.org/trunk@23832 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-28 02:49:55 +00:00
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