Commit Graph

10206 Commits

Author SHA1 Message Date
Andrew Nacin 903479fb96 Replace multiple wp_enqueue_script() calls in nav-menus.php with dependencies. props SergeyBiryukov. fixes #21777.
git-svn-id: https://develop.svn.wordpress.org/trunk@21696 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:35:22 +00:00
bumpbot 62f79fd6e3 Compress scripts/styles: 3.5-alpha-21690.
git-svn-id: https://develop.svn.wordpress.org/trunk@21690 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:59:24 +00:00
Mark Jaquith 02975388bd Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21688 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:20:28 +00:00
Ryan Boren 7907be8f15 Introduce WP_Screen::in_admin() for determining which admin the screen is in.
Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.

fixes #21742


git-svn-id: https://develop.svn.wordpress.org/trunk@21687 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 17:16:46 +00:00
Daryl Koopersmith 5a4a17687a Add new media workflow scripts, styles, and templates.
Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	new wp.media.controller.Workflow().render().modal.open();


The Javascript is broken up into two files, with the slugs media-models and media-views.

* media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.

* media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...

To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':

	wp_enqueue_script( 'media-views' );
	wp_enqueue_style( 'media-views' );
	wp_plupload_default_settings();
	add_action( 'admin_footer', 'wp_print_media_templates' );

see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21683 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:54:23 +00:00
Daryl Koopersmith 84a9e47c0d Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21682 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:32:25 +00:00
Andrew Nacin 215be466c3 Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21681 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:58:51 +00:00
bumpbot 56b3860a86 Compress scripts/styles: 3.5-alpha-21673.
git-svn-id: https://develop.svn.wordpress.org/trunk@21673 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:59:30 +00:00
Andrew Ozz ceaf979590 Fix min row height in .widefat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21671 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:47:22 +00:00
Ryan Boren 92ea34f6a2 Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 13:33:00 +00:00
bumpbot bca5b5538d Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@21663 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 04:09:57 +00:00
Andrew Nacin d17a70efde Update old files array:
* Remove old names for jQuery UI Effects files. see #21736.
 * Remove un-minified version of Jcrop and jQuery Color. see #21692, #20728.
 * Remove .dev.css and .dev.js. see #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21660 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:35:30 +00:00
Andrew Nacin 0dbb4dfb27 Update some code comments from .dev.js to .js. props georgestephanis. see #21633.
git-svn-id: https://develop.svn.wordpress.org/trunk@21659 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:15:57 +00:00
Andrew Nacin 5986fef232 Remove reference to blog_charset option in Settings > Reading help. fixes #21507.
git-svn-id: https://develop.svn.wordpress.org/trunk@21653 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 05:50:10 +00:00
Ryan Boren 01527025c9 Add tags_input, page_template, and post_category get magic to WP_Post.
Deprecate get_post_to_edit() and wp_get_single_post().
Props scribu
see #21309


git-svn-id: https://develop.svn.wordpress.org/trunk@21651 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 19:08:28 +00:00
Andrew Nacin b502460093 Remove paths to where theme files are located from theme details on themes.php. props lessbloat, see #17944.
git-svn-id: https://develop.svn.wordpress.org/trunk@21650 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:48:50 +00:00
Ryan Boren 5b6667c43e Initialize to avoid 'Creating default object from empty value' warning in PHP 5.4.4.
git-svn-id: https://develop.svn.wordpress.org/trunk@21647 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:03:12 +00:00
Andrew Nacin 48a3353f5e Set jQuery Color to be a dependency for wp-lists, rather than enqueueing it everywhere.
Any plugin wishing to use jQuery color animations must set jquery-color as a dependency
(or enqueue it).

Remove the un-minified version of jQuery Color.

props scribu.
fixes #21692.



git-svn-id: https://develop.svn.wordpress.org/trunk@21646 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:51:35 +00:00
Andrew Ozz 575e541b27 More visible :focus style for form elements, props lessbloat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21641 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 05:48:58 +00:00
Andrew Ozz 1c98a9a04f Fix admin menu glitch with pending count bubbles, props SergeyBiryukov, fixes #20502
git-svn-id: https://develop.svn.wordpress.org/trunk@21631 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-27 22:39:01 +00:00
Andrew Nacin 5a9dd669a2 Clean attachment cache after a manual update, not before. props mdawaffe. fixes #20786.
git-svn-id: https://develop.svn.wordpress.org/trunk@21605 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-24 15:32:23 +00:00
Andrew Nacin e1d2b7baa0 Add new 'flexible-header' tag for themes. Add it to Twenty Ten and Twenty Eleven. [21533] added it for Twenty Twelve.
props lancewillett. fixes #21065.



