Commit Graph

10332 Commits

Author SHA1 Message Date
Ryan Boren c4efcb4def Fix MS Office mime types. Group the mime list in get_allowed_mime_types() by type. Props hebbet, markel, SergeyBiryukov. fixes #17117
git-svn-id: https://develop.svn.wordpress.org/trunk@21527 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 16:48:36 +00:00
Ryan Boren 720ec1cd07 Return post_parent, menu_order, guid, and post_mime_type from wp.getPost(). Props maxcutler. fixes #21308
git-svn-id: https://develop.svn.wordpress.org/trunk@21526 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 16:06:05 +00:00
Ryan Boren 67fb26f7b2 Fix phpdoc for switch_to_blog() and restore_current_blog(). Props SergeyBiryukov. fixes #21459
git-svn-id: https://develop.svn.wordpress.org/trunk@21523 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 15:56:14 +00:00
Ryan Boren a77d7f0867 Add @since for _wp_get_user_contactmethods() and _get_additional_user_keys(). Props SergeyBiryukov. fixes #21246
git-svn-id: https://develop.svn.wordpress.org/trunk@21522 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 15:33:59 +00:00
Ryan Boren 70061dfb5f Update @since for various wpdb properties. Props SergeyBiryukov. fixes #21582
git-svn-id: https://develop.svn.wordpress.org/trunk@21521 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 15:32:35 +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 Nacin 821a0d8181 @since for wpdb's result property. props SergeyBiryukov. see #21533.
git-svn-id: https://develop.svn.wordpress.org/trunk@21513 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 20:34:12 +00:00
Andrew Nacin c653147d47 Add magic set, isset, and unset to wpdb. props pento.
These magic methods allow us to mark properties as protected or private, without breaking compatibility, as they were once accessible. The joys of PHP4.

fixes #18510.



git-svn-id: https://develop.svn.wordpress.org/trunk@21512 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 20:26:04 +00:00
Andrew Nacin 69881dfee7 Eliminate error suppression for mysql_free_result() and only call it when the result is actually a resource. Depending on the query, mysql_query() can return a boolean rather than a resource, hence the original use of error suppression.
Fixes a warning introduced in [21472] when calling mysql_free_result() was moved to flush().

fixes #20838.



git-svn-id: https://develop.svn.wordpress.org/trunk@21511 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 20:21:10 +00:00
Ryan Boren 83e5beed47 Update wp_update_user() phpdoc to reflect a possible return of WP_Error. Props SergeyBiryukov. fixes #21439
git-svn-id: https://develop.svn.wordpress.org/trunk@21509 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:29:40 +00:00
Ryan Boren 5cbcb6a764 Add isset() check to avoid notice. Props c3mdigital. fixes #21512
git-svn-id: https://develop.svn.wordpress.org/trunk@21506 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:07:56 +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
Andrew Nacin 665ad96636 Fix WP_Theme's get_template_directory_uri() method. props batmoo. see #21549 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21503 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:38: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
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 1096d07b11 Avoid fatal error in the customizer when the current theme doesn't support custom headers. Props c3mdigital. fixes #21515
git-svn-id: https://develop.svn.wordpress.org/trunk@21497 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 20:15:06 +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
Andrew Ozz d79594b872 Better editor background, take one, see #21536
git-svn-id: https://develop.svn.wordpress.org/trunk@21495 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 07:11:03 +00:00
Ryan Boren 20a1def1c0 switch_to_blog() and restore_current_blog() housekeeping.
wp-includes/admin-bar.php:

* Replace get_admin_url() and get_home_url() with admin_url() and home_url() and place them inside a switch/restore. Likewise replace current_user_can_for_blog() with current_user_can(). This avoids doing multiple switch restores.

wp-includes/ms-blogs.php:

* Deprecate the $validate argument to switch_to_blog(). This avoids a not very necessary call to get_blog_details(), possibly saving a few queries.
* Use $_wp_switched and $_wp_switched_stack instead of $switched and $switched_stack to make it less likely these globals will be stomped.
* Use GLOBALS to access blog_id and other globals. I've preferred this style lately since it makes it obvious a global is being used and avoids global blog_id being stomped by a local variable.
* Lose some is_object() checks. wp_get_current_user() always returns an object, for example.
* Call the new WP_Roles::reinit() method.

