' . esc_html__( 'Take a minute to update, here\'s why:', 'w3-total-cache' ) . '
';
$ul = false;
foreach ( $changelog as $index => $line ) {
if ( preg_match( '~^\s*\*\s*~', $line ) ) {
if ( ! $ul ) {
echo '
';
$ul = true;
}
$line = preg_replace( '~^\s*\*\s*~', '', htmlspecialchars( $line ) );
echo '- ' . esc_html( $line ) . '
';
} elseif ( $ul ) {
echo '
';
$ul = false;
}
}
if ( $ul ) {
echo '
';
}
echo '
';
}
/**
* Admin notices action (administrators only).
*
* @return void
*/
public function admin_notices() {
if ( ! \user_can( \get_current_user_id(), 'manage_options' ) ) {
return;
}
$cookie_domain = Util_Admin::get_cookie_domain();
$error_messages = array(
'fancy_permalinks_disabled_pgcache' => sprintf(
// translators: 1 enable button link.
__(
'Fancy permalinks are disabled. Please %1$s it first, then re-attempt to enabling enhanced disk mode.',
'w3-total-cache'
),
Util_Ui::button_link( 'enable', 'options-permalink.php' )
),
'fancy_permalinks_disabled_browsercache' => sprintf(
// translators: 1 enable button link.
__(
'Fancy permalinks are disabled. Please %1$s it first, then re-attempt to enabling the \'Do not process 404 errors for static objects with WordPress\'.',
'w3-total-cache'
),
Util_Ui::button_link( 'enable', 'options-permalink.php' )
),
'support_request_type' => __( 'Please select request type.', 'w3-total-cache' ),
'support_request_url' => sprintf(
// translators: 1 HTML acronym URL (uniform resource locator).
__(
'Please enter the address of the site in the site %1$s field.',
'w3-total-cache'
),
'