File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
plugins/performance-lab/includes/admin Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,17 @@ function perflab_get_dismissed_admin_pointer_ids(): array {
9292 */
9393function perflab_get_admin_pointers (): array {
9494 $ pointers = array (
95- 'perflab-admin-pointer ' => __ ( 'You can now test upcoming WordPress performance features. ' , 'performance-lab ' ),
96- 'perflab-feature-view-transitions ' => __ ( 'New <strong>View Transitions</strong> feature now available. ' , 'performance-lab ' ),
97- 'perflab-feature-nocache-bfcache ' => __ ( 'New <strong>No-cache BFCache</strong> feature now available. ' , 'performance-lab ' ),
95+ 'perflab-admin-pointer ' => __ ( 'You can now test upcoming WordPress performance features. ' , 'performance-lab ' ),
9896 );
9997
98+ // Only show if the feature plugin is not already active.
99+ if ( ! defined ( 'VIEW_TRANSITIONS_VERSION ' ) ) {
100+ $ pointers ['perflab-feature-view-transitions ' ] = __ ( 'New <strong>View Transitions</strong> feature now available. ' , 'performance-lab ' );
101+ }
102+ if ( ! defined ( 'WestonRuter\NocacheBFCache\VERSION ' ) ) {
103+ $ pointers ['perflab-feature-nocache-bfcache ' ] = __ ( 'New <strong>No-cache BFCache</strong> feature now available. ' , 'performance-lab ' );
104+ }
105+
100106 if (
101107 defined ( 'SPECULATION_RULES_VERSION ' )
102108 &&
You can’t perform that action at this time.
0 commit comments