wp-includes/class-wp-xmlrpc-server.php:

* Replace current_user_can_for_blog() with current_user_can() and move it inside the switch/restore pair. This eliminates a switch/restore.

wp-includes/capabilities.php:

* Use array_keys() instead of $role => $data since $data is unused. I *think* this is a bit faster.
* Introduce WP_Roles::reinit(). This reinitializes WP_Roles and is used after switch_to_blog() has already update the blog ID in the wpdb object. If a global roles array is being used instead of the db, reinit is skipped.
* current_user_can_for_blog() now does a switch/restore. It didn't before meaning it could be reinitializing the user with the wrong role information for the current blog.

wp-includes/ms-settings.php:

* Define $_wp_switched_stack and $_wp_switched. This way switch_to_blog() and restore_current_blog() can rely on it being set.

wp-settings.php:

* Instantiate the WP_Roles global. This was it is always defined during init. To remove the WP_Roles checks from WP_Role and WP_User this would probably have to move before plugins are loaded, which might not be a good thing.

wp-includes/functions.php:

* Update wp_upload_dir() to reference _wp_switched.



git-svn-id: https://develop.svn.wordpress.org/trunk@21485 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 16:28:15 +00:00
Ryan Boren fd52f7397d Move get_current_blog_id() to load.php so it is available during multisite bootstrap. fixes #21432
git-svn-id: https://develop.svn.wordpress.org/trunk@21484 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 13:17:14 +00:00
Andrew Ozz 90e990d983 When WP_Dependencies accept a string for a single dependency, make sure the string is not empty, see #20683
git-svn-id: https://develop.svn.wordpress.org/trunk@21481 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 17:21:24 +00:00
Ryan Boren 4c0121178b Undeprecate *_blog_option() by popular demand. Put them back in ms-blogs.php since direct inclusion of ms-blogs.php/ms-functions.php is unforntunately common.
see #21432


git-svn-id: https://develop.svn.wordpress.org/trunk@21480 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 17:11:15 +00:00
Andrew Nacin 5a45a59cb2 Declare, document, and protect $dbuser, $dbpassword, $dbname, $dbhost and $dbh in wpdb.
These properties, while protected, are still accessible thanks to the magic getter added in [21472].

props pento, nvartolomei, joelhardi. fixes #18510.



git-svn-id: https://develop.svn.wordpress.org/trunk@21473 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:28:57 +00:00
Andrew Nacin b3fb67a97d Lazy-load column info in wpdb. props pento. fixes #20838.
git-svn-id: https://develop.svn.wordpress.org/trunk@21472 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:24:59 +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 aba535c65b Deprecate wpdb::supports_collation() in favor of wpdb::has_cap().
props hakre, pento. fixes #16757.



