WordPress/wp-includes
Sergey Biryukov ab15c41a07 Code Modernization: Remove dynamic properties in Tests_Media_GetPostGalleries.
Dynamic (non-explicitly declared) properties are deprecated as of PHP 8.2 and are expected to become a fatal error in PHP 9.0.

In this particular case, the test class contains a `set_up()` method that sets the `$img_meta` property, which is ''used'' by the tests, but never ''changed'' by the tests.

In other words, setting this property in the `set_up()` is an unnecessary overhead and the property should be changed to a class constant.

Includes renaming the test class to match the [https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization naming conventions].

Follow-up to [52190], [53557], [53558], [53850], [53851].

Props jrf.
See #56033.
Built from https://develop.svn.wordpress.org/trunk@53852


git-svn-id: http://core.svn.wordpress.org/trunk@53411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-07 14:34:10 +00:00
..
assets Editor: Update block editor packages for WordPress 6.0.1. 2022-07-05 14:38:33 +00:00
block-patterns
block-supports
blocks Tools: Automate backporting core blocks from Gutenberg to Core 2022-07-08 12:34:14 +00:00
certificates
css Editor: Update block editor packages for WordPress 6.0.1. 2022-07-04 12:06:43 +00:00
customize
fonts
ID3
images
IXR
js Media: enable generating multiple mime types for image uploads; specifically WebP versions for JPEG images by default. 2022-07-21 18:03:13 +00:00
php-compat
PHPMailer
pomo
random_compat External Libraries: Update random_compat to version 2.0.21. 2022-02-16 21:19:04 +00:00
Requests
rest-api Revisions: Use latest_id as the array key for the latest revision ID. 2022-08-05 13:02:13 +00:00
SimplePie
sitemaps Sitemaps: Prevent invalid provider names throwing errors. 2022-08-05 05:49:11 +00:00
sodium_compat
Text
theme-compat
widgets
admin-bar.php Administration: Add labels to read-only form fields. 2022-07-21 09:04:14 +00:00
atomlib.php
author-template.php
block-editor.php
block-i18n.json
block-patterns.php Themes: Allow remote pattern registration in theme.json when core patterns are disabled. 2022-07-29 08:31:10 +00:00
block-template-utils.php Docs: Provide a more accurate description for wp_is_theme_directory_ignored(). 2022-07-22 07:18:13 +00:00
block-template.php Docs: Use third-person singular verbs for function descriptions in block-template.php and block-template-utils.php. 2022-07-20 13:21:08 +00:00
blocks.php Docs: Fix $feature parameter type in block_has_support(). 2022-07-30 14:09:10 +00:00
bookmark-template.php
bookmark.php
cache-compat.php Cache API: Make the placement of wp_cache_flush_group() more consistent. 2022-07-23 14:58:12 +00:00
cache.php Cache API: Make the placement of wp_cache_flush_group() more consistent. 2022-07-23 14:58:12 +00:00
canonical.php
capabilities.php
category-template.php Posts, Post Types: Standardize on $post parameter name where appropriate. 2022-07-18 17:37:17 +00:00
category.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
class-feed.php
class-http.php
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
class-simplepie.php
class-smtp.php
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 Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-wp-admin-bar.php
class-wp-ajax-response.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-application-passwords.php Docs: Convert "Application Passwords" to lowercase in WP_Application_Passwords docblocks, for better consistency. 2022-07-06 11:55:11 +00:00
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
class-wp-block-template.php
class-wp-block-type-registry.php
class-wp-block-type.php
class-wp-block.php Docs: Improve parameter descriptions in render_block and render_block_* filters. 2022-07-26 13:00:16 +00:00
class-wp-comment-query.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
class-wp-comment.php
class-wp-customize-control.php
class-wp-customize-manager.php Revisions: Update the "last revision" wording to "latest revision" in various files. 2022-07-25 19:30:09 +00:00
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php Docs: Various docblock fixes in WP_Date_Query class, as per docs standards. 2022-07-30 14:01:13 +00:00
class-wp-dependency.php
class-wp-editor.php
class-wp-embed.php
class-wp-error.php
class-wp-fatal-error-handler.php
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php Docs: Various docblock corrections. 2021-12-01 12:17:00 +00:00
class-wp-http-requests-hooks.php
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php
class-wp-http.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php
class-wp-image-editor.php Media: enable generating multiple mime types for image uploads; specifically WebP versions for JPEG images by default. 2022-07-21 18:03:13 +00:00
class-wp-list-util.php
class-wp-locale-switcher.php
class-wp-locale.php
class-wp-matchesmapregex.php
class-wp-meta-query.php Query: Improve sanitization within WP_Meta_Query. 2022-01-06 17:05:02 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php
class-wp-network.php
class-wp-object-cache.php Cache API: Validate cache key in WP_Object_Cache methods. 2022-08-03 14:36:12 +00:00
class-wp-oembed-controller.php
class-wp-oembed.php Embeds: Add Pocket Casts as a trusted oEmbed provider. 2022-07-21 04:25:13 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php
class-wp-site.php
class-wp-tax-query.php
class-wp-taxonomy.php
class-wp-term-query.php
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Docs: Typo corrections in various API docblocks. 2022-02-04 16:28:00 +00:00
class-wp-theme-json-resolver.php
class-wp-theme-json-schema.php
class-wp-theme-json.php
class-wp-theme.php Text Changes: Improve consistency of punctuation in some strings. 2022-07-14 14:10:11 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Users: Prime user meta in WP_User_Query class. 2022-07-05 09:28:13 +00:00
class-wp-user-request.php
class-wp-user.php
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php Coding Standards: Standardize on user_id when passing data to comment functions. 2022-07-20 14:14:09 +00:00
class-wp.php
class-wpdb.php Coding Standards: Move wp-includes/wp-db.php to wp-includes/class-wpdb.php. 2022-07-21 16:00:15 +00:00
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php Comments: Improve accessibility of the "Logged in as" link in comment form. 2022-07-29 17:06:15 +00:00
comment.php Coding Standards: Remove extra comma in a compact() call. 2022-07-20 14:22:08 +00:00
compat.php
cron.php Cron API: Modify _get_cron_array() to always return an array. 2022-07-29 03:34:13 +00:00
date.php
default-constants.php
default-filters.php Script loader: enable resource preloading with rel='preload'. 2022-08-05 18:26:08 +00:00
default-widgets.php
deprecated.php Posts, Post Types: Standardize on $post parameter name where appropriate. 2022-07-18 17:37:17 +00:00
embed-template.php
embed.php Posts, Post Types: Standardize on $post parameter name where appropriate. 2022-07-18 17:37:17 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
formatting.php Docs: Remove an obsolete function description in addslashes_gpc(). 2022-07-25 17:28:09 +00:00
functions.php Docs: Improve the description of param $list in wp_list_sort() docblock. 2022-08-02 14:50:12 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php Script loader: enable resource preloading with rel='preload'. 2022-08-05 18:26:08 +00:00
global-styles-and-settings.php
http.php Docs: List the expected type first in a few functions: 2022-07-23 16:57:09 +00:00
https-detection.php
https-migration.php
kses.php
l10n.php Coding Standards: Rename the $user_id parameter of get_user_locale() to $user for accuracy. 2022-07-15 13:45:11 +00:00
link-template.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
load.php Coding Standards: Reorder global cache groups alphabetically for some consistency. 2022-08-04 16:29:10 +00:00
locale.php
media-template.php Media: Prevent URLs from overflowing their container in the media editor. 2022-07-25 18:11:08 +00:00
media.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
meta.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
ms-blogs.php Coding Standards: Reorder global cache groups alphabetically for some consistency. 2022-08-04 16:29:10 +00:00
ms-default-constants.php I18N: Remove code from a translatable string in wp-includes/ms-default-constants.php. 2022-07-14 13:35:13 +00:00
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php
ms-load.php
ms-network.php
ms-settings.php
ms-site.php
nav-menu-template.php
nav-menu.php
option.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
pluggable-deprecated.php
pluggable.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
plugin.php Docs: Improve description for doing_filter() and doing_action(). 2022-08-01 11:15:14 +00:00
post-formats.php
post-template.php Posts, Post Types: Standardize on $post parameter name where appropriate. 2022-07-18 17:37:17 +00:00
post-thumbnail-template.php
post.php Docs: Provide a more accurate @return type for get_pages() function. 2022-08-05 05:46:10 +00:00
query.php
registration-functions.php
registration.php
rest-api.php
revision.php Revisions: Use wp_get_latest_revision_id_and_total_count() where appropriate. 2022-08-05 13:39:11 +00:00
rewrite.php
robots-template.php Docs: Adjust DocBlock formatting for wp_robots_*() and related functions. 2022-04-06 15:33:03 +00:00
rss-functions.php
rss.php
script-loader.php External Libraries: Update the Moment library to version 2.29.4. 2022-07-19 19:43:25 +00:00
session.php
shortcodes.php
sitemaps.php
spl-autoload-compat.php
taxonomy.php Docs: Various corrections and improvements to inline documentation. 2022-08-04 14:52:11 +00:00
template-canvas.php
template-loader.php
template.php
theme-i18n.json
theme-templates.php
theme.json
theme.php Revisions: Use wp_get_latest_revision_id_and_total_count() where appropriate. 2022-08-05 13:39:11 +00:00
update.php Upgrade/Install: track php extensions and image library support for WebP and AVIF. 2022-07-21 20:22:09 +00:00
user.php Cache API: Validate cache key in WP_Object_Cache methods. 2022-08-03 14:36:12 +00:00
vars.php
version.php Code Modernization: Remove dynamic properties in Tests_Media_GetPostGalleries. 2022-08-07 14:34:10 +00:00
widgets.php
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