Wordpress/src/wp-admin/includes
Scott Taylor 42bcec5061 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@31645 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 20:25:09 +00:00
..
admin.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:13:53 +00:00
ajax-actions.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:25:09 +00:00
bookmark.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:15:29 +00:00
class-ftp-pure.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:56:05 +00:00
class-ftp-sockets.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:56:05 +00:00
class-ftp.php PHP 5.2 compatibility for [30310], __DIR__ wasn't added until PHP 5.3. Props TobiasBg. Fixes #29628 2014-11-12 10:43:09 +00:00
class-pclzip.php
class-wp-comments-list-table.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
class-wp-filesystem-base.php Don't call the size function count() as part of a test condition in loops. Compute the size beforehand, and not on each iteration. 2015-02-26 05:47:53 +00:00
class-wp-filesystem-direct.php Improve some wp-admin/includes/class-wp-filesystem-*.php docs for @param. 2014-12-20 20:39:41 +00:00
class-wp-filesystem-ftpext.php Calling ->chown() and ->chgrp() in WP_Filesystem_FTPext produces no side-effects. Remove the calls. ->chgrp() is defined in the super class, and does nothing, can be removed from the child class. 2015-01-16 21:06:29 +00:00
class-wp-filesystem-ftpsockets.php Fix some erroneous @param annotations. 2015-01-16 22:43:13 +00:00
class-wp-filesystem-ssh2.php Fix some erroneous @param annotations. 2015-01-16 22:43:13 +00:00
class-wp-importer.php Fix some internal types that are passed to functions to avoid changing the acceptable types passed as arguments to those functions: 2015-01-16 22:50:20 +00:00
class-wp-links-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:13:03 +00:00
class-wp-list-table.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
class-wp-media-list-table.php Allow attachments to be Detached from their parent in media grid and list modes. 2015-03-05 05:34:40 +00:00
class-wp-ms-sites-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:13:03 +00:00
class-wp-ms-themes-list-table.php In lieu of refactoring, add a private field to WP_MS_Themes_List_Table, $has_items. Ideally, this class would overload ->has_items() and not set a private field. 2015-01-12 16:16:16 +00:00
class-wp-ms-users-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:13:03 +00:00
class-wp-plugin-install-list-table.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:18:57 +00:00
class-wp-plugins-list-table.php Improve various @param docs for List Tables. 2014-12-01 00:32:19 +00:00
class-wp-posts-list-table.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
class-wp-press-this.php PressThis: when server-side parsing, filter small images by the width and height attributes if set. 2015-03-06 02:02:03 +00:00
class-wp-terms-list-table.php Accessibility: remove remaining instances of accesskey. 2015-02-04 03:45:24 +00:00
class-wp-theme-install-list-table.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/includes/*. 2014-11-30 11:27:19 +00:00
class-wp-themes-list-table.php Improve various @param docs for List Tables. 2014-12-01 00:32:19 +00:00
class-wp-upgrader-skins.php Remove untranslatable period from a successful update message in Bulk_Upgrader_Skin::add_strings(). 2015-02-22 17:06:02 +00:00
class-wp-upgrader.php Correct parameter types for Plugin_Upgrader::bulk_upgrade() and Theme_Upgrader::bulk_upgrade(). 2015-02-13 04:18:45 +00:00
class-wp-users-list-table.php Provide proper label associations and descriptions throughout the network admin 2015-02-23 02:28:41 +00:00
comment.php Correct references of @uses $wpdb in core documentation to use @global. 2014-10-31 17:55:39 +00:00
continents-cities.php
dashboard.php Provide proper label associations and descriptions throughout the network admin 2015-02-23 02:28:41 +00:00
deprecated.php Correctly capitalize JavaScript throughout core docs. 2014-12-02 00:30:59 +00:00
export.php The keyword elseif should be used instead of else if so that all control keywords look like single words. 2015-01-08 07:04:40 +00:00
file.php Fix some erroneous @param annotations. 2015-01-16 22:43:13 +00:00
image-edit.php Make a new function, wp_delete_file(). Use it. 2015-02-27 16:50:14 +00:00
image.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:25:09 +00:00
import.php In wp_import_handle_upload(): 2014-12-20 21:09:11 +00:00
list-table.php Fix mismatches in access modifiers for WP_List_Table + subclasses. 2014-07-13 22:08:22 +00:00
media.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:25:09 +00:00
menu.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2015-01-29 21:14:54 +00:00
meta-boxes.php Remove the once-placeholder-esque "tag hint", which has not worked in quite some time. 2015-03-03 21:52:35 +00:00
misc.php Fill in the @param types for the args for functions missing them in wp-admin/includes/misc.php. 2014-11-03 06:00:25 +00:00
ms-deprecated.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:13:53 +00:00
ms.php Provide proper label associations and descriptions throughout the network admin 2015-02-23 02:28:41 +00:00
nav-menu.php Nav menus: Better JS performance on initial load of edit screen. 2015-03-03 21:13:37 +00:00
plugin-install.php Avoid inadvertent stomping of the original $args parameter passed to plugins_api_result and themes_api_result filters in plugins_api() and themes_api(), respectively. 2015-02-07 06:20:42 +00:00
plugin.php Remove unused local vars in delete_plugins(), delete_theme(), WP_Date_Query->validate_date_values(), global_terms(), and WP_Text_Diff_Renderer_Table->_changed(). 2015-01-16 21:18:52 +00:00
post.php Don't parse empty 'tax_input' keys in edit_post(). 2015-02-09 22:53:40 +00:00
revision.php In wp-admin/includes/revision.php, $post->modified is a coding error. It should be $post->post_modified. 2015-01-10 05:49:24 +00:00
schema.php Replace generic "Dear user" greeting in email notifications with a more personalized one. 2015-02-10 07:46:50 +00:00
screen.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
taxonomy.php Add missing descriptions to the DocBlocks for various functions in wp-admin/includes/taxonomy.php. 2015-01-29 11:33:02 +00:00
template.php List tables: Display front and posts page indicators. 2015-03-04 19:44:22 +00:00
theme-install.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
theme.php Add theme browsing and theme switching to the Customizer 2015-02-24 20:30:22 +00:00
translation-install.php Avoid a PHP notice in wp_install_language_form() and wp_dropdown_languages() if the language doesn't have a ISO 639-1 code. 2015-02-13 11:22:38 +00:00
update-core.php Remove unused media JS files. 2015-02-10 22:44:09 +00:00
update.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:18:57 +00:00
upgrade.php Upgrades: wp_usermeta is a global table in multisite, so it should only be upgraded by the single site routines when we're not in a multisite install. 2015-02-06 13:40:17 +00:00
user.php Correct all @return unknown instances. 2014-11-03 06:16:34 +00:00
widgets.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00