Commit Graph

11647 Commits

Author SHA1 Message Date
Bot (Assets)
9fbd318d49 Compress scripts/styles: 3.6-beta1-23909.
git-svn-id: http://core.svn.wordpress.org/trunk@23910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 20:58:48 +00:00
Mark Jaquith
08d7f2c1b0 3.6-beta1
git-svn-id: http://core.svn.wordpress.org/trunk@23906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 16:09:09 +00:00
Bot (Assets)
d148e3d6f2 Compress scripts/styles: 3.6-alpha-23905.
git-svn-id: http://core.svn.wordpress.org/trunk@23905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 16:06:50 +00:00
Bot (Assets)
c1c8cf2744 Compress scripts/styles: 3.6-alpha-23900.
git-svn-id: http://core.svn.wordpress.org/trunk@23900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 08:58:49 +00:00
Mark Jaquith
15dc5a3718 Standardize the post format theme API functions with the_post_format_THING() and get_the_post_format_THING().
fixes #23927

git-svn-id: http://core.svn.wordpress.org/trunk@23899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 08:09:02 +00:00
Mark Jaquith
2a38966a97 Further cleanup of revisions code. Probably not the last.
see #23901. props adamsilverstein, azaozz, ocean90.

git-svn-id: http://core.svn.wordpress.org/trunk@23898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 07:53:49 +00:00
Andrew Nacin
10d898ecbb Remove _wp_delete_nav_menu(). wp_delete_nav_menu() should instead remove the menu from theme locations, which was the only difference between the functions. see #23119.
git-svn-id: http://core.svn.wordpress.org/trunk@23897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 04:28:12 +00:00
Andrew Nacin
8fdaa65f91 Prevent classid="clsid:undefined". props SergeyBiryukov. see #23876.
git-svn-id: http://core.svn.wordpress.org/trunk@23896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 20:55:20 +00:00
Andrew Nacin
7858e5e9a8 Prevent a JS error when working with embedded media in TinyMCE.
props wonderboymusic. fixes #23876.



git-svn-id: http://core.svn.wordpress.org/trunk@23895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 20:49:41 +00:00
Bot (Assets)
0d19695389 Compress scripts/styles: 3.6-alpha-23894.
git-svn-id: http://core.svn.wordpress.org/trunk@23894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 18:58:47 +00:00
Andrew Nacin
ec0e3724e1 Backbone 1.0.0.
Update media JS to reflect changes. Please open new tickets for remaining issues.

props koopersmith.
fixes #23830.



git-svn-id: http://core.svn.wordpress.org/trunk@23893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 17:40:52 +00:00
Andrew Nacin
163ebbe809 jQuery UI 1.10.2.
props ocean90. fixes #23370.



git-svn-id: http://core.svn.wordpress.org/trunk@23892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 17:36:25 +00:00
Andrew Nacin
18b07129c9 Pass the tag object instead of just the tag ID to topic_count_text_callback. see [23741]. see #21198.
git-svn-id: http://core.svn.wordpress.org/trunk@23888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-03 03:55:05 +00:00
Bot (Assets)
5040c95c34 Compress scripts/styles: 3.6-alpha-23887.
git-svn-id: http://core.svn.wordpress.org/trunk@23887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-02 22:58:42 +00:00
Andrew Ozz
2466f6a726 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: http://core.svn.wordpress.org/trunk@23886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-02 22:51:09 +00:00
Andrew Ozz
51826e4cde Revisions: remove the new _wp_last_revision_matches_current_post(), can be replaced by a simple revisions version check. Fixes #23913
git-svn-id: http://core.svn.wordpress.org/trunk@23885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-02 19:39:48 +00:00
Ryan Boren
6806d48a90 Preserve alpha in WP_Image_Editor_GD when images are not resized.
Props joehoyle
see #23039


git-svn-id: http://core.svn.wordpress.org/trunk@23884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-01 15:21:19 +00:00
Bot (Assets)
b7d31db410 Compress scripts/styles: 3.6-alpha-23883.
git-svn-id: http://core.svn.wordpress.org/trunk@23883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-31 00:58:35 +00:00
Andrew Ozz
651534f24e 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: http://core.svn.wordpress.org/trunk@23882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-30 23:32:12 +00:00
Andrew Ozz
bdc3e9bdb9 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: http://core.svn.wordpress.org/trunk@23881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-30 19:17:09 +00:00
Mark Jaquith
4b50a68937 Avoid PHP notice on blank chat lines. props SergeyBiryukov. see #23625
git-svn-id: http://core.svn.wordpress.org/trunk@23880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-30 17:04:08 +00:00
Mark Jaquith
6d085d83d5 Chat post format code cleanup.
see #23625. props obenland.

git-svn-id: http://core.svn.wordpress.org/trunk@23876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 21:06:37 +00:00
Bot (Assets)
9b90808fe9 Compress scripts/styles: 3.6-alpha-23875.
git-svn-id: http://core.svn.wordpress.org/trunk@23875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 20:58:38 +00:00
Mark Jaquith
fec4b66f5b Sanity checks on image metadata to avoid warnings, etc.
fixes #23733. props wonderboymusic.