git-svn-id: https://develop.svn.wordpress.org/trunk@21604 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-24 15:22:14 +00:00
Ryan Boren 9905abe697 Update phpdoc for functions that return WP_Post. Soft deprecate get_page(). see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21598 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:34:41 +00:00
Ryan Boren de06b81360 Remove return ref from all calls to get_post()
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309


git-svn-id: https://develop.svn.wordpress.org/trunk@21597 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:01:10 +00:00
Andrew Nacin 4a797c0b62 Remove references to still-existing files from the old files array. see #20980.
git-svn-id: https://develop.svn.wordpress.org/trunk@21594 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:58:43 +00:00
Andrew Nacin 64caad03e7 Remove Prototype and script.aculo.us from core.
Continue to register them, pulling from ajax.googleapis.com. This is only being done for backwards compatibility;
libraries in use will continue to be local sources.

In the process, update to the latest versions of Prototype (1.7.1, June 5) and script.aculo.us (1.9.0, from 2010).

props helenyhou.
fixes #21661, #16664, #16665.



git-svn-id: https://develop.svn.wordpress.org/trunk@21593 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:51:08 +00:00
Andrew Nacin db981a3b27 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot 5623f1ca85 Compress scripts/styles: 3.5-alpha-21589.
git-svn-id: https://develop.svn.wordpress.org/trunk@21589 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 20:58:31 +00:00
Andrew Ozz efcde9517c Better styling of theme filter, props SergeyBiryukov, fixes #21637
git-svn-id: https://develop.svn.wordpress.org/trunk@21588 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 19:16:31 +00:00
bumpbot 54c5743c66 Compress scripts/styles: 3.5-alpha-21587.
git-svn-id: https://develop.svn.wordpress.org/trunk@21587 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 18:58:32 +00:00
Andrew Ozz 877e8f6a2a Don't hide the label for the Title on the Edit Post screen, use 'screen-reader-text' instead, props SergeyBiryukov, fixes #21458
git-svn-id: https://develop.svn.wordpress.org/trunk@21584 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 17:40:17 +00:00
bumpbot a748fa33c4 Compress scripts/styles: 3.5-alpha-21583.
git-svn-id: https://develop.svn.wordpress.org/trunk@21583 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 16:58:25 +00:00
Andrew Ozz 991c78713e Remove erroneous vertical-align: center values, props helenyhou, fixes #20586
git-svn-id: https://develop.svn.wordpress.org/trunk@21582 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 15:23:10 +00:00
bumpbot ebcef178df Compress scripts/styles: 3.5-alpha-21580. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21580 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:58:28 +00:00
Andrew Ozz 29471da7bd Fix help text on the Install Themes screen, props SergeyBiryukov, fixes #20925
git-svn-id: https://develop.svn.wordpress.org/trunk@21579 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:28:30 +00:00
Andrew Ozz 200beacacf Remove text-shadow on hover from update and comments bubbles in the admin menu, props markjaquith, fixes #21449
git-svn-id: https://develop.svn.wordpress.org/trunk@21578 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:25:28 +00:00
Andrew Ozz e4759ac950 Replace the dark spinner with the light on the widgets screen and retire wpspin_dark.gif, props helenyhou and lessbloat, fixes #20957
git-svn-id: https://develop.svn.wordpress.org/trunk@21577 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:02:37 +00:00
bumpbot 562ce55e89 Compress scripts/styles: 3.5-alpha-21575.
git-svn-id: https://develop.svn.wordpress.org/trunk@21575 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:58:27 +00:00
Andrew Ozz 27fdffa9db Improve the layout and accessibility of the admin menu: simplify the HTML structure, move the submenus off the viewport (still visible for screen readers) instead of hiding them with display: none, make it possible to unfold the menu on small/narrow screens, see #21349
git-svn-id: https://develop.svn.wordpress.org/trunk@21574 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:46:30 +00:00
Andrew Nacin 8cac9d023a Remove unused multisite option 'language'. props wonderboymusic. fixes #21545.
git-svn-id: https://develop.svn.wordpress.org/trunk@21551 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-20 16:43:44 +00:00
bumpbot c699530ab6 Compress scripts/styles: 3.5-alpha-21548.
git-svn-id: https://develop.svn.wordpress.org/trunk@21548 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-19 18:58:22 +00:00
Mark Jaquith 40c77861db Fix the display of widgets in wp-admin when their descriptions wrap to two lines. props mattdanner. fixes #15180
git-svn-id: https://develop.svn.wordpress.org/trunk@21547 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-19 18:16:52 +00:00
Andrew Nacin 3bd03e0826 Output a hidden input of blog_charset when we are hiding the option. props SergeyBiryukov. see #21507.
git-svn-id: https://develop.svn.wordpress.org/trunk@21539 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-17 16:46:47 +00:00
Ryan Boren 98864bbb7e Send Content-Type with charset for iframe_header(). Props SergeyBiryukov, sergey.s.betke@novgaro.ru. fixes #19454
git-svn-id: https://develop.svn.wordpress.org/trunk@21538 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-17 14:19:03 +00:00
Andrew Nacin 48a78c01a3 Disable the Link Manager on any future upgrade if it is still enabled but there are no links. see #21307.
git-svn-id: https://develop.svn.wordpress.org/trunk@21536 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 23:08:07 +00:00
bumpbot 4ce19368bf Compress scripts/styles: 3.5-alpha-21535.
git-svn-id: https://develop.svn.wordpress.org/trunk@21535 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 16:58:26 +00:00
Andrew Ozz ffba15c130 Fix typo in [21529], props toscho. Simplify the :focus styles for the Screen Options and Help toggles, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21534 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 15:45:31 +00:00
bumpbot 36a3924822 Compress scripts/styles: 3.5-alpha-21530.
git-svn-id: https://develop.svn.wordpress.org/trunk@21530 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:58:27 +00:00
Andrew Ozz f0d18a35dd Add :focus style to all links, use JS to blur() them on click so the style is only visible when tabbing, props lessbloat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21529 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:40:11 +00:00
bumpbot 06112b685f Compress scripts/styles: 3.5-alpha-21514.
git-svn-id: https://develop.svn.wordpress.org/trunk@21514 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 20:58:23 +00:00
Andrew Ozz 94be7cf95b Stop Chrome from applying outline to DIVs that have tabindex="-1", see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21510 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:37:27 +00:00
Ryan Boren 082f515280 Fix display issues in the custom header screen when height is not specified. Use get_header_image() instead of header_image() so that esc_url() can do its job. Props JarretC, SergeyBiryukov, georgestephanis. fixes #21130 #21433
git-svn-id: https://develop.svn.wordpress.org/trunk@21508 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:24:36 +00:00
bumpbot cd93e31cfa Compress scripts/styles: 3.5-alpha-21505.
git-svn-id: https://develop.svn.wordpress.org/trunk@21505 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:58:20 +00:00
Ryan Boren 4974f5f233 Remove post type from post nonces. Fixes attachment deletion when EMPTY_TRASH_DAYS is 0. Props c3mdigital, kurtpayne, SergeyBiryukov. fixes #21194
git-svn-id: https://develop.svn.wordpress.org/trunk@21504 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:39:15 +00:00
Ryan Boren 52c9b5af0d Better instruction text on custom header screen. Props jane, JustinSainton fixes #20992
git-svn-id: https://develop.svn.wordpress.org/trunk@21502 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:32:26 +00:00
Andrew Nacin 9931c1a45d Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled.
Enforce this by denying the 'manage_links' capability, which hides the All Links, Add New Link, and Link Categories screens. Hide WP_Widget_Links and the UI for the default_link_category as well.