git-svn-id: https://develop.svn.wordpress.org/trunk@21470 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:06:57 +00:00
Andrew Ozz 42b696ee44 Fix typo in wp_login_form(), props greenshady, fixes #21514
git-svn-id: https://develop.svn.wordpress.org/trunk@21469 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 23:13:31 +00:00
Andrew Ozz 4e712ea44c TinyMCE: fix typo in button tooltips.
git-svn-id: https://develop.svn.wordpress.org/trunk@21468 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 03:28:20 +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
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
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
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
bumpbot add3a6f3ba Compress scripts/styles: 3.5-alpha-21453.
git-svn-id: https://develop.svn.wordpress.org/trunk@21453 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 00:58:32 +00:00
Andrew Ozz d80d9acc28 Accessibility: add off-screen Log Out link in the toolbar, tweak the class names of the accessible links in #adminbar, see #21312
git-svn-id: https://develop.svn.wordpress.org/trunk@21452 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 00:34:44 +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
bumpbot 0f3bfa1172 Compress scripts/styles: 3.5-alpha-21429.
git-svn-id: https://develop.svn.wordpress.org/trunk@21429 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 20:58:19 +00:00
Andrew Ozz d5cdd76bde Accessibility: add text to the updates link in the toolbar, props SergeyBiryukov, fixes #21333
git-svn-id: https://develop.svn.wordpress.org/trunk@21425 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 19:10:11 +00:00
bumpbot 0630d134d2 Compress scripts/styles: 3.5-alpha-21424.
git-svn-id: https://develop.svn.wordpress.org/trunk@21424 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 18:58:19 +00:00
Andrew Ozz b9892b6f4e Add "Skip to toolbar" accessibility shortcut, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21423 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 18:41:52 +00:00
Dion Hulse 2c0adebab9 Fix the plupload script enqueue, props SergeyBiryukov, Fixes #21467. See #20683.
git-svn-id: https://develop.svn.wordpress.org/trunk@21421 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 12:16:16 +00:00
Mark Jaquith c2374d2d05 Let WP_Dependencies accept a string for a single dependency instead of requiring an array wrapper. props vhauri. fixes #20683
git-svn-id: https://develop.svn.wordpress.org/trunk@21420 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-04 17:59:55 +00:00
bumpbot 03768ac6dd Compress scripts/styles: 3.5-alpha-21419.
git-svn-id: https://develop.svn.wordpress.org/trunk@21419 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 22:58:18 +00:00
Andrew Ozz 79616fbb50 Quicktags: don't call the callback on pressing the access key when a button is not visible, see #21460
git-svn-id: https://develop.svn.wordpress.org/trunk@21418 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 21:47:58 +00:00
Andrew Ozz dbb09dee01 Add translation context for the Text editor tab name, props obenland, fixes #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21417 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 21:08:52 +00:00
bumpbot 4e1bc64c80 Compress scripts/styles: 3.5-alpha-21416. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21416 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 18:58:19 +00:00
Andrew Ozz ffab659fea TinyMCE: revert Firefox shortcuts to match all other browsers (Alt+Shift+letter), fix the labels for the shortcuts, update description in wp-mce-help, fixes #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21415 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 18:12:45 +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
Ryan Boren 691425a3ff Introduce wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() as a lighter/faster way to switch the cache to a new blog id.
Add the blog id to the cache keys for multisite installs.

Use wp_cache_switch_to_blog() instead of wp_cache_init() in switch_to_blog().

Use wp_cache_switch_to_blog() instead of wp_cache_reset() in wp_start_object_cache().

Deprecate wp_cache_reset().

This avoids the many queries needed to re-prime the cache after switch_to_blog() on multisite installs using the default cache backend.

fixes #21434



git-svn-id: https://develop.svn.wordpress.org/trunk@21403 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-02 18:31:14 +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
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
Daryl Koopersmith 339f4deff6 Fix @since blocks... since we already released 3.4.1. see #21355.
git-svn-id: https://develop.svn.wordpress.org/trunk@21386 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 07:20:44 +00:00
Daryl Koopersmith 0c84f28fb4 Add @since documentation, see #21355.
git-svn-id: https://develop.svn.wordpress.org/trunk@21385 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 07:01:08 +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
bumpbot 1f6ab35e33 Compress scripts/styles: 3.5-alpha-21382.
git-svn-id: https://develop.svn.wordpress.org/trunk@21382 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 02:58:20 +00:00
Daryl Koopersmith 2439e4d722 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@21381 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 02:30:02 +00:00
Daryl Koopersmith a1513dd683 When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].
git-svn-id: https://develop.svn.wordpress.org/trunk@21380 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 02:27:18 +00:00
Daryl Koopersmith 75f9258969 Make the browser property in wp.Uploader optional. fixes #21437.
git-svn-id: https://develop.svn.wordpress.org/trunk@21379 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 01:10:13 +00:00
Ryan Boren 43d668a041 Use Yoda conditions. Props evansolomon. see #21270
git-svn-id: https://develop.svn.wordpress.org/trunk@21378 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 21:11:17 +00:00
Andrew Nacin d69dda48ec Use get_userdata() rather than new WP_User in is_super_admin(), to take advantage of the performance improvements in [21376]. see #21120.
git-svn-id: https://develop.svn.wordpress.org/trunk@21377 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 17:47:08 +00:00
Andrew Nacin 2c058d3b3a Optimize get_user_by( 'id', $id ) to return wp_get_current_user() when the current user ID is requested.
Provides for a major performance improvement by preventing repeated instantiations of WP_User in the capabilities API.

