' .
\sprintf(
// translators: 1: A link to the settings page.
\esc_html__(
'W3 Total Cache has automatically disabled object caching because it was configured to write cache files to disk. This change was made to prevent potential performance issues and excessive file creation on your server. If you wish to re-enable object caching, you can do so in the %1$s. %2$s about this change and alternative caching solutions.',
'w3-total-cache'
),
'' .
__( 'settings', 'w3-total-cache' ) . '',
'' .
\esc_html__( 'Learn more', 'w3-total-cache' ) . ' '
) . '
',
'is_global' => true,
);
}
return $notices;
}
/**
* Merge notices.
*
* This method is used to merge notices from different sources, renumbering the numerical indices.
*
* @since 2.8.6
*
* @param array $notices1 Notices to merge.
* @param array $notices2 Notices to merge.
* @return array
*/
private function merge_notices( array $notices1, array $notices2 ): array {
$notices = array();
foreach ( array( 'notices1', 'notices2' ) as $arg ) {
foreach ( $$arg as $notice ) {
$notices[] = $notice;
}
}
return $notices;
}
}