Convert all references to 'posts and links' when handling reassignment on user deletion to just 'posts'.

see #21307.



git-svn-id: https://develop.svn.wordpress.org/trunk@21501 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-13 16:18:42 +00:00
Andrew Nacin 58ad892373 Stop adding default links and the 'Blogroll' link category on install. props wonderboymusic. see #21307.
git-svn-id: https://develop.svn.wordpress.org/trunk@21500 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-13 15:55:15 +00:00
bumpbot de461b777b Compress scripts/styles: 3.5-alpha-21499.
git-svn-id: https://develop.svn.wordpress.org/trunk@21499 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-11 02:58:19 +00:00
Andrew Ozz da532a7573 Remove unused images, props helenyhou, coffee2code, ocean90, fixes #20980
git-svn-id: https://develop.svn.wordpress.org/trunk@21498 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-11 02:36:01 +00:00
Ryan Boren 9580f65af6 Allow passing stdClass and WP_User to wp_insert_user() and wp_update_user(). Introduce WP_User::to_array(). Eliminate uses of get_object_vars() when passing to wp_*_user(). fixes #21429
git-svn-id: https://develop.svn.wordpress.org/trunk@21496 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 15:36:54 +00:00
Peter Westwood ce84487878 Multisite: Fix the new get_space_used() function to correctly calculate Megabytes used and update some phpdoc. Props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@21474 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 07:17:33 +00:00
Andrew Nacin 4218686707 Introduce wpdb::get_charset_collate() to return the DEFAULT CHARACTER SET and COLLATE for use in table schemas.
props simonwheatley, pento. fixes #18451.