see #21120.



git-svn-id: https://develop.svn.wordpress.org/trunk@21376 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 17:45:38 +00:00
Andrew Nacin cd7e3f097d Don't call get_userdata() every time for the current user in map_meta_cap()'s read_post, edit_post, and delete_post branches. see #21120.
git-svn-id: https://develop.svn.wordpress.org/trunk@21375 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 17:39:14 +00:00
Ryan Boren 4bdd2ed253 Better phpdoc for user_nicename. Props SergeyBiryukov. fixes #21427
git-svn-id: https://develop.svn.wordpress.org/trunk@21374 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 15:50:29 +00:00
Ryan Boren 872ba2c28f Call func_get_args() once in add_query_arg(). Props SergeyBiryukov. see #21332
git-svn-id: https://develop.svn.wordpress.org/trunk@21373 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-31 15:28:10 +00:00
Andrew Ozz da057a8eb0 TinyMCE: better exclusion of Opera mobile, fixes #21416
git-svn-id: https://develop.svn.wordpress.org/trunk@21367 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 19:40:52 +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 c1051b1088 Take the mmm out of comment_ID. Just mm is sufficient.
Props wonderboymusic
fixes #21400


git-svn-id: https://develop.svn.wordpress.org/trunk@21363 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 16:16:13 +00:00
Andrew Ozz 910d232ac0 TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416
git-svn-id: https://develop.svn.wordpress.org/trunk@21361 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 00:14:43 +00:00
bumpbot 37431ce817 Compress scripts/styles: 3.5-alpha-21360. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21360 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-29 22:58:19 +00:00
Andrew Ozz 23e2a1813c TinyMCE shortcuts: revert to Alt + Shift + letter for WebKit and Ctrl + Alt + letter (Command + Option + letter) in Firefox, see #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21359 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-29 21:08:58 +00:00
Ryan Boren 9b9ce59786 Refactor *_blog_option() functions to use switch_to_blog(), restore_current_blog(), and the *_option() functions. Do not use site-options for blog option caching as this duplicated info and did not properly invalidate.
Props jeremyfelt
fixes #21270


