Commit Graph

22054 Commits

Author SHA1 Message Date
Andrew Nacin 085141a6ba No need to check for the presence of a current user in a privileged ajax action. see #23665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23889 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-03 04:34:14 +00:00
Andrew Nacin cc88fc4d85 Pass the tag object instead of just the tag ID to topic_count_text_callback. see [23741]. see #21198.
git-svn-id: https://develop.svn.wordpress.org/trunk@23888 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-03 03:55:05 +00:00
bumpbot b813f82c55 Compress scripts/styles: 3.6-alpha-23887.
git-svn-id: https://develop.svn.wordpress.org/trunk@23887 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-02 22:58:42 +00:00
Andrew Ozz 28a928ddb1 Autosave: use heartbeat to determine when connection is lost and disable the Save and Publish buttons. Re-enable the buttons when connection is restored. Props dh-shredder, see #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23886 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-02 22:51:09 +00:00
Andrew Ozz 8a8d7369d7 Revisions: remove the new _wp_last_revision_matches_current_post(), can be replaced by a simple revisions version check. Fixes #23913
git-svn-id: https://develop.svn.wordpress.org/trunk@23885 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-02 19:39:48 +00:00
Ryan Boren c0e42b5666 Preserve alpha in WP_Image_Editor_GD when images are not resized.
Props joehoyle
see #23039


git-svn-id: https://develop.svn.wordpress.org/trunk@23884 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-01 15:21:19 +00:00
bumpbot 311d7429d0 Compress scripts/styles: 3.6-alpha-23883.
git-svn-id: https://develop.svn.wordpress.org/trunk@23883 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-31 00:58:35 +00:00
Andrew Ozz ec5c661c7d Heartbeat: improve setting the errorstate, add ajaxurl to the settings object when loading on the front-end, some code cleanup, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23882 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-30 23:32:12 +00:00
Andrew Ozz 93f1856d06 Logged out warnings: by default, load only in the admin. Plugins and themes can load on the front-end when needed, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23881 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-30 19:17:09 +00:00
Mark Jaquith 3f1f5162b6 Avoid PHP notice on blank chat lines. props SergeyBiryukov. see #23625
git-svn-id: https://develop.svn.wordpress.org/trunk@23880 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-30 17:04:08 +00:00
Sergey Biryukov d26bddce5c Consistently show "Customize" item in the admin menu. props ethitter. fixes #21413.
git-svn-id: https://develop.svn.wordpress.org/trunk@23879 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 23:25:06 +00:00
Sergey Biryukov f25bae2168 Use correct escaping function. see #23900.
git-svn-id: https://develop.svn.wordpress.org/trunk@23878 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 22:20:18 +00:00
Lance Willett ff64e5d3b3 Twenty Thirteen: update Chat post format styles to match markup changes in r23876. See #23869.
git-svn-id: https://develop.svn.wordpress.org/trunk@23877 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 21:14:43 +00:00
Mark Jaquith 26ba022571 Chat post format code cleanup.
see #23625. props obenland.

git-svn-id: https://develop.svn.wordpress.org/trunk@23876 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 21:06:37 +00:00
bumpbot 9ffb607ce2 Compress scripts/styles: 3.6-alpha-23875.
git-svn-id: https://develop.svn.wordpress.org/trunk@23875 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:58:38 +00:00
Helen Hou-Sandi bd32ccb3ca Since post format meta for images now takes an attachment ID only, make sure we label it appropriately and don't do things like esc_url() the value. fixes #23900.
git-svn-id: https://develop.svn.wordpress.org/trunk@23874 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:56:18 +00:00
Mark Jaquith a2855f94b3 Sanity checks on image metadata to avoid warnings, etc.
fixes #23733. props wonderboymusic.

git-svn-id: https://develop.svn.wordpress.org/trunk@23873 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:51:35 +00:00
Mark Jaquith f18cddb1e1 Make sure the first revision is seen as coming from emptiness, so it can be restored.
props adamsilverstein. fixes #23898.

git-svn-id: https://develop.svn.wordpress.org/trunk@23872 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:50:09 +00:00
Mark Jaquith c51895c997 Add "Customize" as first item under Appearance menu.
fixes #21413. props ryanhellyer, obenland, DrewAPicture

git-svn-id: https://develop.svn.wordpress.org/trunk@23871 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:39:54 +00:00
Mark Jaquith 9b90cd1698 Fix some Insert-into-Post for Audio/Video bugs.
props wonderboymusic. see #23831.

git-svn-id: https://develop.svn.wordpress.org/trunk@23870 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:35:23 +00:00
Sergey Biryukov 43e15b47d4 Make a copy of post content to avoid changing it in get_the_image(). Remove unnecessary assignment from get_the_media(). props wonderboymusic for initial patch. fixes #23888.
git-svn-id: https://develop.svn.wordpress.org/trunk@23869 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 19:10:31 +00:00
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