WordPress/wp-includes
Sergey Biryukov 7b8972ba63 Tests: Minimize file copying in WP_REST_Attachments_Controller tests.
The tests use two images that were deleted on teardown and recreated on setup for every single test. This appears to be unnecessary, as the files can instead only be recreated if they are missing, and deleted after the test run is complete.

This commit reduces ~200 redundant file copying operations to ~5 when running this test class.

Follow-up to [38832], [48291], [54424].

See #55652.
Built from https://develop.svn.wordpress.org/trunk@54428


git-svn-id: http://core.svn.wordpress.org/trunk@53987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-09 17:47:27 +00:00
..
assets
block-patterns
block-supports
blocks
certificates
css
customize
fonts
ID3 External Libraries: Update getID3 to version 1.9.22. 2022-10-04 02:08:11 +00:00
images
IXR
js
php-compat
PHPMailer
pomo
random_compat
Requests
rest-api Editor: Remove leading whitespace from some translated strings. 2022-09-29 17:54:09 +00:00
SimplePie
sitemaps
sodium_compat Upgrade/Install: Update sodium_compat to v1.19.0. 2022-09-26 14:00:10 +00:00
style-engine
Text
theme-compat
widgets
admin-bar.php Taxonomy: Introduce the is_term_publicly_viewable() function. 2022-08-13 22:44:09 +00:00
atomlib.php
author-template.php
block-editor.php
block-i18n.json
block-patterns.php
block-template-utils.php
block-template.php
blocks.php Blocks: Avoid extra calls to realpath() in block scripts and styles registration. 2022-10-07 15:46:12 +00:00
bookmark-template.php
bookmark.php
cache-compat.php
cache.php Cache API: Make the placement of wp_cache_flush_group() more consistent. 2022-07-23 14:58:12 +00:00
canonical.php Canonical: Include all public status in 404 redirects. 2022-04-01 03:25:01 +00:00
capabilities.php
category-template.php
category.php
class-feed.php
class-http.php
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php Mail: Make sure the PHPMailer class is only required once if a plugin requires wp-includes/class-phpmailer.php directly. 2020-07-21 12:58:02 +00:00
class-pop3.php
class-requests.php
class-simplepie.php
class-smtp.php Mail: Make sure the SMTP class is only required once if a plugin requires wp-includes/class-smtp.php directly. 2021-01-26 13:45:57 +00:00
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-application-passwords.php
class-wp-block-editor-context.php
class-wp-block-list.php
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php
class-wp-block-patterns-registry.php
class-wp-block-styles-registry.php
class-wp-block-supports.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-block-template.php
class-wp-block-type-registry.php
class-wp-block-type.php Coding Standards: Various alignment fixes from composer format. 2022-09-19 19:51:09 +00:00
class-wp-block.php
class-wp-comment-query.php
class-wp-comment.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-control.php
class-wp-customize-manager.php
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php
class-wp-dependencies.php
class-wp-dependency.php I18N: Use correct default value for JavaScript translations path. 2022-09-28 22:19:10 +00:00
class-wp-editor.php
class-wp-embed.php
class-wp-error.php
class-wp-fatal-error-handler.php
class-wp-feed-cache-transient.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-curl.php
class-wp-http-encoding.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-http.php
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php
class-wp-image-editor.php
class-wp-list-util.php
class-wp-locale-switcher.php
class-wp-locale.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php
class-wp-metadata-lazyloader.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-network-query.php
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php
class-wp-oembed.php Embeds: Add support for Tumblr Dashboard URLs. 2022-10-05 00:15:11 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php
class-wp-recovery-mode-cookie-service.php Security: Additional translations of salt default phrase. 2022-10-04 03:59:13 +00:00
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-rewrite.php Docs: Various docblock fixes in WP_Rewrite class, as per documentation standards. 2022-10-04 23:01:13 +00:00
class-wp-role.php
class-wp-roles.php
class-wp-scripts.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-site-query.php
class-wp-site.php
class-wp-styles.php
class-wp-tax-query.php
class-wp-taxonomy.php
class-wp-term-query.php
class-wp-term.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-text-diff-renderer-inline.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-text-diff-renderer-table.php
class-wp-textdomain-registry.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-theme-json-data.php
class-wp-theme-json-resolver.php
class-wp-theme-json-schema.php
class-wp-theme-json.php
class-wp-theme.php
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php
class-wp-user.php Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php
class-wp.php
class-wpdb.php
class.wp-dependencies.php
class.wp-scripts.php Coding Standards: Rename WordPress Dependencies API class files. 2022-09-20 14:17:12 +00:00
class.wp-styles.php
comment-template.php
comment.php Code Modernization: Correct default values in wp_handle_comment_submission(). 2022-10-03 15:22:10 +00:00
compat.php
cron.php
date.php
default-constants.php Themes: Import Twenty Twenty-Three is now the default theme. 2022-09-20 01:36:09 +00:00
default-filters.php
default-widgets.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
deprecated.php
embed-template.php
embed.php Embeds: Fix missing labels and duplicate IDs. 2022-08-19 22:06:09 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php Feeds: Remove reference to wp-atom.php in Atom feeds xml:base attribute. 2021-11-29 09:52:00 +00:00
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
formatting.php
functions.php
functions.wp-scripts.php
functions.wp-styles.php
general-template.php Docs: Fix prev_text and next_text parameters type in paginate_links(). 2022-09-22 09:26:15 +00:00
global-styles-and-settings.php Docs: Various docblock fixes in global-styles-and-settings.php, as per documentation standards. 2022-10-07 12:09:11 +00:00
http.php
https-detection.php
https-migration.php
kses.php
l10n.php
link-template.php General: Add a new filter for the_posts_pagination_args. 2022-09-13 18:05:09 +00:00
load.php Bootstrap/Load: Revert the is_*_admin_screen() aliases for is_*_admin() function family. 2022-09-27 16:31:10 +00:00
locale.php Docs: Add missing @deprecated tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
media-template.php
media.php
meta.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
ms-blogs.php
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
ms-load.php
ms-network.php
ms-settings.php
ms-site.php
nav-menu-template.php
nav-menu.php
option.php
pluggable-deprecated.php
pluggable.php Users: Revert use of shared objects for current user. 2022-10-06 04:38:14 +00:00
plugin.php
post-formats.php Docs: Upgrade more parameters in docblocks to used typed array notation. 2020-11-24 21:27:05 +00:00
post-template.php Docs: Updates and corrections to various inline docs added in 6.1. 2022-09-21 20:24:12 +00:00
post-thumbnail-template.php Docs: Misc. fixes in wp-includes/post-template.php and wp-includes/post-thumbnail-template.php. 2022-03-15 15:22:05 +00:00
post.php
query.php
registration-functions.php
registration.php
rest-api.php
revision.php Docs: Various docblock fixes in wp-includes/revision.php, as per documentation standards. 2022-09-28 14:47:12 +00:00
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php
session.php
shortcodes.php Shortcodes: Revert recent apply_shortcodes and do_shortcode changes. 2022-09-26 22:43:10 +00:00
sitemaps.php
spl-autoload-compat.php
style-engine.php Editor: Backport Style Engine API functions, classes and tests. 2022-09-14 12:48:16 +00:00
taxonomy.php Taxonomy: Standardise the format used to describe arguments passed to actions and filters inside wp_insert_term() and wp_update_term(). 2022-09-20 18:53:09 +00:00
template-canvas.php Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:30:05 +00:00
template-loader.php
template.php
theme-i18n.json
theme-templates.php
theme.json
theme.php Customize: Prevent PHP notice in Customizer when using block theme. 2022-10-07 20:48:12 +00:00
update.php
user.php
vars.php
version.php Tests: Minimize file copying in WP_REST_Attachments_Controller tests. 2022-10-09 17:47:27 +00:00
widgets.php General: Replace all esc_url_raw() calls in core with sanitize_url(). 2022-06-01 18:14:10 +00:00
wlwmanifest.xml
wp-db.php Coding Standards: Use __DIR__ instead of ABSPATH in wp-db.php. 2022-07-21 22:45:11 +00:00
wp-diff.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00