git-svn-id: https://develop.svn.wordpress.org/trunk@21471 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:13:48 +00:00
Andrew Nacin 249e32e96b Hide the charset setting for installs that have a charset of UTF-8 already. fixes #21507.
git-svn-id: https://develop.svn.wordpress.org/trunk@21467 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 03:10:59 +00:00
bumpbot 142a33fd8e Compress scripts/styles: 3.5-alpha-21466.
git-svn-id: https://develop.svn.wordpress.org/trunk@21466 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 22:58:30 +00:00
Andrew Ozz 1853c9127d Fix .screen-reader-text in RTL, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21465 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 21:29:27 +00:00
bumpbot 49ef671550 Compress scripts/styles: 3.5-alpha-21463.
git-svn-id: https://develop.svn.wordpress.org/trunk@21463 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 20:58:37 +00:00
Andrew Ozz d38377a329 CSS cleanup: remove references to .wp-menu-toggle, props ocean90, fixes #21502
git-svn-id: https://develop.svn.wordpress.org/trunk@21461 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 19:59:28 +00:00
bumpbot 07a63e22e7 Compress scripts/styles: 3.5-alpha-21460.
git-svn-id: https://develop.svn.wordpress.org/trunk@21460 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 18:58:29 +00:00
Andrew Ozz cd8663f68d Replace last remaining gradients with css, standardize the gradient css cascade, props ocean90, fixes #16461
git-svn-id: https://develop.svn.wordpress.org/trunk@21459 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 17:21:41 +00:00
bumpbot 9c0e7302fb Compress scripts/styles: 3.5-alpha-21458.
git-svn-id: https://develop.svn.wordpress.org/trunk@21458 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:58:26 +00:00
Andrew Ozz de2cabcfb7 Accessibility: enhance the Screen Options and Help tabs open/close, see #21326
git-svn-id: https://develop.svn.wordpress.org/trunk@21457 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:26:37 +00:00
bumpbot b5864beaa0 Compress scripts/styles: 3.5-alpha-21456.
git-svn-id: https://develop.svn.wordpress.org/trunk@21456 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 02:58:33 +00:00
Daryl Koopersmith 3c11842514 Align headings and form elements on tags and categories pages. After seven and a half years... props hanni. fixes #21496.
git-svn-id: https://develop.svn.wordpress.org/trunk@21455 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 02:32:55 +00:00
bumpbot 5273caf79f Compress scripts/styles: 3.5-alpha-21443.
git-svn-id: https://develop.svn.wordpress.org/trunk@21443 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 22:58:29 +00:00
Andrew Ozz 96596da546 CSS cleanup: take out -moz-box-shadow, fixes #21482
git-svn-id: https://develop.svn.wordpress.org/trunk@21439 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 22:41:49 +00:00
Andrew Ozz d3a4604335 Accessibility: fix the Skip to content link, show it on :focus, improve the styling of the skip links when shown, see #21310, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21435 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 21:37:57 +00:00
Mark Jaquith b26ef93355 About ten percent
git-svn-id: https://develop.svn.wordpress.org/trunk@21422 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 18:32:39 +00:00
Ryan Boren ce960f67a0 Deprecate get_blog_option(), add_blog_option(), update_blog_option(), and delete_blog_option().
Use the regular option functions wrapped in switch_to_blog() and restore_current_blog() instead.

Group multiple operations within a single switch where possible.

fixes #21432


