Daryl Koopersmith
0c42e6121a
Add QuickPress support for new media workflow.
...
* Adds the code required to include the new media scripts, styles, and settings to `media_button()`.
* Improves script dependencies, namely making `media-upload` require `media-views`.
* Some CSS tweaks for the making the new button work well with QuickPress.
see #21390 , fixes #22021 .
git-svn-id: http://core.svn.wordpress.org/trunk@22072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 20:04:34 +00:00
Bot (Assets)
8c36f67e11
Compress scripts/styles: 3.5-alpha-22071.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 19:21:47 +00:00
Andrew Nacin
f944aba4e5
Fix option name. props ocean90, see #21719 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 19:19:18 +00:00
Lance Willett
b4176c827e
Twenty Twelve: fix incorrect math in style.css rem example calculation, props TomasM. Closes #22019 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 18:43:39 +00:00
Ryan Boren
9f32de9496
Allow get_comments() to query for explicit value of comment_approved.
...
Props dd32, nbachiyski
fixes #21101
git-svn-id: http://core.svn.wordpress.org/trunk@22068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 18:08:02 +00:00
Andrew Nacin
32b4571c18
Add page templates to the Twenty Twelve POT file. Remove tags from theme POT files. fixes #22016 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 17:51:53 +00:00
Lance Willett
1692675bfc
Twenty Twelve: better logic for on/off setting to be translated to turn off the font if translators explicitly say so. Also minor fixes to spelling and to use yoda comparison. Fixes #21751 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 17:44:54 +00:00
Ryan Boren
115d53941b
Add domain_exists filter. Props jamescollins. fixes #21142
...
git-svn-id: http://core.svn.wordpress.org/trunk@22065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 17:30:34 +00:00
Ryan Boren
c224c2fee5
Remove dupe/deprecated code from sites.php.
...
Props wonderboymusic
fixes #21553
git-svn-id: http://core.svn.wordpress.org/trunk@22064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 17:11:07 +00:00
Andrew Nacin
038f8a1929
Add missing color picker + customizer CSS. props mattwiebe. see #21206 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 17:08:32 +00:00
Bot (Translations)
9435d21475
POT, generated from r22061
...
git-svn-id: http://core.svn.wordpress.org/trunk@22062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 16:19:18 +00:00
Lance Willett
1b06a6987d
Twenty Twelve: consolidate "Apologies" strings, see #22016 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:43:44 +00:00
Ryan Boren
f8f60ac01b
Introduce create_posts meta capability. Props scribu, nacin, casben79. see #16714
...
git-svn-id: http://core.svn.wordpress.org/trunk@22060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:33:19 +00:00
Lance Willett
b5853fcd19
Twenty Twelve: fix comments in two files, for accuracy.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:23:15 +00:00
Lance Willett
0227278f26
Twenty Twelve: consistent indentation for content-* template files.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:20:52 +00:00
Lance Willett
df9af02a2c
Twenty Twelve: clean up tag.php extra newline, see r22048 and #21951 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:20:01 +00:00
Ryan Boren
afe19c7437
Add publish_post meta cap. Props nacin. fixes #21288
...
git-svn-id: http://core.svn.wordpress.org/trunk@22056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 12:48:59 +00:00
Dion Hulse
da06db31a3
Avoid a warning in wp_remote_post() when using arrays or objects in the body param by using a more verbose check, introduced with [22047]. See #14184
...
git-svn-id: http://core.svn.wordpress.org/trunk@22055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 10:09:43 +00:00
Andrew Nacin
582d46c937
Make Twenty Twelve the default theme for new installs. props markoheijnen, SergeyBiryukov. see #21789 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:47:51 +00:00
Daryl Koopersmith
3cf9d9d905
Add quick insert buttons to attachment views in the library and remove buttons to attachment views in the gallery editor. see #21390 , #21809 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:45:26 +00:00
Andrew Nacin
584f39e365
Make a string not empty to it ends up in the POT file.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:38:16 +00:00
Bot (Translations)
62248f2a6f
POT, generated from r22050
...
git-svn-id: http://core.svn.wordpress.org/trunk@22051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:34:20 +00:00
Andrew Nacin
82b2910eab
Twenty Twelve 1.0, barring any last-minute tweaks. see #21789 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:32:33 +00:00
Andrew Nacin
d68afd936e
Simplify the Open Sans translator voodoo. see #21751 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:30:27 +00:00
Andrew Nacin
3d954a4b60
Add tag.php and category.php to Twenty Twelve. While by no means required, it pulls some extra logic out of archive.php, instead leveraging the template hierarchy so it is hopefully more understandable to users tweaking their themes. Use alternative control structure syntax in all templates. fixes #21951 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 07:01:16 +00:00
Dion Hulse
97bfd2db9a
Allow wp_remote_post to send a body consisting of entirely '0', which may be used when PUT'ing or POST'ing data to a API which accepts a raw chunk of data rather than key=value pairs (Such as some REST API's). Fixes #14184
...
git-svn-id: http://core.svn.wordpress.org/trunk@22047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:54:17 +00:00
Daryl Koopersmith
e14d191fb6
Media JS: Use a custom Attachment views for both the media library and gallery screens.
...
To do so, the Attachment view code had to be shifted above the Workspace view code to ensure the subview is defined (preventing errors).
Also corrects an error in `wp.media.view.Attachments.add` where it was still using the default Attachment view.
see #21390 , #21809 .
git-svn-id: http://core.svn.wordpress.org/trunk@22046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:53:54 +00:00
Daryl Koopersmith
7ac50f4811
Media JS: Give the master Workspace view control over which Attachment view it uses. see #21390 , #21807 , #21809 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:39:12 +00:00
Daryl Koopersmith
a9d3197c28
Media JS: Move the modal box's title from being stored in the modal view to being stored as an attribute on the workflow. Update modal titles for both the post media and featured image workflows. see #21390 , #21776 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:20:22 +00:00
Daryl Koopersmith
45c255a6a9
Use the attachment id to look up the mime type icon instead of the raw mime type string, as wp_mime_type_icon() runs a broader search when using an id. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:07:56 +00:00
Mark Jaquith
e3dc0220ff
Make Multisite work when WordPress is installed in a subdirectory. You can now have WordPress Multisite as an SVN external or a Git submodule! props johnjamesjacoby, evansolomon, duck_, jakemgold, nacin, markjaquith. see #19796
...
git-svn-id: http://core.svn.wordpress.org/trunk@22042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 06:07:21 +00:00
Daryl Koopersmith
336cd3d632
When uploading files through the Plupload bridge, attempt to detect images on upload. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 05:52:42 +00:00
Daryl Koopersmith
588be949b1
Automatically add any uploading media files to the group of selected files.
...
This also automatically adds any files uploaded on the gallery screen to that gallery.
see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 05:28:37 +00:00
Andrew Nacin
2cdd7b7840
Don't give a 'Beta Media' string to the translators that is only temporary.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 05:19:34 +00:00
Andrew Nacin
143f4da6a6
If a pre-3.0 (MU era) network disables ms-files manually, they don't need /sites/ in their wp-content/uploads directory. see #19235 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 04:56:58 +00:00
Andrew Nacin
8f62dfaf00
XML-RPC: Introduce wp.getRevisions and wp.restoreRevision.
...
props brandondove, koke, markoheijnen, JustinSainton, maxcutler.
fixes #21397 .
git-svn-id: http://core.svn.wordpress.org/trunk@22037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 04:17:15 +00:00
Daryl Koopersmith
eec758fd26
BUTTON.
...
Add a "Beta Media" button to the post editor. Currently, it is only capable of inserting images. Other attachment types and galleries need not apply... yet.
* Added `wp.media.string.image( attachment, props )` for generating an image as a string from an attachment and relevant attachment display properties.
* Properly localized the gallery workflow.
* Added `Workflow.update()`, which closes the modal, triggers an `update` event, and resets the selection.
* Added `wp.mce.media` to manage the various media workflows for editors.
see #21813 , #21814 , #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 04:09:43 +00:00
Lance Willett
3ffb74a6ef
Twenty Twelve: better i18n for next and previous post arrow entities in single.php, props SergeyBiryukov. Fixes #22008 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 03:47:21 +00:00
Andrew Nacin
646a4fd1e9
XML-RPC: Add an if_not_modified_since argument to wp.editPost.
...
Accepts a GMT date, which is used to compare to the current post_modified_gmt
value for the post being edited. If the post has since been edited (as in, too
old of a date was passed), the edit is rejected as overwriting a newer version.
It is rejected with a HTTP 409 Conflict status code. (Fancy.)
props koke, markoheinjen.
Tests: [UT1049]
see #21397 .
git-svn-id: http://core.svn.wordpress.org/trunk@22034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 03:39:40 +00:00
Andrew Nacin
6405337afc
Update underlying color picker library. props mattwiebe. see #21206 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 02:18:55 +00:00
Andrew Ozz
a43feb2b4d
Fix image button in DFW, props ocean90, see #21019
...
git-svn-id: http://core.svn.wordpress.org/trunk@22032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 02:17:04 +00:00
Andrew Ozz
b28a6c066d
Consolidated patch for retina support, props taylorde, props empireoflight, fixes #21019
...
git-svn-id: http://core.svn.wordpress.org/trunk@22031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 02:12:54 +00:00
Andrew Nacin
0b6cf76853
New color picker, props mattwiebe. see #21206 .
...
Replaces Farbtastic. May change further in response to user testing.
git-svn-id: http://core.svn.wordpress.org/trunk@22030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 01:57:38 +00:00
Daryl Koopersmith
9a0255e60d
Apply localized strings to media modal. see #21390 , #21808 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 01:11:04 +00:00
Andrew Ozz
eee7b5a005
Too much z-index on the admin submenus, see #21368
...
git-svn-id: http://core.svn.wordpress.org/trunk@22028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 01:09:38 +00:00
Daryl Koopersmith
96a572d986
Media JS: Improve UX for which buttons show when inserting media into a post.
...
'Insert into post' is the primary action when either one item is selected, or any number of non-image items are selected. If multiple images are selected, 'Insert into post' becomes secondary, and 'Create a new gallery' takes the primary spot.
Adds a method to `get` Button views from the Toolbar. Adds a model for certain button attributes to allow size, style, and text to be easily changed.
see #21390 , #21808 , #21809 .
git-svn-id: http://core.svn.wordpress.org/trunk@22027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 00:59:04 +00:00
Andrew Nacin
fc5fb63599
Browse and install your wordpress.org plugin favorites from the plugin installer. props Otto42, Japh, DrewAPicture. fixes #22002 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 00:47:01 +00:00
Andrew Ozz
3c6ef163d6
Fix background on split buttons, remove redundant !important, remove spacers, a little css cleanup, see #18141
...
git-svn-id: http://core.svn.wordpress.org/trunk@22025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 00:41:49 +00:00
Bot (Assets)
baaf5c4cf8
Compress scripts/styles: 3.5-alpha-22024.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-26 22:58:46 +00:00
Daryl Koopersmith
70616185c6
Remove internal TinyMCE attributes when generating the HTML for attachment views.
...
Moves the HTML utility functions to the top of `mce-views.js`. Also adds `wp.mce.view.removeInternalAttrs( attrs )` and `wp.mce.view.attrs( content )`.
see #21390 , #21812 , #21813 .
git-svn-id: http://core.svn.wordpress.org/trunk@22023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-26 22:20:15 +00:00