WordPress/wp-includes
Scott Taylor f30266acb9 Media Grid:
* In Bulk Edit mode, don't attempt to delete or trash an attachment that doesn't have a `delete` nonce. The subsequent `_requery()` will then properly display the attachment still present in the library.
* Remove all updated models from the selection at the same time to avoid async race conditions. The selection is reset when the grid's `select` mode is deactivated, but this allows this view instance to be more portable.

This fix allows users to set caps on individual attachments without confusing the grid's library. This issue was present for bulk actions in general, had nothing to do with `MEDIA_TRASH` specifically.

Fixes #29597.

Built from https://develop.svn.wordpress.org/trunk@29755


git-svn-id: http://core.svn.wordpress.org/trunk@29527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-21 18:52:16 +00:00
..
certificates
css Media Frames: Set the box-sizing CSS property to border-box for checkboxes and radio buttons. 2014-09-10 18:09:16 +00:00
fonts Dashicons: Update to the latest dashicons files. 2014-08-17 15:01:16 +00:00
ID3 Update getID3 library to 1.9.8. 2014-09-11 19:07:17 +00:00
images
js Media Grid: 2014-09-21 18:52:16 +00:00
pomo Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
SimplePie
Text
theme-compat
admin-bar.php Don't display Edit links for posts and terms in toolbar if they are empty. 2014-09-07 08:32:19 +00:00
atomlib.php
author-template.php Convert documentation of default arguments in wp_list_authors() to the hash-notation style. 2014-06-29 22:34:14 +00:00
bookmark-template.php Add indentation for the hash notation missed in [29108]. 2014-07-11 22:59:16 +00:00
bookmark.php Convert default arguments documentation for get_bookmarks() into a hash notation. 2014-07-11 23:03:13 +00:00
cache.php Fix some words that aren't words. 2014-08-09 19:30:17 +00:00
canonical.php Canonical: Apply redirects to HEAD requests too. Adjusts [28958]. 2014-09-02 04:48:17 +00:00
capabilities.php Plugin/Theme Uploads: New capabilities; unify UIs; ensure compatibility with old filters. 2014-08-27 01:32:18 +00:00
category-template.php Additional @return clarifications for get_the_terms(), get_the_tag_list(), and get_the_term_list(). 2014-08-12 23:48:16 +00:00
category.php Deprecate get_all_category_ids(). Suggest get_terms() as a replacement. 2014-06-05 16:25:14 +00:00
class-feed.php
class-http.php Avoid PHP notices when checking for local requests in in WP_Http. 2014-09-02 02:06:17 +00:00
class-IXR.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
class-json.php
class-oembed.php WP_oEmbed::_strip_newlines is called as a filter callback for oembed_dataparse, must be public. It was marked as private for fun in [14109] and then made private officially in [28507]. 2014-09-12 22:54:16 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-simplepie.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
class-smtp.php
class-snoopy.php
class-wp-admin-bar.php
class-wp-ajax-response.php Fix some words that aren't words. 2014-08-09 19:30:17 +00:00
class-wp-customize-control.php Use https for apps.wordpress.org links. 2014-09-09 06:29:15 +00:00
class-wp-customize-manager.php Customizer: Mixed priority sorting for panels and top-level sections. 2014-08-14 04:43:16 +00:00
class-wp-customize-panel.php Customizer panels: use a single back button for all panels. 2014-08-25 23:05:15 +00:00
class-wp-customize-section.php Customizer: Increase default priority for a section to 160. 2014-08-15 19:36:16 +00:00
class-wp-customize-setting.php Correct the documentation for the customize_save_* action. 2014-08-15 19:49:15 +00:00
class-wp-customize-widgets.php Customizer: Mixed priority sorting for panels and top-level sections. 2014-08-14 04:43:16 +00:00
class-wp-editor.php Editor scrolling: reduce the amount of height jumping on load. 2014-08-26 18:39:17 +00:00
class-wp-embed.php Pinking shears. 2014-09-04 15:23:16 +00:00
class-wp-error.php Fix some words that aren't words. 2014-08-09 19:30:17 +00:00
class-wp-http-ixr-client.php
class-wp-image-editor-gd.php Revert [28640] as per @DH-Shredder. 2014-08-01 18:43:16 +00:00
class-wp-image-editor-imagick.php Add ->get_quality() method to WP_Image_Editor class. 2014-06-28 03:50:15 +00:00
class-wp-image-editor.php Add ->get_quality() method to WP_Image_Editor class. 2014-06-28 03:50:15 +00:00
class-wp-theme.php Remove redundant 'Visit author homepage' title attributes for plugins and themes. 2014-06-05 04:52:16 +00:00
class-wp-walker.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
class-wp-xmlrpc-server.php XML-RPC: Check if category support was added for pages before calling wp_get_post_categories() to avoid unnecessary query in wp.getPage. 2014-09-11 13:56:15 +00:00
class-wp.php Fix some words that aren't words. 2014-08-09 19:30:17 +00:00
class.wp-dependencies.php WP_Dependencies->recurse_deps(): tuck the recursion into elseif so the foreach doesn't break on the first item. 2014-07-20 00:34:15 +00:00
class.wp-scripts.php WP_Scripts->in_default_dir() should use the WPINC constant 2014-06-29 22:23:15 +00:00
class.wp-styles.php
comment-template.php Correct a few @param docs for $walker. 2014-07-24 22:25:16 +00:00
comment.php Correct references to post-template.php in the inline docs. 2014-08-12 01:09:17 +00:00
compat.php Constant time for wp_verify_nonce(). 2014-08-06 05:26:16 +00:00
cron.php Skip ALTERNATE_WP_CRON redirect when performing XML-RPC requests. 2014-09-11 14:02:15 +00:00
date.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
default-constants.php Revert [28563]. See #18298. 2014-07-09 18:07:16 +00:00
default-filters.php
default-widgets.php Remove remaining title attributes from default-widgets.php, with the exception of the one on the link to WordPress.org. fixes #26552. 2014-08-01 17:05:16 +00:00
deprecated.php LIKE escape sanity: 2014-06-10 00:30:15 +00:00
feed-atom-comments.php Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. 2014-07-07 10:18:15 +00:00
feed-atom.php Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. 2014-07-07 10:18:15 +00:00
feed-rdf.php Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. 2014-07-07 10:18:15 +00:00
feed-rss2-comments.php Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. 2014-07-07 10:18:15 +00:00
feed-rss2.php Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed. 2014-07-07 10:18:15 +00:00
feed-rss.php
feed.php Correct references to post-template.php in the inline docs. 2014-08-12 01:09:17 +00:00
formatting.php wptexturize() improvements: 2014-09-17 15:14:17 +00:00
functions.php Clarify that get_the_date(), get_the_time(), get_post_time() and get_post_modified_time() should return false when get_post() is null. 2014-08-01 18:40:16 +00:00
functions.wp-scripts.php Revert [28840]; wp_localize_script() must be called on a registered handle. 2014-09-02 19:35:16 +00:00
functions.wp-styles.php
general-template.php Clarify that get_the_date(), get_the_time(), get_post_time() and get_post_modified_time() should return false when get_post() is null. 2014-08-01 18:40:16 +00:00
http.php Convert documentation for default arguments in WP_Http::request() to a hash notation. 2014-07-18 22:01:15 +00:00
kses.php kses: Add colgroup. 2014-09-12 05:51:17 +00:00
l10n.php Language packs: No WPLANG anymore. 2014-08-26 19:59:16 +00:00
link-template.php Use wp_normalize_path() in plugins_url(). 2014-08-05 01:31:16 +00:00
load.php Send nocache_headers() on installation screens and when redirecting to them. 2014-08-25 17:40:16 +00:00
locale.php
media-template.php Avoid PHP notices in media modal caused by orphaned attachments. 2014-09-09 10:03:14 +00:00
media.php Correct 'wp_get_attachment_image_attributes' filter docs. 2014-09-18 12:36:17 +00:00
meta.php Meta Query: Revert [28659] (and [28665]) due to regressions. 2014-08-27 20:23:16 +00:00
ms-blogs.php Simplify the code for calling refresh_blog_details() whenever 'blogname', 'siteurl', or 'post_count' option is updated. 2014-09-02 07:30:16 +00:00
ms-default-constants.php After [29200], switch back to using static vars instead of adding 2 globals, as per Sergey. 2014-07-19 23:14:15 +00:00
ms-default-filters.php Simplify the code for calling refresh_blog_details() whenever 'blogname', 'siteurl', or 'post_count' option is updated. 2014-09-02 07:30:16 +00:00
ms-deprecated.php
ms-files.php
ms-functions.php * Declare $site_mimes before using it in check_upload_mimes(). 2014-09-07 10:11:17 +00:00
ms-load.php Replace all uses of like_escape() with $wpdb->esc_like(). 2014-06-10 00:44:15 +00:00
ms-settings.php Move ms-load.php and ms-default-constants.php inclusion back to ms-settings.php to avoid breaking WP-CLI. 2014-06-30 23:50:15 +00:00
nav-menu-template.php Correct a few @param docs for $walker. 2014-07-24 22:25:16 +00:00
nav-menu.php Use get_registered_nav_menus() in has_nav_menu(). 2014-09-07 10:04:16 +00:00
option.php Fix the wp-settings-* cookies used in getUserSetting()/setUserSetting(). They should be set without COOKIE_DOMAIN to work properly for sub-domains. Fixes #29095. 2014-08-13 02:47:16 +00:00
pluggable-deprecated.php
pluggable.php Add safeguards for when ext/hash is not compiled with PHP. 2014-09-20 17:28:18 +00:00
plugin.php Unit tests for has_filter() not resetting the array pointer. 2014-09-02 06:50:15 +00:00
post-formats.php
post-template.php MediaElement upgrade: cleanup for generated markup for videos. 2014-08-07 05:53:15 +00:00
post-thumbnail-template.php
post.php Add some missing information to the inline docs for get_post_types(). 2014-09-21 08:55:18 +00:00
query.php Query: Add comment to the parse_tax_query() method reflecting [28987]. 2014-09-01 19:51:16 +00:00
registration-functions.php
registration.php
revision.php Remove backticks on $post variables in some short parameter descriptions. 2014-07-03 19:28:14 +00:00
rewrite.php
rss-functions.php
rss.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00
script-loader.php After [29733], version bump for MediaElement. 2014-09-11 19:47:16 +00:00
session.php Add safeguards for when ext/hash is not compiled with PHP. 2014-09-20 17:28:18 +00:00
shortcodes.php wptexturize() improvements: 2014-09-17 15:14:17 +00:00
taxonomy.php wp_update_term() should mimic wp_insert_term() and set a value for $term_group before the alias_of logic runs. This ensures that $term_group exists when compact() is called. 2014-08-20 17:04:18 +00:00
template-loader.php
template.php Revert [28563]. See #18298. 2014-07-09 18:07:16 +00:00
theme.php Fix a typo in the PHPDoc for get_stylesheet(). 2014-07-23 05:11:16 +00:00
update.php Add 'Details' links to installed plugins. 2014-07-18 20:49:17 +00:00
user.php Correct @return value for WP_User_Query::get_total(). 2014-09-13 22:24:17 +00:00
vars.php
version.php Trunk is now 4.1-alpha. 2014-09-05 19:41:16 +00:00
widgets.php Fix a typo in the PHPDoc for wp_register_sidebar_widget(). 2014-07-23 17:21:18 +00:00
wlwmanifest.xml
wp-db.php DB: Revert [28814] and require a WHERE for wpdb::update(). 2014-09-02 04:56:15 +00:00
wp-diff.php Fix some documentation typos in various core files. 2014-08-13 03:56:17 +00:00