Commit Graph

20399 Commits

Author SHA1 Message Date
Dion Hulse 7b00e4b156 Fix Bulk Theme Deletion in the Network Admin when using FTP. Props kobenland. Fixes #20671
git-svn-id: https://develop.svn.wordpress.org/trunk@22084 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 01:36:14 +00:00
Dion Hulse 6312ae8e06 Make WP_Filesystem_Base::getnumchmodfromh() return the expected values when the executable bit is set in the input. Props Keruspe. Fixes #20365
git-svn-id: https://develop.svn.wordpress.org/trunk@22083 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 01:33:15 +00:00
Dion Hulse 693fccb99c Silence a PHP Warning in Safe Mode from get_temp_dir(). Props ocean90. Fixes #20778
git-svn-id: https://develop.svn.wordpress.org/trunk@22082 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-29 01:22:25 +00:00
Andrew Nacin 7e3e82dd32 Map 'all' to no status for get_comments() in the list table. See #21101.
git-svn-id: https://develop.svn.wordpress.org/trunk@22081 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 21:46:24 +00:00
Ryan Boren 67f3ab27b0 Invalidate the WP_Comment_Query:query() cache when comments are added. Switch last_changed to a counter incremented via wp_cache_incr().
fixes #22024


git-svn-id: https://develop.svn.wordpress.org/trunk@22080 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 12:47:31 +00:00
Ryan Boren 1500b5a097 Remove debug cruft. Props duck_. fixes #21003
git-svn-id: https://develop.svn.wordpress.org/trunk@22079 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 12:31:39 +00:00
Andrew Ozz d56d67a1e0 Fix typo in wp-pointer.css, props TobiasBg, fixes #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22078 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 00:38:07 +00:00
Andrew Ozz 6ffb174128 Fix "add media" icon in DFW for IE < 9, restore media-button.png, add media-button-2x.png and make them background images, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22077 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-28 00:33:40 +00:00
Daryl Koopersmith 2722e212aa Update underscore.js to version 1.4.0. fixes #22026.
git-svn-id: https://develop.svn.wordpress.org/trunk@22076 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 23:38:47 +00:00
Andrew Nacin d74a509915 3.5 Beta 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@22075 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 22:25:05 +00:00
Ryan Boren 6aabc90333 Support meta queries in WP_Comment_Query.
Props nikolov.tmw
fixes #21003


git-svn-id: https://develop.svn.wordpress.org/trunk@22074 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 21:53:14 +00:00
Daryl Koopersmith d6d359a1bc Move wp_max_upload_size and dependencies to wp-includes. props johnjamesjacoby. see #21390, fixes #21867.
git-svn-id: https://develop.svn.wordpress.org/trunk@22073 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 20:59:57 +00:00
Daryl Koopersmith 1758d1aae3 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: https://develop.svn.wordpress.org/trunk@22072 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 20:04:34 +00:00
bumpbot b4322b3a60 Compress scripts/styles: 3.5-alpha-22071.
git-svn-id: https://develop.svn.wordpress.org/trunk@22071 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 19:21:47 +00:00
Andrew Nacin dee18a07f9 Fix option name. props ocean90, see #21719.
git-svn-id: https://develop.svn.wordpress.org/trunk@22070 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 19:19:18 +00:00
Lance Willett 465e07a06f Twenty Twelve: fix incorrect math in style.css rem example calculation, props TomasM. Closes #22019.
git-svn-id: https://develop.svn.wordpress.org/trunk@22069 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 18:43:39 +00:00
Ryan Boren e9a843c11c Allow get_comments() to query for explicit value of comment_approved.
Props dd32, nbachiyski
fixes #21101


git-svn-id: https://develop.svn.wordpress.org/trunk@22068 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 18:08:02 +00:00
Andrew Nacin df005b6e64 Add page templates to the Twenty Twelve POT file. Remove tags from theme POT files. fixes #22016.
git-svn-id: https://develop.svn.wordpress.org/trunk@22067 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:51:53 +00:00
Lance Willett 295237f41f 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: https://develop.svn.wordpress.org/trunk@22066 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:44:54 +00:00
Ryan Boren 1ee0534f98 Add domain_exists filter. Props jamescollins. fixes #21142
git-svn-id: https://develop.svn.wordpress.org/trunk@22065 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:30:34 +00:00
Ryan Boren 3ca9c27717 Remove dupe/deprecated code from sites.php.
Props wonderboymusic
fixes #21553


