Skip to content

Commit 440216b

Browse files
westonrutermukeshpanchal27
andauthored
Merge pull request #2170 from WordPress/update/nocache-bfcache-name
Update name for “No-cache BFCache” to be “Instant Back/Forward” Co-authored-by: westonruter <[email protected]> Co-authored-by: mukeshpanchal27 <[email protected]>
2 parents 62b54c0 + ac03e60 commit 440216b

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Plugin | Slug | Experimental | Lin
1717
[Enhanced Responsive Images][6] | `auto-sizes` | No | [Source][14], [Issues][22], [PRs][30]
1818
[Image Placeholders][1] | `dominant-color-images` | No | [Source][9], [Issues][17], [PRs][25]
1919
[Image Prioritizer][7] | `image-prioritizer` | No | [Source][15], [Issues][23], [PRs][31]
20+
[Instant Back/Forward][41] | `nocache-bfcache` | No | [Source][42], [Issues][43], [PRs][44]
2021
[Modern Image Formats][2] | `webp-uploads` | No | [Source][10], [Issues][18], [PRs][26]
21-
[No-Cache BFCache][41] | `nocache-bfcache` | No | [Source][42], [Issues][43], [PRs][44]
2222
[Optimization Detective][33] | `optimization-detective` | No | [Source][34], [Issues][35], [PRs][36]
2323
[Performant Translations][3] | `performant-translations` | No | [Source][11], [Issues][19], [PRs][27]
2424
[Speculative Loading][4] | `speculation-rules` | No | [Source][12], [Issues][20], [PRs][28]

bin/plugin/commands/since.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ exports.handler = async ( opt ) => {
101101
}
102102
}
103103

104+
// Update versions in Changelog and Upgrade Notices.
105+
const readmeContentUpdated = readmeContent.replace(
106+
/(^= )(n\.e\.x\.t)( =$)/gm,
107+
function ( matches, before, next, after ) {
108+
replacementCount++;
109+
return before + version + after;
110+
}
111+
);
112+
if ( readmeContent !== readmeContentUpdated ) {
113+
fs.writeFileSync( readmeFile, readmeContentUpdated );
114+
}
115+
104116
const commonMessage = `Using version ${ version } for ${ pluginSlug }: `;
105117
if ( replacementCount > 0 ) {
106118
log(

plugins/performance-lab/includes/admin/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function perflab_get_admin_pointers(): array {
103103
'dismiss_if_installed' => true,
104104
),
105105
'perflab-feature-nocache-bfcache' => array(
106-
'content' => __( 'New <strong>No-cache BFCache</strong> feature now available.', 'performance-lab' ),
106+
'content' => __( 'New <strong>Instant Back/Forward</strong> feature now available.', 'performance-lab' ),
107107
'plugin' => 'nocache-bfcache',
108108
'dismiss_if_installed' => true,
109109
),

plugins/performance-lab/readme.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The feature plugins which are currently featured by this plugin are:
1919
* [Enhanced Responsive Images](https://wordpress.org/plugins/auto-sizes/)
2020
* [Image Placeholders](https://wordpress.org/plugins/dominant-color-images/)
2121
* [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/)
22+
* [Instant Back/Forward](https://wordpress.org/plugins/nocache-bfcache/)
2223
* [Modern Image Formats](https://wordpress.org/plugins/webp-uploads/)
23-
* [No-cache BFCache](https://wordpress.org/plugins/nocache-bfcache/)
2424
* [Optimization Detective](https://wordpress.org/plugins/optimization-detective/) (dependency for Embed Optimizer and Image Prioritizer)
2525
* [Performant Translations](https://wordpress.org/plugins/performant-translations/)
2626
* [Speculative Loading](https://wordpress.org/plugins/speculation-rules/)
@@ -78,7 +78,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C
7878

7979
**Enhancements**
8080

81-
* Add No-cache BFCache to list of performance feature plugins. ([2119](https://github.com/WordPress/performance/pull/2119))
81+
* Add Instant Back/Forward to list of performance feature plugins. ([2119](https://github.com/WordPress/performance/pull/2119))
8282
* Add admin pointers to promote new Performance Lab features. ([2122](https://github.com/WordPress/performance/pull/2122))
8383
* Implement opt-in `PERFLAB_PLACE_OBJECT_CACHE_DROPIN` for Server-Timing `object-cache.php` placement. ([1996](https://github.com/WordPress/performance/pull/1996))
8484
* Use `wp_is_rest_endpoint()` to detect if we are handling a REST API request. ([2094](https://github.com/WordPress/performance/pull/2094))
@@ -627,9 +627,9 @@ Contributions are always welcome! Learn more about how to get involved in the [C
627627

628628
== Upgrade Notice ==
629629

630-
= n.e.x.t =
630+
= 4.0.0 =
631631

632-
This release introduces two new features: View Transitions which adds smooth transitions between navigations on your site, and No-cache BFCache which enables back/forward cache (bfcache) for instant history navigations.
632+
This release introduces two new features: View Transitions which adds smooth transitions between navigations on your site, and Instant Back/Forward which enables back/forward cache (bfcache) for instant history navigations.
633633

634634
= 3.2.0 =
635635

plugins/performance-lab/tests/includes/admin/test-load.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,21 @@ public function data_provider_test_perflab_admin_pointer(): array {
152152
'dismissed_wp_pointers' => 'perflab-feature-view-transitions',
153153
),
154154
'dashboard_new_dismissed' => array(
155-
// Note: If the No-cache BFCache plugin (not part of the monorepo) is installed, then this test will likely fail and it should be skipped.
155+
// Note: If the Instant Back/Forward plugin (not part of the monorepo) is installed, then this test will likely fail and it should be skipped.
156156
'initial_wp_pointers' => 'perflab-admin-pointer',
157157
'hook_suffix' => 'index.php',
158158
'expected' => true,
159159
'dismissed_wp_pointers' => 'perflab-admin-pointer,perflab-feature-view-transitions',
160160
),
161161
'dashboard_last_auto_dismissed' => array(
162-
// Note: The No-cache BFCache plugin is not part of the monorepo, so it is not automatically installed in the dev environment.
162+
// Note: The Instant Back/Forward plugin is not part of the monorepo, so it is not automatically installed in the dev environment.
163163
'initial_wp_pointers' => 'perflab-admin-pointer,perflab-feature-nocache-bfcache,perflab-feature-speculation-rules-auth',
164164
'hook_suffix' => 'index.php',
165165
'expected' => false,
166166
'dismissed_wp_pointers' => 'perflab-admin-pointer,perflab-feature-nocache-bfcache,perflab-feature-speculation-rules-auth,perflab-feature-view-transitions',
167167
),
168168
'dashboard_one_not_auto_dismissed' => array(
169-
// Note: The No-cache BFCache plugin is not part of the monorepo, so it is not automatically installed in the dev environment.
169+
// Note: The Instant Back/Forward plugin is not part of the monorepo, so it is not automatically installed in the dev environment.
170170
// Note: The Speculative Loading admin pointer 'perflab-feature-speculation-rules-auth' does not get auto-dismissed because it is for a new feature of an existing feature plugin.
171171
'initial_wp_pointers' => 'perflab-admin-pointer,perflab-feature-nocache-bfcache',
172172
'hook_suffix' => 'index.php',

0 commit comments

Comments
 (0)