git-svn-id: https://develop.svn.wordpress.org/trunk@21414 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 17:51:42 +00:00
Andrew Nacin a5c7405975 Move most instances of new WP_User to get_userdata(). see #21120.
git-svn-id: https://develop.svn.wordpress.org/trunk@21413 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 01:06:05 +00:00
bumpbot 396adf6737 Compress scripts/styles: 3.5-alpha-21400.
git-svn-id: https://develop.svn.wordpress.org/trunk@21400 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 22:58:25 +00:00
Andrew Ozz 4d5223c069 Retina: add image editor 2x icons, props empireoflight, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21399 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 22:50:52 +00:00
Peter Westwood 61abf077d0 Multisite: Rework the upload space usage tracking code so as to be fully pluggable.
* Moves some admin only functions into wp-admin/includes/ms.php from wp-includes/ms-functions.php
 * Reworked the variable naming to be more in line with the Coding Standards
 * Introduced a new get_space_used() function instead of calculating it in multiple places.

Fixes #21181 props dllh and jkudish for inital work on this.


git-svn-id: https://develop.svn.wordpress.org/trunk@21387 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 13:52:06 +00:00
bumpbot 1eebacb690 Compress scripts/styles: 3.5-alpha-21384.
git-svn-id: https://develop.svn.wordpress.org/trunk@21384 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 06:58:20 +00:00
Daryl Koopersmith bf458c2c1a Remove the ability to upload custom headers in the customizer. Properly handle selecting the correct first tab, and removing the control/section if no tabs exist. see #21355.
To check if the control has any potential tabs and headers, added:
* WP_Customize_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->default_headers
* WP_Customize_Header_Image_Control->uploaded_headers



git-svn-id: https://develop.svn.wordpress.org/trunk@21383 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 06:45:54 +00:00
Andrew Nacin 48d6a65250 Improve code readability and execution in admin-footer by removing a now-unnecessary implode(). props TobiasBg, fixes #21422.
git-svn-id: https://develop.svn.wordpress.org/trunk@21366 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 19:37:51 +00:00
Ryan Boren 2ddc4706aa Give Add New button on edit taxonomy pages primary button styling. Props JustinSainton. fixes #21406
git-svn-id: https://develop.svn.wordpress.org/trunk@21365 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 18:41:42 +00:00
Ryan Boren d2774833b2 Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307
git-svn-id: https://develop.svn.wordpress.org/trunk@21364 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 18:30:03 +00:00
Ryan Boren 63abb35721 s/newuserconfimation/newuserconfirmation/
Props Jayjdk, lesteph
fixes #21415


git-svn-id: https://develop.svn.wordpress.org/trunk@21362 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 16:13:18 +00:00
Andrew Ozz 5ed30e85b9 Move the description for tabbing out of the plugin and theme editors textareas to the Help tab, fixes #21347
git-svn-id: https://develop.svn.wordpress.org/trunk@21358 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-27 16:49:48 +00:00
Andrew Ozz 78f00b2ace Widgets: add localization context for 'Add' and 'Edit', props nacin, fixes #21338
git-svn-id: https://develop.svn.wordpress.org/trunk@21356 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-27 03:56:27 +00:00
Andrew Ozz e0c0df2587 Widgets: Add the name of the widget to the Add and Edit buttons on the Accessible Widget Management Screen, props cannona, fixes #21338
git-svn-id: https://develop.svn.wordpress.org/trunk@21355 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-27 03:33:38 +00:00
Ryan Boren 26b9de056c Deprecate and stub _media_button. fixes #21317
git-svn-id: https://develop.svn.wordpress.org/trunk@21353 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 21:33:01 +00:00
Ryan Boren aefca97f8f Deprecate and stub _insert_into_post_button(). fixes #20427
git-svn-id: https://develop.svn.wordpress.org/trunk@21352 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 21:30:06 +00:00
Ryan Boren 5d062682ab Improved phpdoc for file.php. Props tommcfarlin. fixes #21328
git-svn-id: https://develop.svn.wordpress.org/trunk@21350 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 15:08:30 +00:00
Ryan Boren c2651f05f8 Remove debug cruft. Props ocean90. fixes #21315
git-svn-id: https://develop.svn.wordpress.org/trunk@21349 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 15:01:44 +00:00
Ryan Boren 8ac43209f5 Fix some spelling errors. Props thee17. fixes #21191
git-svn-id: https://develop.svn.wordpress.org/trunk@21333 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 18:06:13 +00:00
Ryan Boren dd15327790 More screen reader text for list table checkboxes and theme install search. Props MikeLittle, SergeyBiryukov. see #21325
git-svn-id: https://develop.svn.wordpress.org/trunk@21323 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 16:18:14 +00:00
Ryan Boren ff3b56e89f Fix per_page screen option for custom post types and taxonomies. Don't convert taxonomy and post type slugs from hyphen to underscore when saving the per_page usermeta. Props nacin. see #18958
git-svn-id: https://develop.svn.wordpress.org/trunk@21322 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 16:13:13 +00:00
Ryan Boren e08cdca958 Add screen reader text for search fields in theme-install.php. Props MikeLittle. see #21325
git-svn-id: https://develop.svn.wordpress.org/trunk@21318 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 18:31:03 +00:00
Ryan Boren c47eef91e0 Add screen reader text to checkboxes in list tables. Props MikeLittle, nacin. see #21325
git-svn-id: https://develop.svn.wordpress.org/trunk@21317 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 18:01:22 +00:00
Ryan Boren a2b93fcf55 Translate role names in the new user notification email. Props obenland. fixes #20764
git-svn-id: https://develop.svn.wordpress.org/trunk@21316 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 17:32:40 +00:00
Ryan Boren 2c0f98fe49 For get_settings_errors(), make sure errors from transient get added to the global variable and not unset when checking for an error of a specific setting. Also always return an array, as noted in the documentation. Props obenland. fixes #20833
git-svn-id: https://develop.svn.wordpress.org/trunk@21315 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 15:13:46 +00:00
bumpbot 249a540660 Compress scripts/styles: 3.5-alpha-21314.
git-svn-id: https://develop.svn.wordpress.org/trunk@21314 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 02:58:23 +00:00
Andrew Ozz 0e1fe806aa Remove left-over style for the Categories postbox that had a typo and wasn't used, props tommcfarlin fixes #21360
git-svn-id: https://develop.svn.wordpress.org/trunk@21313 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 01:33:43 +00:00
bumpbot e7a8580df5 Compress scripts/styles: 3.5-alpha-21312.
git-svn-id: https://develop.svn.wordpress.org/trunk@21312 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 00:58:22 +00:00
Andrew Ozz 6e6b727315 Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).
Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.

Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.

