Commit Graph

18661 Commits

Author SHA1 Message Date
ryan 27630a4286 Schedule auto-draft deletion from post-new.php instead of from admin.php. This provides better throttling for large multisite installs and reduces the risk of a delete avalanche.
fixes #19663


git-svn-id: http://svn.automattic.com/wordpress/trunk@20453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 18:49:48 +00:00
bumpbot 7e8ba69143 Compress scripts/styles: 3.4-beta2-20452.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 17:58:20 +00:00
azaozz a62ef6d827 Add RTL/LTR button to the html editor, props yoavf, fixes #13070
git-svn-id: http://svn.automattic.com/wordpress/trunk@20451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 17:52:54 +00:00
nacin d0dcf045e0 3.4-beta2.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 03:43:19 +00:00
azaozz 817b932ed1 Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410
git-svn-id: http://svn.automattic.com/wordpress/trunk@20449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 00:16:37 +00:00
nacin 65382b14f8 Compress scripts/styles: 3.4-beta1-20448.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 22:03:24 +00:00
bumpbot ae65b6a352 Compress scripts/styles: 3.4-beta1-20447.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 21:58:22 +00:00
koopersmith 892307d36c Shrink theme screenshots for smaller screen resolutions. props helenyhou, see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 21:54:56 +00:00
koopersmith e1d8dcddef CSS improvements for the 'Current Theme' section. see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 21:19:32 +00:00
ryan 1b65e28f8f Don't do a canonical redirect for singular paged pages when on the front-page. This was breaking pagination on sites with a static home page. Props batmoo. see #20385
git-svn-id: http://svn.automattic.com/wordpress/trunk@20444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 21:18:40 +00:00
ryan be5802b0f1 Don't attempt to make links inside attributes clickable. Props duck_ azaozz. fixes #20418
git-svn-id: http://svn.automattic.com/wordpress/trunk@20443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 21:14:13 +00:00
nacin 2dd485a823 s/website/network/ on the network settings screen. props Ipstenu, fixes #20314.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:45:03 +00:00
ryan 80eb4cbe9b Add terminal punctuation to some signup error messages. Props dllh. fixes #20332
git-svn-id: http://svn.automattic.com/wordpress/trunk@20441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:41:59 +00:00
ryan 28f8e7a63d Move deletion of auto-draft posts to the wp_scheduled_delete cron function. Props mgolawala. fixes #19663
git-svn-id: http://svn.automattic.com/wordpress/trunk@20440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:39:09 +00:00
nacin 5e6d499889 Use home_url() instead of get_bloginfo('url'). props Mamaduka, fixes #20371.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:22:48 +00:00
nacin 8789d023b2 Check if the response property is set before continuing with the update_themes transient return value. props johnbillion, fixes #20378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:15:31 +00:00
ryan b3bdab9622 phpdoc tweaks. Props linuxologos. fixes #19580
git-svn-id: http://svn.automattic.com/wordpress/trunk@20437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:09:17 +00:00
nacin 2243e45a43 Add view_item to the phpdoc for get_taxonomy_labels(). props Caspie. fixes #20406.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:08:30 +00:00
nacin c7cf0927fc Use the metadata API rather than raw queries and direct do_action calls. see #20417.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 20:02:39 +00:00
bumpbot b46712cc96 Compress scripts/styles: 3.4-beta1-20434.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 02:58:23 +00:00
azaozz 6aaf0dad43 Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014
git-svn-id: http://svn.automattic.com/wordpress/trunk@20433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 02:20:51 +00:00
bumpbot f89c8b2910 Compress scripts/styles: 3.4-beta1-20432.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 01:58:23 +00:00
azaozz 31b26e343a Add New User screen: don't bind to blur event on the user_name fields when the <select> doesn't exist, props SergeyBiryukov, fixes #20392
git-svn-id: http://svn.automattic.com/wordpress/trunk@20431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 01:57:58 +00:00
azaozz 000b7a9313 Move mobile devices CSS from wp-login.php to wp-admin.css, props SergeyBiryukov, fixes #19673
git-svn-id: http://svn.automattic.com/wordpress/trunk@20430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 01:45:01 +00:00
bumpbot 7492250354 Compress scripts/styles: 3.4-beta1-20429.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 00:58:23 +00:00
azaozz b75ee2198f Fix inserting links in the HTML editor in IE9, fixes #19528
git-svn-id: http://svn.automattic.com/wordpress/trunk@20428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-11 00:20:42 +00:00
bumpbot 339a365bb3 Compress scripts/styles: 3.4-beta1-20427.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 21:58:27 +00:00
koopersmith 9f64b56973 Larger screenshots in theme list tables. see #20403, #19816.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 21:09:14 +00:00
ryan ab78931b86 Use wp_safe_redirect(). No need to allow offsite redirects.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 17:21:17 +00:00
duck_ b0a975512a Don't override the $current_user global in get_currentuserinfo() on an XML-RPC request
if it's non-empty. Fixes capabilities checks for XML-RPC requests. See #20372.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 16:19:53 +00:00
ryan baf681233f Pass post_type to clean_post_cache() instead of attempting to fetch a post object since the post may have been deleted.
Props leewillis77
see #19690


