WordPress/wp-admin/includes
davidbaumwald be9b533e13 Administration: Add new get_views_links method to WP_List_Table.
Many `WP_List_Table` child classes in core use mostly the same code to create their "view" links markup.  To DRY-up the code, a new `WP_List_Table->get_view_links` method is being introduced to consolidate the HTML link generation when provided an array of links.

This change also implements this new method in the relevant `WP_List_Table_xxx` child classes `get_views` methods.  Finally, unit tests are being added to validate view links markup and test for some "unhappy paths".

Props afercia, costdev, garrett-eclipse, Dharm1025, juhise, peterwilsoncc.
Fixes #42066.
Built from https://develop.svn.wordpress.org/trunk@54215


git-svn-id: http://core.svn.wordpress.org/trunk@53774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-19 21:08:10 +00:00
..
admin-filters.php Editor: Refresh nones for metaboxes after reauthentication. 2022-09-11 20:46:10 +00:00
admin.php
ajax-actions.php Media: Cache parent posts in query-attachments AJAX endpoint. 2022-08-12 00:17:07 +00:00
bookmark.php
class-automatic-upgrader-skin.php
class-bulk-plugin-upgrader-skin.php Code Modernization: Explicitly declare all properties in WP_Ajax_Upgrader_Skin. 2022-08-29 12:46:10 +00:00
class-bulk-theme-upgrader-skin.php Code Modernization: Explicitly declare all properties in WP_Ajax_Upgrader_Skin. 2022-08-29 12:46:10 +00:00
class-bulk-upgrader-skin.php
class-core-upgrader.php
class-custom-background.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-custom-image-header.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-file-upload-upgrader.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php Code Modernization: Rename parameters that use reserved keywords in wp-admin/includes/class-ftp.php. 2022-03-26 15:28:08 +00:00
class-language-pack-upgrader-skin.php
class-language-pack-upgrader.php
class-pclzip.php
class-plugin-installer-skin.php
class-plugin-upgrader-skin.php
class-plugin-upgrader.php
class-theme-installer-skin.php
class-theme-upgrader-skin.php
class-theme-upgrader.php
class-walker-category-checklist.php
class-walker-nav-menu-checklist.php
class-walker-nav-menu-edit.php
class-wp-ajax-upgrader-skin.php Code Modernization: Explicitly declare all properties in WP_Ajax_Upgrader_Skin. 2022-08-29 12:46:10 +00:00
class-wp-application-passwords-list-table.php
class-wp-automatic-updater.php Upgrade/Install: Add plugin URL to the automatic update email. 2022-09-19 20:28:11 +00:00
class-wp-comments-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-community-events.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-debug-data.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-filesystem-base.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-filesystem-direct.php Coding Standards: Rename the $file parameter to $path in some WP_Filesystem_* methods. 2022-08-09 11:33:10 +00:00
class-wp-filesystem-ftpext.php Upgrade/Install: Make WP_Filesystem_FTPext::size() return false on failure. 2022-08-16 13:41:14 +00:00
class-wp-filesystem-ftpsockets.php Coding Standards: Rename the $file parameter to $path in some WP_Filesystem_* methods. 2022-08-09 11:33:10 +00:00
class-wp-filesystem-ssh2.php Coding Standards: Rename the $file parameter to $path in some WP_Filesystem_* methods. 2022-08-09 11:33:10 +00:00
class-wp-importer.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-internal-pointers.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-links-list-table.php
class-wp-list-table-compat.php
class-wp-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-media-list-table.php Media: Call update_post_parent_caches function in WP_Media_List_Table class. 2022-09-08 09:37:17 +00:00
class-wp-ms-sites-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-ms-themes-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-ms-users-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-plugin-install-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-plugins-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-post-comments-list-table.php
class-wp-posts-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-privacy-data-export-requests-list-table.php
class-wp-privacy-data-removal-requests-list-table.php
class-wp-privacy-policy-content.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-privacy-requests-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-screen.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-site-health-auto-updates.php Coding Standards: Replace double quote with single quote in test_if_failed_update(). 2022-09-19 09:16:11 +00:00
class-wp-site-health.php Site Health: Improve the details provided by the REST API checks. 2022-09-19 15:30:09 +00:00
class-wp-site-icon.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-terms-list-table.php Coding Standards: Use more meaningful variable names for output in the admin. 2022-09-05 17:19:09 +00:00
class-wp-theme-install-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
class-wp-themes-list-table.php
class-wp-upgrader-skin.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-upgrader-skins.php
class-wp-upgrader.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-users-list-table.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:08:10 +00:00
comment.php Docs: Use third-person singular verbs for function descriptions in wp-admin/includes/comment.php, as per docblocks standards. 2022-07-20 22:15:10 +00:00
continents-cities.php
credits.php
dashboard.php Site health: 2022-09-14 22:19:14 +00:00
deprecated.php
edit-tag-messages.php
export.php Docs: Various docblock improvements in Export Administration API, as per docs standards. 2022-07-29 08:14:12 +00:00
file.php Themes: Implement file description for theme.json. 2022-09-13 08:20:13 +00:00
image-edit.php Media: Output WebP by default when uploading JPEGs. 2022-09-06 21:15:08 +00:00
image.php Media: Generate WebP only for certain registered image sizes. 2022-09-07 21:45:14 +00:00
import.php Docs: Various docblock improvements in Importer Administration API, as per docs standards. 2022-07-29 09:22:10 +00:00
list-table.php
media.php Media: Move wp_default_image_output_mapping() filter callback to frontend scope. 2022-09-07 15:41:15 +00:00
menu.php
meta-boxes.php Revisions: Use wp_get_latest_revision_id_and_total_count() where appropriate. 2022-08-05 13:39:11 +00:00
misc.php Site health: 2022-09-14 22:19:14 +00:00
ms-admin-filters.php
ms-deprecated.php
ms.php
nav-menu.php
network.php Administration: Add labels to read-only form fields. 2022-07-21 09:04:14 +00:00
noop.php
options.php
plugin-install.php Coding standards: Properly escape URLs returned by self_admin_url() calls. 2022-08-05 06:12:10 +00:00
plugin.php Docs: Remove code tags from WordPress function names within inline documentation. 2022-08-11 13:55:08 +00:00
post.php Editor: Refresh nones for metaboxes after reauthentication. 2022-09-11 20:46:10 +00:00
privacy-tools.php
revision.php Revisions: Update the "last revision" wording to "latest revision" in various files. 2022-07-25 19:30:09 +00:00
schema.php Administration: Change default site tagline to an empty string. 2022-08-03 12:20:16 +00:00
screen.php
taxonomy.php
template.php Coding Standards: Use more meaningful variable names for output in the admin. 2022-09-05 17:19:09 +00:00
theme-install.php Coding standards: Properly escape URLs returned by self_admin_url() calls. 2022-08-05 06:00:09 +00:00
theme.php
translation-install.php
update-core.php Text Changes: Remove self-reference ("we") in WordPress Admin. 2022-09-19 08:59:11 +00:00
update.php Docs: Improve description for wp_plugin_update_rows() and wp_theme_update_rows(). 2022-07-09 12:59:11 +00:00
upgrade.php Database: Ignore display width for integer data types in dbDelta() on MySQL 8.0.17 or later. 2022-08-15 13:18:13 +00:00
user.php
widgets.php