See #21340.

git-svn-id: https://develop.svn.wordpress.org/trunk@21311 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 00:15:15 +00:00
Andrew Ozz dda796260d Make it possible to tab out of the plugin and theme editors textareas by pressing Esc followed by Tab, fixes #21347
git-svn-id: https://develop.svn.wordpress.org/trunk@21310 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 23:46:27 +00:00
bumpbot 29173ed46c Compress scripts/styles: 3.5-alpha-21309.
git-svn-id: https://develop.svn.wordpress.org/trunk@21309 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:58:26 +00:00
Andrew Ozz 6acdd22e66 Prevent WebKit from adding outline to #wpbody-content as a result of tabindex="-1", see #21361
git-svn-id: https://develop.svn.wordpress.org/trunk@21308 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:49:50 +00:00
Andrew Ozz bf65e730f6 Add "Skip to content" link to all screens in the admin, fixes #21361
git-svn-id: https://develop.svn.wordpress.org/trunk@21305 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:00:06 +00:00
Andrew Ozz 446b40235f TinyMCE: fix tabbig in and out of the editor, fixes #20834
git-svn-id: https://develop.svn.wordpress.org/trunk@21300 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 02:33:53 +00:00
Andrew Nacin f01b41eb1e Fix order of @param's for deactivate_plugins(). props Viper007Bond, fixes #21269.
git-svn-id: https://develop.svn.wordpress.org/trunk@21291 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:09:40 +00:00
bumpbot d43f1b9948 Compress scripts/styles: 3.5-alpha-21284.
git-svn-id: https://develop.svn.wordpress.org/trunk@21284 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-19 16:58:20 +00:00
Andrew Ozz c7562f7aa9 Admin menu: add z-index to the pending/updates count bubbles, props ocean90, fixes #20502
git-svn-id: https://develop.svn.wordpress.org/trunk@21283 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-19 16:51:02 +00:00
bumpbot f81d86ae2a Compress scripts/styles: 3.5-alpha-21282.
git-svn-id: https://develop.svn.wordpress.org/trunk@21282 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-18 22:58:20 +00:00
Andrew Ozz 9847f571b9 Widgets UI: make the whole "header" clickable to open/close the widget (same as postboxes), remove deprecated jQuery .live(), part props lessbloat, fixes #21247
git-svn-id: https://develop.svn.wordpress.org/trunk@21281 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-18 22:41:43 +00:00
bumpbot b25666a393 Compress scripts/styles: 3.5-alpha-21271.
git-svn-id: https://develop.svn.wordpress.org/trunk@21271 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 02:58:22 +00:00
Andrew Ozz 062325379f Widgets: ensure the "drop zone" matches the height of the Inactive Widgets container, fixes #21250
git-svn-id: https://develop.svn.wordpress.org/trunk@21270 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 01:47:16 +00:00
Peter Westwood 86d82ac795 Multisite: Tidy up [21256] and introduce/correct PHPDoc for a few other media upload functions.
Fixes #21179 props SergeyBiryukov.