git-svn-id: https://develop.svn.wordpress.org/trunk@21357 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-27 14:57:32 +00:00
Ryan Boren 0b39b920c1 phpdoc for Customizer classes and methods. Props bananastalktome. see #21303
git-svn-id: https://develop.svn.wordpress.org/trunk@21354 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 21:45:33 +00:00
Ryan Boren 46dd14c4e1 Introduce wp_oembed_remove_provider(). Props r-a-y. fixes #16327
git-svn-id: https://develop.svn.wordpress.org/trunk@21351 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 20:18:27 +00:00
bumpbot 1f5a10a0aa Compress scripts/styles: 3.5-alpha-21348.
git-svn-id: https://develop.svn.wordpress.org/trunk@21348 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 22:58:21 +00:00
Andrew Ozz cda6c6f03a Update ImgAreaSelect to 0.9.9 that fixes IE7 stack overflow error, props c3mdigital, fixes #21363, fixes #21348 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21347 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 22:43:04 +00:00
Andrew Ozz 3063d8c886 Bail out themes and plugins that have copied code from core and don't maintain it by requiring class-wp-editor.php in wp-langs.php, fixes #21350 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21345 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 19:59:29 +00:00
bumpbot f6eb6172f6 Compress scripts/styles: 3.5-alpha-21338.
git-svn-id: https://develop.svn.wordpress.org/trunk@21339 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 18:58:20 +00:00
Andrew Ozz f3a2658f4e Reset text-indent on the toolbar, props mfields, fixes #21362
git-svn-id: https://develop.svn.wordpress.org/trunk@21335 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 18:38:16 +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 d3281725ec Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365
git-svn-id: https://develop.svn.wordpress.org/trunk@21332 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 18:04:17 +00:00
Ryan Boren 712e8a48d2 Don't attempt to define the COMMENTS_TEMPLATE constant twice. Props kitchin. fixes #21337
git-svn-id: https://develop.svn.wordpress.org/trunk@21330 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 17:54:35 +00:00
Ryan Boren c4b8b6b42a Set the global comment var before invoking callbacks in wp_list_comments(). Props sirzooro. fixes #21184
git-svn-id: https://develop.svn.wordpress.org/trunk@21324 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 16:27:48 +00:00
bumpbot 03ac2d077c Compress scripts/styles: 3.5-alpha-21321.
git-svn-id: https://develop.svn.wordpress.org/trunk@21321 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 06:58:20 +00:00
Andrew Ozz 3381c0da99 RTL css for the spinner in internal linking, see #21351
git-svn-id: https://develop.svn.wordpress.org/trunk@21320 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 05:15:26 +00:00
Andrew Ozz 461bdfbd2d Put the spinner back to the right of the search field in internal linking, fixes #21351
git-svn-id: https://develop.svn.wordpress.org/trunk@21319 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 04:41:18 +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
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
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 bae315cbca Fix internal linking search spinner position, fixes #21351
git-svn-id: https://develop.svn.wordpress.org/trunk@21306 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:18:28 +00:00
bumpbot 3778e5ea4a Compress scripts/styles: 3.5-alpha-21304.
git-svn-id: https://develop.svn.wordpress.org/trunk@21304 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 00:58:20 +00:00
Andrew Ozz e99ef58818 Add tabbing from Title directly to the textarea when the Text editor is active, fixes #20834
git-svn-id: https://develop.svn.wordpress.org/trunk@21303 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 23:05:58 +00:00
Jon Cave 708d475b96 Remove unused arguments (hierarchical, _edit_link, capability_type) from register_post_status
Props scribu, simonwheatley. Fixes #18578, #18972.


git-svn-id: https://develop.svn.wordpress.org/trunk@21302 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 08:45:35 +00:00
bumpbot a95752402e Compress scripts/styles: 3.5-alpha-21301. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21301 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-22 02:58:18 +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 9c7a3a6c68 Revert [21287] until #21169 goes through. see #21321.
git-svn-id: https://develop.svn.wordpress.org/trunk@21299 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 20:24:21 +00:00
Andrew Nacin 6de675bd6a Remove unnecessary error suppression operators from func_get_arg() and func_num_args(). see #21332.
git-svn-id: https://develop.svn.wordpress.org/trunk@21298 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 06:07:39 +00:00
bumpbot 4777f4f5ba Compress scripts/styles: 3.5-alpha-21297.
git-svn-id: https://develop.svn.wordpress.org/trunk@21297 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 00:58:19 +00:00
Andrew Ozz 4dea1596a9 Add query args to refresh the sprite images, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21296 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 23:38:23 +00:00
Andrew Ozz f90d787959 Retina: fix the icon positions in the original editor buttons sprite, reset the css tweaks and adjust the positions in the 2x sprite, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21295 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 23:07:48 +00:00
Andrew Nacin 09c0ae245f If $group is empty in WP_Object_Cache::decr(), consider it to be 'default'.
This is consistent with the rest of the cache methods wrapped by
functions; the functions pass an empty string by default, hence
the need for this check.

props bananastalktome.
fixes #21327.



