Skip to content

Commit d746d31

Browse files
WordPress#718: Fix prefix
1 parent dd59b4c commit d746d31

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plugins/performance-lab/includes/site-health/object-cache/helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
* @return array<string, array{label: string, value: string}> Fields.
1717
* @since n.e.x.t
1818
*/
19-
function performance_lab_object_cache_supported_fields(): array {
19+
function perflab_object_cache_supported_fields(): array {
2020
return array(
2121
'extension' => array(
2222
'label' => __( 'Extension', 'performance-lab' ),
23-
'value' => performance_lab_get_cache_type(),
23+
'value' => perflab_get_cache_type(),
2424
),
2525
'multiple_gets' => array(
2626
'label' => __( 'Multiple gets', 'performance-lab' ),
@@ -55,7 +55,7 @@ function performance_lab_object_cache_supported_fields(): array {
5555
* @return string Object cache type.
5656
* @since n.e.x.t
5757
*/
58-
function performance_lab_get_cache_type(): string {
58+
function perflab_get_cache_type(): string {
5959
global $_wp_using_ext_object_cache, $wp_object_cache;
6060

6161
$message = '';

plugins/performance-lab/includes/site-health/object-cache/hooks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
* @return array{object_cache: array{label: string,description: string,fields: array<string, array{label: string,value: string}>}} Amended Info.
1919
* @since n.e.x.t
2020
*/
21-
function performance_lab_object_cache_supported_info( array $info ): array {
21+
function perflab_object_cache_supported_info( array $info ): array {
2222
$info['object_cache'] = array(
2323
'label' => __( 'Object Caching', 'performance-lab' ),
2424
'description' => __( 'Shows which features object cache supports and if object caching is in use.', 'performance-lab' ),
25-
'fields' => performance_lab_object_cache_supported_fields(),
25+
'fields' => perflab_object_cache_supported_fields(),
2626
);
2727

2828
return $info;
2929
}
3030

31-
add_filter( 'debug_information', 'performance_lab_object_cache_supported_info', 10, 1 );
31+
add_filter( 'debug_information', 'perflab_object_cache_supported_info', 10, 1 );

0 commit comments

Comments
 (0)