updated plugin W3 Total Cache version 2.7.0

This commit is contained in:
2024-03-28 09:40:06 +00:00
committed by Gitium
parent 60de585044
commit 218272bbcb
140 changed files with 3054 additions and 3013 deletions

View File

@ -873,10 +873,12 @@ class Util_PageUrls {
}
/**
* Gets page title based on key
* Gets page title based on key.
*
* @since 2.4.0
*
* @param string $id Page ID.
* @return string
* @return array
*/
public static function get_page_mapping( $id ) {
$map = array(
@ -982,6 +984,8 @@ class Util_PageUrls {
),
);
return ! empty( $map[ $id ] ) ? $map[ $id ] : '';
$map = apply_filters( 'w3tc_page_mapping', $map );
return ! empty( $map[ $id ] ) ? $map[ $id ] : array();
}
}