git-svn-id: http://svn.automattic.com/wordpress/trunk@20423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 16:09:44 +00:00
azaozz 5de5c9a64d Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405
git-svn-id: http://svn.automattic.com/wordpress/trunk@20422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 03:18:48 +00:00
bumpbot 02d0a5173a Compress scripts/styles: 3.4-beta1-20421.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 02:58:27 +00:00
azaozz 66a7dd4697 Move the wp_is_mobile() check after the admin bootstrap in media-new.php, props SergeyBiryukov, see #20014
git-svn-id: http://svn.automattic.com/wordpress/trunk@20420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 02:34:47 +00:00
koopersmith c2fb0c425b Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 02:25:03 +00:00
bumpbot b15a9dde67 Compress scripts/styles: 3.4-beta1-20418.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 01:58:27 +00:00
azaozz 1d12cd07b0 Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
git-svn-id: http://svn.automattic.com/wordpress/trunk@20417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 01:19:30 +00:00
bumpbot 36a725ff82 Compress scripts/styles: 3.4-beta1-20416.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 00:58:23 +00:00
koopersmith 10d045358d Fix showing/hiding theme details and move code from theme-preview.js to theme.js. see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 00:34:39 +00:00
koopersmith b909e55294 Theme browsing UX improvements. see #20403.
* On manage/install themes pages, moved author under theme name.
* On manage themes page, moved version number to details.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 00:15:13 +00:00
bumpbot 14a2452d72 Compress scripts/styles: 3.4-beta1-20413.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 23:58:24 +00:00
koopersmith 7c66ca2021 Remove CSS involving unused '#theme-information' selector. see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 23:48:12 +00:00
koopersmith c5d236110a Remove CSS involving unused '.theme-listing' selector. see #20403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 23:22:59 +00:00
ryan a831898020 When fetching the user in get_currentuserinfo(), make sure it is a valid WP_User object. If it is stdClass, upgrade it to WP_User. If it is WP_Error, an int, or anything else, set the current user to ID 0.
In wp_set_current_user(), return the current user global only if it is a WP_User object. If it is not, fall through and go about setting it up properly.

Formatting cleanups for both functions.

see #20372


git-svn-id: http://svn.automattic.com/wordpress/trunk@20410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 22:01:07 +00:00
markjaquith 29f50a637a Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400
git-svn-id: http://svn.automattic.com/wordpress/trunk@20409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 20:05:47 +00:00
bumpbot 63818c06a2 Compress scripts/styles: 3.4-beta1-20408.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 18:58:20 +00:00
azaozz 04f6979a13 Don't try to append "Display Name" options when on the Add New User screen (the <select> doesn't exist there), props pbiron, SergeyBiryukov, fixes #20392
git-svn-id: http://svn.automattic.com/wordpress/trunk@20407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 18:46:36 +00:00
nacin a312778602 Remove duplicated featured_image block. props koke.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 15:28:07 +00:00
bumpbot 5226ec2d04 Compress scripts/styles: 3.4-beta1-20405.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-08 21:58:20 +00:00
koopersmith 5a8121fc8f Theme Customizer: Add a 'previewing' notice by the theme name. Reduce padding and size on section titles, add a border between section titles and content to better indicate the title as a click target. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-08 21:17:46 +00:00