Skip to content

Commit

Permalink
WordPress#718: Fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurdybanowski committed Jul 25, 2024
1 parent dd59b4c commit d746d31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* @return array<string, array{label: string, value: string}> Fields.
* @since n.e.x.t
*/
function performance_lab_object_cache_supported_fields(): array {
function perflab_object_cache_supported_fields(): array {
return array(
'extension' => array(
'label' => __( 'Extension', 'performance-lab' ),
'value' => performance_lab_get_cache_type(),
'value' => perflab_get_cache_type(),
),
'multiple_gets' => array(
'label' => __( 'Multiple gets', 'performance-lab' ),
Expand Down Expand Up @@ -55,7 +55,7 @@ function performance_lab_object_cache_supported_fields(): array {
* @return string Object cache type.
* @since n.e.x.t
*/
function performance_lab_get_cache_type(): string {
function perflab_get_cache_type(): string {
global $_wp_using_ext_object_cache, $wp_object_cache;

$message = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
* @return array{object_cache: array{label: string,description: string,fields: array<string, array{label: string,value: string}>}} Amended Info.
* @since n.e.x.t
*/
function performance_lab_object_cache_supported_info( array $info ): array {
function perflab_object_cache_supported_info( array $info ): array {
$info['object_cache'] = array(
'label' => __( 'Object Caching', 'performance-lab' ),
'description' => __( 'Shows which features object cache supports and if object caching is in use.', 'performance-lab' ),
'fields' => performance_lab_object_cache_supported_fields(),
'fields' => perflab_object_cache_supported_fields(),
);

return $info;
}

add_filter( 'debug_information', 'performance_lab_object_cache_supported_info', 10, 1 );
add_filter( 'debug_information', 'perflab_object_cache_supported_info', 10, 1 );

0 comments on commit d746d31

Please sign in to comment.