git-svn-id: http://core.svn.wordpress.org/trunk@23873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 20:51:35 +00:00
Mark Jaquith
925e7f5bd6 Make sure the first revision is seen as coming from emptiness, so it can be restored.
props adamsilverstein. fixes #23898.

git-svn-id: http://core.svn.wordpress.org/trunk@23872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 20:50:09 +00:00
Mark Jaquith
e3b7b18d26 Fix some Insert-into-Post for Audio/Video bugs.
props wonderboymusic. see #23831.

git-svn-id: http://core.svn.wordpress.org/trunk@23870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 20:35:23 +00:00
Sergey Biryukov
c254787f0c 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: http://core.svn.wordpress.org/trunk@23869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 19:10:31 +00:00
Sergey Biryukov
90dd5c458e Make sure the autosave post exists before getting its meta. props kovshenin. fixes #23539.
git-svn-id: http://core.svn.wordpress.org/trunk@23867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 16:37:46 +00:00
Sergey Biryukov
48f5701214 Move _show_post_preview() back next to _set_preview(). see #23539.
git-svn-id: http://core.svn.wordpress.org/trunk@23866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 16:31:33 +00:00
Bot (Assets)
fb868a2164 Compress scripts/styles: 3.6-alpha-23865.
git-svn-id: http://core.svn.wordpress.org/trunk@23865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 12:58:38 +00:00
Mark Jaquith
1127ad37a8 Use the revisioned post format metadata when previewing.
fixes #23539. props kovshenin.

git-svn-id: http://core.svn.wordpress.org/trunk@23862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 12:08:42 +00:00
Bot (Assets)
427fc928b1 Compress scripts/styles: 3.6-alpha-23860.
git-svn-id: http://core.svn.wordpress.org/trunk@23860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 10:58:36 +00:00
Mark Jaquith
8b3f9ab751 Revision our post format postmeta.
props kovshenin, WraithKenny. see #20564.

git-svn-id: http://core.svn.wordpress.org/trunk@23859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 10:37:44 +00:00
Bot (Assets)
fc3522a1b7 Compress scripts/styles: 3.6-alpha-23857.
git-svn-id: http://core.svn.wordpress.org/trunk@23857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 08:58:41 +00:00
Bot (Assets)
a33987528b Compress scripts/styles: 3.6-alpha-23852.
git-svn-id: http://core.svn.wordpress.org/trunk@23852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 06:58:40 +00:00
Andrew Ozz
7b831aabd3 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: http://core.svn.wordpress.org/trunk@23849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 05:28:44 +00:00
Mark Jaquith
22b45b2fbb Add compat code for 'image' post format.
see #19570. props wonderboymusic.

git-svn-id: http://core.svn.wordpress.org/trunk@23847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 05:21:23 +00:00
Bot (Assets)
2840f02efc Compress scripts/styles: 3.6-alpha-23846.
git-svn-id: http://core.svn.wordpress.org/trunk@23846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 04:58:39 +00:00
Mark Jaquith
c93e0231af 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: http://core.svn.wordpress.org/trunk@23843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 03:35:41 +00:00
Mark Jaquith
3575abd055 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: http://core.svn.wordpress.org/trunk@23842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 23:45:19 +00:00
Mark Jaquith
60073bb5a4 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: http://core.svn.wordpress.org/trunk@23840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 07:28:27 +00:00
Mark Jaquith
816618be68 Rename the_extra_content() to the_remaining_content().
fixes #23877.

git-svn-id: http://core.svn.wordpress.org/trunk@23836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 05:59:18 +00:00
Bot (Assets)
3872a8cb55 Compress scripts/styles: 3.6-alpha-23833.
git-svn-id: http://core.svn.wordpress.org/trunk@23833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 02:58:39 +00:00
Andrew Ozz
fd602a987b 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: http://core.svn.wordpress.org/trunk@23830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 00:56:44 +00:00
Mark Jaquith
cccb2939db 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: http://core.svn.wordpress.org/trunk@23823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 20:21:38 +00:00
Mark Jaquith
d1d2a3a3ff Better default quote markup for post format fallbacks.
props obenland. see #23347

git-svn-id: http://core.svn.wordpress.org/trunk@23822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 19:21:56 +00:00
Mark Jaquith
2a45fd4453 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: http://core.svn.wordpress.org/trunk@23821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 19:07:58 +00:00
Mark Jaquith
1b83157127 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: http://core.svn.wordpress.org/trunk@23819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 18:34:59 +00:00
Mark Jaquith
acfeb6f20f 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: http://core.svn.wordpress.org/trunk@23818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 18:11:56 +00:00
Bot (Assets)
13378a55ed Compress scripts/styles: 3.6-alpha-23815.
git-svn-id: http://core.svn.wordpress.org/trunk@23815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 14:58:40 +00:00