git-svn-id: https://develop.svn.wordpress.org/trunk@21260 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-11 10:20:15 +00:00
Peter Westwood cebf4e277b Multisite: Make it easy to replace or augment the over-quota message displayed when you try and upload new media and you have reached your quota.
Fixes #21179 props dllh, jkudish. 


git-svn-id: https://develop.svn.wordpress.org/trunk@21256 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 13:33:44 +00:00
Andrew Nacin 6cc01f0113 Fix the 'Display item date' configuration option for the Incoming Links dashboard widget. props Latz, SergeyBiryukov, fixes #20644.
git-svn-id: https://develop.svn.wordpress.org/trunk@21249 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 19:16:53 +00:00
bumpbot 4c7b1daf92 Compress scripts/styles: 3.5-alpha-21247.
git-svn-id: https://develop.svn.wordpress.org/trunk@21247 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 06:58:24 +00:00
Andrew Ozz db90ff5bc9 Add 2x icons for the list/excerpt switch on the Posts screen, props empireoflight, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21246 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 06:53:43 +00:00
Mark Jaquith fb1bc4691f Increase the height of the widget drag/drop placeholder by one pixel so it matches the size of the dragged widget. props alexvorn2. props SergeyBiryukov. fixes #21054
git-svn-id: https://develop.svn.wordpress.org/trunk@21244 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:21:59 +00:00
Mark Jaquith 4423cd9a67 Hide UI for Attachment taxonomies if show_ui is false for that taxonomy. props simonwheatley. fixes #21104
git-svn-id: https://develop.svn.wordpress.org/trunk@21240 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 04:56:50 +00:00
Mark Jaquith fb97d0a0d9 Do not display an error message when a plugin or theme being updated is found to already be up to date. Note the fact, and call it success. props solarissmoke. fixes #19752
git-svn-id: https://develop.svn.wordpress.org/trunk@21236 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:40:32 +00:00
Mark Jaquith 6ef0b4c765 Insert a proper line break (instead of an HTML line break) into the "first comment". props nacin. fixes #16712
git-svn-id: https://develop.svn.wordpress.org/trunk@21234 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:19:02 +00:00
Dion Hulse 21aefa4e4f Make get_home_path() work in more cases by being case insensitive and sanitzing Windows paths. In some cases (such as differing case of hostnames or paths in the site/home options, or when SCRIPT_FILENAME contains forward slashes) the function was failing to return the correct path, and would instead return /. Props to SergeyBiryukov for the initial patch. Fixes #20449 Fixes #10447
git-svn-id: https://develop.svn.wordpress.org/trunk@21224 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-06 13:54:15 +00:00
Dion Hulse b47a1a46e5 WP_Filesystem: Return symlinked directory names correctly, previously the FTP extensions would return it as 'source -> dest' instead of simply 'source'. Props kurtpayne. Fixes #17846
git-svn-id: https://develop.svn.wordpress.org/trunk@21223 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-06 11:39:39 +00:00
Dion Hulse 641b92e43d WP_Filesystem: When recursivly searching for a directory path, only search for unfound directory entries. This solves a case where the same directory may be entered twice inadvertantly when nested directories using the same name exist. Fixes #20652
git-svn-id: https://develop.svn.wordpress.org/trunk@21222 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-06 11:19:46 +00:00
Dion Hulse a30fde5be4 WP_Filesystem: Correct a rare case where the FTP directory will be detected incorrectly when the final path token exists higher in the chain, for example /x/x/Z/x/Z/ would be detected as /x/x/Z/. Fixes #20934
git-svn-id: https://develop.svn.wordpress.org/trunk@21221 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-06 10:41:32 +00:00
bumpbot 0d795fe1d1 Compress scripts/styles: 3.5-alpha-21220.
git-svn-id: https://develop.svn.wordpress.org/trunk@21220 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:58:21 +00:00
Mark Jaquith 5ab7fcea5e Better image extension regexes, so we don't just grab the "jpe" from "jpeg" files in media_sideload_image(). props sivel. fixes #16693
git-svn-id: https://develop.svn.wordpress.org/trunk@21219 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:51:55 +00:00
Andrew Ozz 757652fe01 Clarify that 'html' refers to the Text editor tab, see #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21218 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:28:01 +00:00
Mark Jaquith 643be5f649 Periods at the ends of sentences should be in the translated string, not outside it. Fixes an instance of that on the Tags page. props Nao. fixes #21131
git-svn-id: https://develop.svn.wordpress.org/trunk@21216 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:06:19 +00:00
Mark Jaquith 7d1a3effe2 Increase the z-index of widgets so they don't appear behind menu portions while dragging. props jkudish. fixes #20300
git-svn-id: https://develop.svn.wordpress.org/trunk@21214 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:24:57 +00:00
Mark Jaquith 5d74a50af4 Switch "HTML" tab to "Text" in DFW mode. Update documentation and inline comments to refer to the "Text" tab or mode instead of "HTML". see #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21212 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:28:13 +00:00
bumpbot 34ec1a7c61 Compress scripts/styles: 3.5-alpha-21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@21210 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:58:19 +00:00
Mark Jaquith 1f25a79a65 Uncheck the "select all" checkbox when one of the child checkboxes is manually unchecked. props SergeyBiryukov. fixes #20261
git-svn-id: https://develop.svn.wordpress.org/trunk@21209 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:08:20 +00:00
Andrew Nacin 6ef3ff3062 Remove charset attribute from script elements. props neoxx, fixes #21146.
git-svn-id: https://develop.svn.wordpress.org/trunk@21204 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-03 13:27:14 +00:00
Andrew Nacin 260e9ec7ab require_once dashboard.php in wp_ajax_dashboard_widgets() so it is testable. props kurtpayne. fixes #UT41.
git-svn-id: https://develop.svn.wordpress.org/trunk@21203 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 15:07:39 +00:00
Andrew Nacin ccba2c1f57 Remove more code not specific to updating core from core_upgrade_preamble(). fixes #21124.
git-svn-id: https://develop.svn.wordpress.org/trunk@21201 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:58:03 +00:00
Andrew Nacin c5d586e5bf Un-indent after [21198]. see #19824.
git-svn-id: https://develop.svn.wordpress.org/trunk@21200 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:55:09 +00:00
Andrew Nacin 493a3874dd Allow the 'WordPress Updates' page to be accessible even if you cannot update core, as long as you can update plugins or themes. fixes #21124.
git-svn-id: https://develop.svn.wordpress.org/trunk@21199 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:54:05 +00:00
Andrew Nacin 4a23ebe03d Enforce multisite plugins menu preference in map_meta_cap(). This means a simple current_user_can('activate_plugins') check will handle the 'Enable administration menus' setting.
Remove bogus checks for enabling/disabling the 'themes' menu (something core does not handle out of the box) when in the network admin.

