Commit Graph

21883 Commits

Author SHA1 Message Date
Sergey Biryukov 3739c3a14e Fix incorrect script handle and a notice. props ocean90. fixes #23896.
git-svn-id: https://develop.svn.wordpress.org/trunk@23868 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 17:33:35 +00:00
Sergey Biryukov 1a96cb8355 Make sure the autosave post exists before getting its meta. props kovshenin. fixes #23539.
git-svn-id: https://develop.svn.wordpress.org/trunk@23867 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 16:37:46 +00:00
Sergey Biryukov 729396af3a Move _show_post_preview() back next to _set_preview(). see #23539.
git-svn-id: https://develop.svn.wordpress.org/trunk@23866 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 16:31:33 +00:00
bumpbot 07b28e52f7 Compress scripts/styles: 3.6-alpha-23865.
git-svn-id: https://develop.svn.wordpress.org/trunk@23865 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:58:38 +00:00
Mark Jaquith eabfc6bd50 Give the active post format tab a bit of emphasis.
git-svn-id: https://develop.svn.wordpress.org/trunk@23864 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:37:40 +00:00
Mark Jaquith a7d3775328 Gallery is a no-UI post format.
git-svn-id: https://develop.svn.wordpress.org/trunk@23863 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:17:52 +00:00
Mark Jaquith 07f5ffd015 Use the revisioned post format metadata when previewing.
fixes #23539. props kovshenin.

git-svn-id: https://develop.svn.wordpress.org/trunk@23862 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 12:08:42 +00:00
Sergey Biryukov 6813288d59 Remove duplicate array keys. props kovshenin. see #19570.
git-svn-id: https://develop.svn.wordpress.org/trunk@23861 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 11:07:09 +00:00
bumpbot 7053d85f91 Compress scripts/styles: 3.6-alpha-23860.
git-svn-id: https://develop.svn.wordpress.org/trunk@23860 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 10:58:36 +00:00
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
Mark Jaquith 31858e2511 Simplify the accordion sibling-section-closing JS.
see #23890

git-svn-id: https://develop.svn.wordpress.org/trunk@23858 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 09:30:48 +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
Mark Jaquith 9910c64764 Use jQuery.on() properly in accordion code. Some other cleanup.
see #23890.

git-svn-id: https://develop.svn.wordpress.org/trunk@23856 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 08:28:58 +00:00
Mark Jaquith 677254275c Remove duplicated code that was accidentally committed in [23417].
fixes #23889. props DrewAPicture.

git-svn-id: https://develop.svn.wordpress.org/trunk@23855 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:50:40 +00:00
Mark Jaquith 6c42dea13f Do not attempt a slide transition if the current and switched-to post
formats both have no UI. Do not slide if clicking on the current format.

see #19570

git-svn-id: https://develop.svn.wordpress.org/trunk@23854 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:46:24 +00:00
Mark Jaquith cb6e2622e0 Use jQuery.on() properly. Add some slideUp()/slideDown() transitions to ease post format switches. see #19570
git-svn-id: https://develop.svn.wordpress.org/trunk@23853 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 07:06:21 +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
Mark Jaquith 37f14ced6b Defer JS to document ready
git-svn-id: https://develop.svn.wordpress.org/trunk@23851 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:42:54 +00:00
Mark Jaquith b34d814578 Clean up mixed spaces/tabs in post-formats.js
git-svn-id: https://develop.svn.wordpress.org/trunk@23850 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 06:33:55 +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
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