WordPress/wp-admin
Scott Taylor 8f0b626d13 Introduce a function, wp_attachment_is( $type, $post = 0 ), to collapse the logic for determining whether an attachment is an image, audio, or video.
This is admittedly a first pass. There needs to be a generic handler for when any other type is passed, but for now it accepts the whitelist.

See #25275.

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


git-svn-id: http://core.svn.wordpress.org/trunk@31626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-06 20:26:26 +00:00
..
css Comments: Show more identifying information for moderation and editing. 2015-03-06 14:06:24 +00:00
images
includes Introduce a function, wp_attachment_is( $type, $post = 0 ), to collapse the logic for determining whether an attachment is an image, audio, or video. 2015-03-06 20:26:26 +00:00
js PressThis: fix toggling of aria-expanded attribute. 2015-03-06 01:51:25 +00:00
maint
network Provide proper label associations and descriptions throughout the network admin 2015-02-23 02:29:26 +00:00
user
about.php Use correct closing tag for "Under the Hood" header on About screen. 2015-02-22 16:44:25 +00:00
admin-ajax.php PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373. 2015-02-25 01:50:26 +00:00
admin-footer.php
admin-functions.php
admin-header.php
admin-post.php
admin.php Avoid confusion by clarifying an inline comment on logic for performing multisite upgrades. 2015-01-29 11:53:21 +00:00
async-upload.php Prevent IE9 and lower displaying the download file dialogue when attempting to upload using the html4 Plupload handler. 2015-02-12 01:15:29 +00:00
comment.php Comments: Show more identifying information for moderation and editing. 2015-03-06 14:06:24 +00:00
credits.php
custom-background.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
custom-header.php Make a new function, wp_delete_file(). Use it. 2015-02-27 16:51:25 +00:00
customize.php Add wp.a11y.speak() for audible alerts/updates in screen readers. Props afercia, GrahamArmfield (for the idea), iseulde. Fixes #31368. 2015-03-01 19:11:27 +00:00
edit-comments.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
edit-form-advanced.php Introduce a function, wp_attachment_is( $type, $post = 0 ), to collapse the logic for determining whether an attachment is an image, audio, or video. 2015-03-06 20:26:26 +00:00
edit-form-comment.php Comments: Show more identifying information for moderation and editing. 2015-03-06 14:06:24 +00:00
edit-link-form.php
edit-tag-form.php
edit-tags.php Remove inaccurate part of {$taxonomy}_add_form_fields action description. 2015-01-19 15:31:23 +00:00
edit.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
export.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
freedoms.php
import.php
index.php
install-helper.php
install.php Remove duplicate label on installation screen. 2015-01-25 19:39:23 +00:00
link-add.php
link-manager.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
link-parse-opml.php
link.php
load-scripts.php
load-styles.php Simplify the setup-config.php UI flow and load process. 2014-07-03 19:57:14 +00:00
media-new.php
media-upload.php Remove an extra indent from most of media-new.php. 2015-02-03 07:47:22 +00:00
media.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
menu-header.php In _wp_menu_output(), $submenu_items is an array and should be initialized as such. 2015-02-07 17:57:24 +00:00
menu.php Escape Customizer links in the admin menu. Fix usage of add_query_arg(). 2015-02-11 22:48:27 +00:00
moderation.php
ms-admin.php
ms-delete-site.php Replace generic "Dear user" greeting in email notifications with a more personalized one. 2015-02-10 07:47:27 +00:00
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
nav-menus.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:48:26 +00:00
network.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
options-discussion.php
options-general.php
options-head.php Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes(). 2013-03-01 17:14:09 +00:00
options-media.php
options-permalink.php
options-reading.php
options-writing.php PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373. 2015-02-25 01:50:26 +00:00
options.php
plugin-editor.php
plugin-install.php Shiny Updates: Add ajax-y updates to the plugin list page, and ajax-y updates and installs to the plugin card page. 2015-02-05 04:19:23 +00:00
plugins.php Shiny Updates: Add ajax-y updates to the plugin list page, and ajax-y updates and installs to the plugin card page. 2015-02-05 04:19:23 +00:00
post-new.php
post.php When adding post_type to $sendback in wp-admin/post.php, use add_query_arg() instead of string concatenation. 2015-03-05 22:31:24 +00:00
press-this.php PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373. 2015-02-25 01:50:26 +00:00
profile.php
revision.php
setup-config.php WPDB: If a site is using the utf8 charset, and their version of MySQL supports utf8mb4, auto-upgrade them to utf8mb4. 2015-02-06 04:51:22 +00:00
theme-editor.php
theme-install.php Themes: Add feedback for screen readers when search results are changed. 2015-02-22 10:15:26 +00:00
themes.php Themes: Add feedback for screen readers when search results are changed. 2015-02-22 10:15:26 +00:00
tools.php PressThis: accessibility enhancements: 2015-02-27 02:50:25 +00:00
update-core.php Upgrades: Specifically pass the 'version' and 'locale' POST vars through the Core Update FTP credentials form. 2015-02-24 03:01:25 +00:00
update.php
upgrade-functions.php
upgrade.php
upload.php detached affects the wp() call for the media list table, so switch our new $_GET key to detach. 2015-03-05 15:59:27 +00:00
user-edit.php Avoid clearing stored capabilities for a user when removing their built in role in multisite. 2015-02-23 01:34:24 +00:00
user-new.php Add New User: Remove trailing whitespace from button labels. 2015-01-29 14:54:21 +00:00
users.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:16:24 +00:00
widgets.php Widgets: Add return param for widgets admin page to the "Manage in Customizer" link. 2015-02-11 20:57:26 +00:00