fixes #21123.



git-svn-id: https://develop.svn.wordpress.org/trunk@21198 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:40:25 +00:00
Andrew Nacin 36a8b05233 Cap checks for links in the upgrader, for plugins. fixes #19824.
git-svn-id: https://develop.svn.wordpress.org/trunk@21197 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:19:13 +00:00
Andrew Nacin 4961e22a05 Have the correct screen icon in place when the top level Plugins menu is plugin-install.php. This occurs when the user can install but not activate plugins. see #19824.
git-svn-id: https://develop.svn.wordpress.org/trunk@21196 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:12:26 +00:00
Andrew Nacin b2437fc5d6 Cap checks in the upgrader so we do not show links the user cannot access. props linuxologos for the initial patch. see #19824.
Also fixes a rare fatal error when theme_info is not set when updating a theme that is already up to date.



git-svn-id: https://develop.svn.wordpress.org/trunk@21195 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:08:18 +00:00
Mark Jaquith 183f814884 Prevent child pages from being visually promoted to the top level after Quick Edit. props ssamture. fixes #18615
git-svn-id: https://develop.svn.wordpress.org/trunk@21192 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 09:28:15 +00:00
Mark Jaquith 5268552d72 Prevent child categories from being visually promoted to the top level after Quick Edit. props ssamture. fixes #19474
git-svn-id: https://develop.svn.wordpress.org/trunk@21191 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 09:00:26 +00:00