git-svn-id: https://develop.svn.wordpress.org/trunk@21294 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 20:15:25 +00:00
Ryan Boren a5d94bef07 Introduce cron_request filter. Props ikailo. fixes #13449
git-svn-id: https://develop.svn.wordpress.org/trunk@21293 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:15:22 +00:00
Andrew Nacin 6b6bea5e0d Only run stripslashes() in stripslashes_deep() for strings, not other scalar values. props Kawauso, knutsp. props coffee2code for [UT698]. fixes #18026.
git-svn-id: https://develop.svn.wordpress.org/trunk@21292 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:14:26 +00:00
Andrew Nacin 0887beb1d8 Fix typo in HTTP docblock. props ocean90. fixes #21215.
git-svn-id: https://develop.svn.wordpress.org/trunk@21290 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:09:11 +00:00
Andrew Nacin f4fc103c50 Use html_type for alternate link elements in atom feeds, as done in atom comment feeds. props niallkennedy. fixes #21305.
git-svn-id: https://develop.svn.wordpress.org/trunk@21289 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:08:45 +00:00
Andrew Nacin 50cd56f8fd Clarify the return value of has_filter() and has_action(). It returns a boolean if only the first argument is specified. If the second argument is specified, it returns false or an integer, which means it may return a non-boolean value that evaluates to false (so, 0), so you should take care to use the === operator.
Correct the function definition of remove_filter() and remove_action(), which 'accepted' an $accepted_args argument, but did not require or use it.

fixes #19417.



git-svn-id: https://develop.svn.wordpress.org/trunk@21288 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 13:54:42 +00:00
Andrew Nacin 11e877bcb8 Remove unnecessary is_null() checks from the worker loops inside do_action(), apply_filters(), etc. fixes #21321. see #21169.
git-svn-id: https://develop.svn.wordpress.org/trunk@21287 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 05:25:37 +00:00
Mark Jaquith ec527ab07d Clear the get_pages cache whenever ANY hierarchical post type cache is cleared — not just Pages. fixes #21279
git-svn-id: https://develop.svn.wordpress.org/trunk@21286 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 04:35:51 +00:00
Andrew Nacin 237b7f6dbe Improve the performance of WP_Object_Cache's _exists() method.
Results showed a performance improvement on one admin screen of 90ms (~2%).

fixes #21320. see #20004.



