diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 93669070b7..962693312d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -6,4 +6,4 @@ about: Suggest an idea for this project ## Feature Description - + diff --git a/.github/workflows/props-bot.yml b/.github/workflows/props-bot.yml index 999b37d3d9..f050a4d98b 100644 --- a/.github/workflows/props-bot.yml +++ b/.github/workflows/props-bot.yml @@ -20,7 +20,7 @@ on: issue_comment: types: - created - # This event will run everytime a new PR review is initially submitted. + # This event will run every time a new PR review is initially submitted. pull_request_review: types: - submitted diff --git a/AGENTS.md b/AGENTS.md index 0a973ee2fc..eb8a7dcc91 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -84,7 +84,7 @@ In general, indentation should use tabs. Refer to `.editorconfig` in the project It is expected for new code introduced to have `@since` tags with the `n.e.x.t` placeholder version. It will get replaced with the actual version at the time of release. Do not add any code review comments to such code. -Every file, function, class, method constant, and global variable must have an associated docblock with a `@since` tag. +Every file, function, class, method, constant, and global variable must have an associated docblock with a `@since` tag. ### PHP diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a98f1c4e4b..e980476a0a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ In general, all code must follow the [WordPress Coding Standards and best practi ## Guidelines - As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://make.wordpress.org/handbook/community-code-of-conduct/). -- All WordPress projects are [licensed under the GPLv2+](/LICENSE), and all contributions to the [Performance Lab](https://wordpress.org/plugins/performance-lab/) plugin will be released under the GPLv2+ license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv2+ license. +- All WordPress projects are [licensed under the GPLv2+](./LICENSE), and all contributions to the [Performance Lab](https://wordpress.org/plugins/performance-lab/) plugin will be released under the GPLv2+ license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv2+ license. ## Use of AI Tools @@ -24,4 +24,4 @@ For more, please see the [WordPress AI Guidelines](https://make.wordpress.org/ai ## Reporting Security Issues -Please see [SECURITY.md](/SECURITY.md). +Please see [SECURITY.md](./SECURITY.md). diff --git a/plugins/auto-sizes/readme.txt b/plugins/auto-sizes/readme.txt index 6000a114af..216221ad6a 100644 --- a/plugins/auto-sizes/readme.txt +++ b/plugins/auto-sizes/readme.txt @@ -90,7 +90,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C **Enhancements** * Accurate sizes: Add ancestor block context for image and cover block that help in sizes calculate. ([1795](https://github.com/WordPress/performance/pull/1795)) -* Accurate sizes: Calculate sizes base on ancestor block context. ([1818](https://github.com/WordPress/performance/pull/1818)) +* Accurate sizes: Calculate sizes based on ancestor block context. ([1818](https://github.com/WordPress/performance/pull/1818)) = 1.4.0 = diff --git a/plugins/optimization-detective/detect.js b/plugins/optimization-detective/detect.js index e87ec50463..7a4a13c5f1 100644 --- a/plugins/optimization-detective/detect.js +++ b/plugins/optimization-detective/detect.js @@ -247,7 +247,7 @@ async function getAlreadySubmittedSessionStorageKey( ) { if ( ! win.crypto || ! win.crypto.subtle ) { warn( - 'Unable to generate sessionStorage key for already-submitted URL since crypto is not available, likely due to to the page not being served via HTTPS.' + 'Unable to generate sessionStorage key for already-submitted URL since crypto is not available, likely due to the page not being served via HTTPS.' ); return null; } diff --git a/plugins/optimization-detective/docs/extensions.md b/plugins/optimization-detective/docs/extensions.md index b8ec0ee54a..f8c2c35fd9 100644 --- a/plugins/optimization-detective/docs/extensions.md +++ b/plugins/optimization-detective/docs/extensions.md @@ -40,7 +40,7 @@ Stable plugins for use in production from the WordPress.org Plugin Directory: * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/): Prioritizes the loading of images and videos based on how visible they are to actual visitors; adds fetchpriority and applies lazy loading. * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/): Optimizes the performance of embeds through lazy-loading, adding dns-prefetch links, and reserving space to reduce layout shifts. -Experimental plugins being explored exploration, from repositories on GitHub: +Experimental plugins being explored, from repositories on GitHub: * [Optimization Detective Content Visibility](https://github.com/westonruter/od-content-visibility): Applies content-visibility to posts in The Loop to improve rendering performance. * [Optimization Detective Intrinsic Dimensions](https://github.com/westonruter/od-intrinsic-dimensions): Supplies width and height attributes to IMG and VIDEO tags that lack them according to their intrinsic dimensions. This reduces Cumulative Layout Shift (CLS). @@ -52,4 +52,4 @@ For development and debugging, also on GitHub: * [Optimization Detective Store Query Vars](https://github.com/westonruter/od-store-query-vars): Stores the Query Vars with a URL Metric in the Optimization Detective plugin. This is useful for debugging URL Metrics, in particular what the slug was computed from. * [Optimization Detective Store User Agent](https://github.com/westonruter/od-store-user-agent): Stores the User Agent with a URL Metric in the Optimization Detective plugin. This is useful for debugging URL Metrics, in particular to understand what device has a given viewport's dimensions. * [Optimization Detective Dev Mode](https://github.com/westonruter/od-dev-mode): Adds filters to facilitate development of the Optimization Detective plugin. -* [Optimization Detective Default Disabled](https://github.com/westonruter/od-default-disabled): Disables functionality in Optimization Detective by default unless the `?optimization_detective_enabled=1` query parameter is present. This allows you for troubleshooting issues on a live site without visitors seeing a broken experience. +* [Optimization Detective Default Disabled](https://github.com/westonruter/od-default-disabled): Disables functionality in Optimization Detective by default unless the `?optimization_detective_enabled=1` query parameter is present. This allows you to troubleshoot issues on a live site without visitors seeing a broken experience. diff --git a/plugins/optimization-detective/docs/hooks.md b/plugins/optimization-detective/docs/hooks.md index 1dc75f1e8d..829e2f079f 100644 --- a/plugins/optimization-detective/docs/hooks.md +++ b/plugins/optimization-detective/docs/hooks.md @@ -243,7 +243,7 @@ Filters how long the current IP is locked from submitting another URL metric sto Filtering the TTL to zero will disable any URL Metric storage locking. This is useful, for example, to disable locking when a user is logged in with code like the following: ```php -add_filter( 'od_metrics_storage_lock_ttl', function ( int $ttl ): int { +add_filter( 'od_url_metric_storage_lock_ttl', function ( int $ttl ): int { return is_user_logged_in() ? 0 : $ttl; } ); ``` @@ -253,7 +253,7 @@ By default, the TTL is zero (0) for authorized users and sixty (60) for everyone During development this is useful to set to zero, so you can quickly collect new URL Metrics by reloading the page without having to wait for the storage lock to release: ```php -add_filter( 'od_metrics_storage_lock_ttl', function ( int $ttl ): int { +add_filter( 'od_url_metric_storage_lock_ttl', function ( int $ttl ): int { return 0; } ); ``` diff --git a/plugins/optimization-detective/docs/introduction.md b/plugins/optimization-detective/docs/introduction.md index 6f43722396..9e5c3febbf 100644 --- a/plugins/optimization-detective/docs/introduction.md +++ b/plugins/optimization-detective/docs/introduction.md @@ -463,7 +463,7 @@ As shown in the Background section above, WordPress core can incorrectly add `fe Here Image Prioritizer does the following: * Remove `fetchpriority=high` from the `IMG` tag since it is not the common LCP element across all viewport sizes (or even in one viewport). -* Add preload links with `fetchpriority=high` with media queries to target viewport-specific LCP images: +* Add preload links with `fetchpriority=high` using media queries to target viewport-specific LCP images: ```html