Wordpress/src/wp-admin
Sergey Biryukov bd03636941 Posts, Post Types: Return early from WP_Posts_List_Table::formats_dropdown() if the post type does not support post formats.
This avoids an unnecessary database query for the `post_format` taxonomy.

Props Chouby.
Fixes #50496.

git-svn-id: https://develop.svn.wordpress.org/trunk@48203 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-28 14:28:23 +00:00
..
css Accessibility: Administration: Give the link to meetup organizer handbook in the WordPress Events and News dashboard widget a more meaningful label. 2020-06-23 21:51:25 +00:00
images Customize: Move the WordPress logo with a white background to the wp-includes directory. 2020-05-21 09:08:52 +00:00
includes Posts, Post Types: Return early from WP_Posts_List_Table::formats_dropdown() if the post type does not support post formats. 2020-06-28 14:28:23 +00:00
maint Administration: Remove the xmlns attribute on the <html> tag. 2020-06-22 21:24:44 +00:00
network Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:16:45 +00:00
user Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
_index.php Coding Standards: Use strict comparison in wp-admin/_index.php. 2020-05-28 10:00:44 +00:00
about.php Help/About: Revert [47699] from trunk. 2020-04-29 18:41:12 +00:00
admin-ajax.php Security: Add user interface to auto-update themes and plugins. 2020-05-20 18:47:24 +00:00
admin-footer.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
admin-functions.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
admin-header.php Coding Standards: Use strict comparison for JS fragment in wp-admin/admin-header.php. 2020-06-18 20:06:42 +00:00
admin-post.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
admin.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
async-upload.php Media: Ensure that uploaded images get a success notification by users with upload_files capability. 2020-06-22 23:51:09 +00:00
comment.php Comments: Allow wp_update_comment() to return WP_Error(). 2020-06-24 00:03:33 +00:00
credits.php Help/About: Improve accessibility of the 5.4 About page: 2020-03-27 23:39:37 +00:00
custom-background.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
custom-header.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
customize.php Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:16:45 +00:00
edit-comments.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
edit-form-advanced.php I18N: Remove <kbd> tag from a translatable string on Edit Post screen. 2020-06-27 23:00:49 +00:00
edit-form-blocks.php Block Editor: Add the Block Patterns API. 2020-06-24 12:57:12 +00:00
edit-form-comment.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
edit-link-form.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
edit-tag-form.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
edit-tags.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:00:44 +00:00
edit.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
erase-personal-data.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
export-personal-data.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
export.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
freedoms.php Accessibility: Fix the headings hierarchy on the Freedoms page. 2020-04-09 16:07:19 +00:00
import.php I18N: Restore the "Error:" prefix for error messages. 2020-06-21 13:58:46 +00:00
index.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
install-helper.php Docs: Improve documentation for functions in wp-admin/install-helper.php per the documentation standards. 2020-05-12 18:38:02 +00:00
install.php Site Health: Improve the error message displayed when activating a plugin that requires a higher version of PHP or WordPress. 2020-06-26 00:25:15 +00:00
link-add.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
link-manager.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
link-parse-opml.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
link.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
load-scripts.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
load-styles.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
media-new.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
media-upload.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
media.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
menu-header.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
menu.php Users: Change "Your Profile" and "My Profile" links in admin menu and toolbar to just "Profile" for consistency. 2020-04-20 08:37:31 +00:00
moderation.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-admin.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-delete-site.php Networks and Sites: Use a consistent wording when referring to site deletion on Delete Site screen. 2020-06-28 14:10:02 +00:00
ms-edit.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-options.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-sites.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-themes.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-upgrade-network.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
ms-users.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
my-sites.php Coding Standards: Use strict comparison in some wp-admin files. 2020-05-12 18:30:03 +00:00
nav-menus.php Coding Standards: Fix WPCS issues in wp-admin/nav-menus.php. 2020-06-16 18:36:42 +00:00
network.php Coding Standards: Use strict comparison for count() calls. 2020-05-23 11:36:36 +00:00
options-discussion.php General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language. 2020-06-22 17:24:34 +00:00
options-general.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:00:44 +00:00
options-head.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:38:42 +00:00
options-media.php Docs: Correct and clarify an inline comment about the upload_url_path and upload_path options in wp-admin/options-media.php. 2020-06-01 11:20:16 +00:00
options-permalink.php Docs: Correct @since version for available_permalink_structure_tags filter. 2020-06-03 10:36:32 +00:00
options-privacy.php Administration: Capitalize Trash consistently in various messages and comments. 2020-02-10 04:10:09 +00:00
options-reading.php Administration and Site Health: Make information on Search engine visibility more prominent. 2020-05-27 14:32:00 +00:00
options-writing.php Administration: Add missing comma to the message in "Post via email" section. 2020-06-26 19:36:26 +00:00
options.php Coding Standards: Reformat some long apply_filters_deprecated() and do_action_deprecated() calls for better readability. 2020-06-25 12:04:05 +00:00
plugin-editor.php Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:16:45 +00:00
plugin-install.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
plugins.php Help/About: Move "Learn more: Auto-updates documentation" link about "Support", for consistency with other screens. 2020-06-19 21:12:34 +00:00
post-new.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:40:52 +00:00
post.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:35:34 +00:00
press-this.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
privacy-policy-guide.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
privacy.php Help/About: Improve accessibility of the 5.4 About page: 2020-03-27 23:39:37 +00:00
profile.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
revision.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
setup-config.php Administration: Remove the xmlns attribute on the <html> tag. 2020-06-22 21:24:44 +00:00
site-health-info.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
site-health.php Site Health: Remove paragraph tag from the actions container in issue template. 2020-03-30 01:23:47 +00:00
term.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:00:44 +00:00
theme-editor.php Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:16:45 +00:00
theme-install.php Coding Standards: Replace echo sprintf() with printf(). 2020-06-20 13:16:45 +00:00
themes.php I18N: Restore the "Error:" prefix for error messages. 2020-06-21 13:58:46 +00:00
tools.php Privacy: Fix the URLs and legacy redirects for the personal data export and erasure screens. 2020-03-03 00:48:21 +00:00
update-core.php Site Health: Improve the error message displayed when activating a plugin that requires a higher version of PHP or WordPress. 2020-06-26 00:25:15 +00:00
update.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:40:52 +00:00
upgrade-functions.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
upgrade.php Site Health: Improve the error message displayed when activating a plugin that requires a higher version of PHP or WordPress. 2020-06-26 00:25:15 +00:00
upload.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:40:52 +00:00
user-edit.php Coding Standards: Use strict comparison where static strings are involved. 2020-05-16 18:40:52 +00:00
user-new.php Users: On the 'Add New User' screen, don't show the roles dropdown if the current user can't promote other users. 2020-06-14 17:01:51 +00:00
users.php I18N: Restore the "Error:" prefix for error messages. 2020-06-21 13:58:46 +00:00
widgets.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00