git-svn-id: https://develop.svn.wordpress.org/trunk@21285 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 04:21:42 +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
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
bumpbot 1879bb5571 Compress scripts/styles: 3.5-alpha-21273. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21273 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 02:58:20 +00:00
Andrew Ozz b3fdac2a17 TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21272 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 01:46:54 +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
bumpbot 47002c1652 Compress scripts/styles: 3.5-alpha-21269. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21269 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:58:19 +00:00
Andrew Ozz 9423d09005 TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see #21214, fixes #21197, fixes #17992
git-svn-id: https://develop.svn.wordpress.org/trunk@21266 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:26:49 +00:00
Andrew Nacin e6eda2b3f7 Admin bar: When calling add_node() for an existing node, all properties should be merged into the existing arguments, including individual meta arguments. Corrects a logic inversion. fixes #21117.
git-svn-id: https://develop.svn.wordpress.org/trunk@21259 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 21:26:35 +00:00
Andrew Nacin 8a7ca493ad Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117.
git-svn-id: https://develop.svn.wordpress.org/trunk@21258 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 20:46:22 +00:00
Andrew Nacin aa7f457bfb Tabs, not spaces for intendation. Add a docblock to the file/class.
git-svn-id: https://develop.svn.wordpress.org/trunk@21257 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 20:32:48 +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
bumpbot 95aac8c091 Compress scripts/styles: 3.5-alpha-21255. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21255 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:58:25 +00:00
Andrew Ozz e69e38219b TinyMCE: when pressing Enter while an image with caption is selected, fix moving the caret in a new paragraph under it, fix opening the Image Properties popup in IE9, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21254 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:31:30 +00:00
Andrew Nacin e256a654ba Deprecate sticky_class() in favor of post_class(). props solarissmoke, fixes #16675.
git-svn-id: https://develop.svn.wordpress.org/trunk@21253 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 21:10:59 +00:00
Andrew Nacin c418e6c76e Remove unused global reference. props ampt. fixes #20863.
git-svn-id: https://develop.svn.wordpress.org/trunk@21252 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 19:48:04 +00:00
Andrew Nacin 041b5f7af1 HTML object tags are self-nestable. props coffee2code. fixes #20401.
git-svn-id: https://develop.svn.wordpress.org/trunk@21250 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 19:27:44 +00:00
Andrew Nacin 9f9f2bcf13 Use is_main_query() method, rather than the function. Only decode the search query variable if we are executing the main query and it came from the /search/ base, rather than the query string. fixes #13961.
git-svn-id: https://develop.svn.wordpress.org/trunk@21248 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 17:28:55 +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 5372c1bcae TinyMCE icons sprite with tweaked positions, props lessbloat, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@21245 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 06:11:30 +00:00
Mark Jaquith ea8be18c39 Collapse an i18n context to make it more accurate and to make for one less string to translate. props pavelevap. fixes #21137
git-svn-id: https://develop.svn.wordpress.org/trunk@21242 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:08:43 +00:00
Mark Jaquith ebcf49cf93 Bunch of PHPDoc corrections and cleanups. props c3mdigital. props SergeyBiryukov. fixes #21149
git-svn-id: https://develop.svn.wordpress.org/trunk@21241 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:03:53 +00:00
Mark Jaquith 68ff684271 Supply the missing @return doc for get_the_content_feed(). props c3mdigital. fixes #21148
git-svn-id: https://develop.svn.wordpress.org/trunk@21239 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 04:51:00 +00:00
Mark Jaquith fb23c2d9f4 Use a CDATA section for RSS2 comments feeds, so HTML in comments doesn't kill XML validation. props bazza. fixes #16466
git-svn-id: https://develop.svn.wordpress.org/trunk@21238 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 04:25:57 +00:00
Mark Jaquith 0290c34cee Do not block XML-RPC uploads when upload_space_check_disabled is true, regardless of fileupload_maxk value. props SergeyBiryukov. fixes #16217
git-svn-id: https://develop.svn.wordpress.org/trunk@21237 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:49:23 +00:00
Mark Jaquith d3039fdd15 Use the_content_feed() when looking for zero-length post content for RSS2 feeds. Now you can have blank posts with content generated by the_content filters. props SergeyBiryukov. fixes #15604
git-svn-id: https://develop.svn.wordpress.org/trunk@21235 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 03:33:01 +00:00
bumpbot 12f878c0ec Compress scripts/styles: 3.5-alpha-21233. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21233 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 22:58:20 +00:00
Andrew Ozz 23cbfec581 TinyMCE: don't throw fatal errors for malformed/invalid image caption shortcodes, props SergeyBiryukov, see #21145
git-svn-id: https://develop.svn.wordpress.org/trunk@21232 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 21:11:23 +00:00
Dion Hulse fc9df89100 WP_HTTP: Add a @link to the Chunked Decode RFC for documentation of how to decode the data correctly. Props mailnew2ster. Fixes #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21231 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 05:34:47 +00:00
Dion Hulse 77c54f2481 WP_HTTP: Remove a empty() check that would never be empty due to the format of HTTP Headers, value would always contain at least a space followed by the value. See #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21230 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 05:16:26 +00:00
bumpbot 420c84a793 Compress scripts/styles: 3.5-alpha-21229. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21229 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 16:58:20 +00:00
Andrew Ozz 35d883e244 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21228 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 16:22:53 +00:00
Dion Hulse 28d82c9b04 WP_HTTP: Allow for cookies with "empty" values be sent, this affects sending cookies such as test=0, which would previously fail. Props mailnew2ster for initial patch. See #14184
git-svn-id: https://develop.svn.wordpress.org/trunk@21227 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 12:06:09 +00:00
Dion Hulse ceec50af94 WP_HTTP: Respect that some cookies do not have an expiration time, this is a valid use-case that WP_HTTP_Cookie::test() should not discard, a non-existant expiration date simply means to let it expire at the end of the session. Props mailnew2ster. Fixes #14191
git-svn-id: https://develop.svn.wordpress.org/trunk@21226 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 04:23:49 +00:00
Dion Hulse f2bd679b96 WP_HTTP: Add a filter to WP_HTTP_Proxy::send_through_proxy() to allow for plugins to modify which requests are sent to a proxy dynamically. Fixes #20222
git-svn-id: https://develop.svn.wordpress.org/trunk@21225 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 02:27:13 +00:00