git-svn-id: https://develop.svn.wordpress.org/trunk@22064 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:11:07 +00:00
Andrew Nacin f541fe28ba Add missing color picker + customizer CSS. props mattwiebe. see #21206.
git-svn-id: https://develop.svn.wordpress.org/trunk@22063 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 17:08:32 +00:00
potbot dfe0b007f7 POT, generated from r22061
git-svn-id: https://develop.svn.wordpress.org/trunk@22062 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 16:19:18 +00:00
Lance Willett 8d045bd12f Twenty Twelve: consolidate "Apologies" strings, see #22016.
git-svn-id: https://develop.svn.wordpress.org/trunk@22061 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:43:44 +00:00
Ryan Boren 48484428a2 Introduce create_posts meta capability. Props scribu, nacin, casben79. see #16714
git-svn-id: https://develop.svn.wordpress.org/trunk@22060 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:33:19 +00:00
Lance Willett bd9a91c240 Twenty Twelve: fix comments in two files, for accuracy.
git-svn-id: https://develop.svn.wordpress.org/trunk@22059 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:23:15 +00:00
Lance Willett 4f4bdde377 Twenty Twelve: consistent indentation for content-* template files.
git-svn-id: https://develop.svn.wordpress.org/trunk@22058 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:20:52 +00:00
Lance Willett 983bcaef18 Twenty Twelve: clean up tag.php extra newline, see r22048 and #21951.
git-svn-id: https://develop.svn.wordpress.org/trunk@22057 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 15:20:01 +00:00
Ryan Boren 9d798e26d4 Add publish_post meta cap. Props nacin. fixes #21288
git-svn-id: https://develop.svn.wordpress.org/trunk@22056 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 12:48:59 +00:00
Dion Hulse a9f469870d 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: https://develop.svn.wordpress.org/trunk@22055 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 10:09:43 +00:00
Andrew Nacin 6a54459a18 Make Twenty Twelve the default theme for new installs. props markoheijnen, SergeyBiryukov. see #21789.
git-svn-id: https://develop.svn.wordpress.org/trunk@22054 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:47:51 +00:00
Daryl Koopersmith 7354809132 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: https://develop.svn.wordpress.org/trunk@22053 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:45:26 +00:00
Andrew Nacin 71c3fc4e5b Make a string not empty to it ends up in the POT file.
git-svn-id: https://develop.svn.wordpress.org/trunk@22052 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:38:16 +00:00
potbot b8b71f9049 POT, generated from r22050
git-svn-id: https://develop.svn.wordpress.org/trunk@22051 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:34:20 +00:00
Andrew Nacin f944e28a76 Twenty Twelve 1.0, barring any last-minute tweaks. see #21789.
git-svn-id: https://develop.svn.wordpress.org/trunk@22050 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:32:33 +00:00
Andrew Nacin 30816ade4e Simplify the Open Sans translator voodoo. see #21751.
git-svn-id: https://develop.svn.wordpress.org/trunk@22049 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:30:27 +00:00
Andrew Nacin 34d41e32ba 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: https://develop.svn.wordpress.org/trunk@22048 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 07:01:16 +00:00
Dion Hulse 93ba84c528 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: https://develop.svn.wordpress.org/trunk@22047 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:54:17 +00:00
Daryl Koopersmith 22b3981229 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: https://develop.svn.wordpress.org/trunk@22046 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:53:54 +00:00
Daryl Koopersmith 3324270681 Media JS: Give the master Workspace view control over which Attachment view it uses. see #21390, #21807, #21809.
git-svn-id: https://develop.svn.wordpress.org/trunk@22045 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:39:12 +00:00
Daryl Koopersmith 6fff91f4d1 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: https://develop.svn.wordpress.org/trunk@22044 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:20:22 +00:00
Daryl Koopersmith d2b6d050f4 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: https://develop.svn.wordpress.org/trunk@22043 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:07:56 +00:00
Mark Jaquith 52801db5fc 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: https://develop.svn.wordpress.org/trunk@22042 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:07:21 +00:00
Daryl Koopersmith 424f5b21e6 When uploading files through the Plupload bridge, attempt to detect images on upload. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22041 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 05:52:42 +00:00
Daryl Koopersmith c6b63ec34d 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: https://develop.svn.wordpress.org/trunk@22040 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 05:28:37 +00:00
Andrew Nacin 513cacb398 Don't give a 'Beta Media' string to the translators that is only temporary.
git-svn-id: https://develop.svn.wordpress.org/trunk@22039 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 05:19:34 +00:00
Andrew Nacin 53cbfca362 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: https://develop.svn.wordpress.org/trunk@22038 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 04:56:58 +00:00
Andrew Nacin c7d5ae4bed XML-RPC: Introduce wp.getRevisions and wp.restoreRevision.
props brandondove, koke, markoheijnen, JustinSainton, maxcutler.

fixes #21397.



git-svn-id: https://develop.svn.wordpress.org/trunk@22037 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 04:17:15 +00:00
Daryl Koopersmith 692d806fff 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: https://develop.svn.wordpress.org/trunk@22036 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 04:09:43 +00:00
Lance Willett d849e65a30 Twenty Twelve: better i18n for next and previous post arrow entities in single.php, props SergeyBiryukov. Fixes #22008.
git-svn-id: https://develop.svn.wordpress.org/trunk@22035 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 03:47:21 +00:00