Skip to content

Docs: Fix big_image_size_threshold xref typo#76299

Open
apermo wants to merge 1 commit intoWordPress:trunkfrom
apermo:fix/media-load-xref-typo
Open

Docs: Fix big_image_size_threshold xref typo#76299
apermo wants to merge 1 commit intoWordPress:trunkfrom
apermo:fix/media-load-xref-typo

Conversation

@apermo
Copy link
Copy Markdown
Contributor

@apermo apermo commented Mar 8, 2026

What?

Closes #76298

Fixes a typo in the cross-reference comment for the big_image_size_threshold filter in lib/media/load.php.

Why?

The comment references wp-admin/includes/images.php, but the actual file is wp-admin/includes/image.php (singular). This makes it harder for developers to locate the hook's primary documentation.

The primary documentation for the filter lives here:
https://github.com/WordPress/wordpress-develop/blob/64086b2a15ef4ccf6443de2056646da1ee17d56d/src/wp-admin/includes/image.php#L264-L285

How?

Changed images.php to image.php in the cross-reference comment.

Testing Instructions

No functional change — documentation comment only.

Testing Instructions for Keyboard

N/A — no UI changes.


This PR was authored by Claude Code (AI), steered and reviewed by @apermo.

The cross-reference comment points to `images.php` but
the file is named `image.php` (singular).
@apermo apermo requested a review from spacedmonkey as a code owner March 8, 2026 14:50
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 8, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: apermo <apermo@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 8, 2026

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @apermo! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

Copy link
Copy Markdown
Contributor

@im3dabasia im3dabasia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@im3dabasia im3dabasia added [Type] Bug An existing feature does not function as intended [Type] Code Quality Issues or PRs that relate to code quality [Type] Enhancement A suggestion for improvement. labels Mar 11, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 11, 2026

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Type] Enhancement, [Type] Code Quality, First-time Contributor.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@im3dabasia im3dabasia removed the [Type] Bug An existing feature does not function as intended label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Code Quality Issues or PRs that relate to code quality [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: big_image_size_threshold xref typo in lib/media/load.php

2 participants