' . $acf_plugin_name . ' —';
$acf_learn_how_to_fix = '' . __( 'Learn more', 'acf' ) . '';
$acf_class = 'notice-error';
$acf_user_can_acf = false;
if ( current_user_can( acf_get_setting( 'capability' ) ) ) {
$acf_user_can_acf = true;
$acf_dismiss_url = add_query_arg( array( 'acf-dismiss-esc-html-notice' => wp_create_nonce( 'acf/dismiss_escaped_html_notice' ) ) );
// "Show/Hide Details" is a button for accessibility purposes, because it isn't a link. But since the design shows a link, we need to make it look like a link.
$acf_style_button_as_link = trim(
'display: inline;
padding: 0;
background: none;
border: none;
color: #0073aa;
text-decoration: underline;
cursor: pointer;'
);
$acf_show_details = '';
$acf_show_details .= ' | ' . __( 'Dismiss permanently', 'acf' ) . '';
} else {
$acf_show_details = __( 'Please contact your site administrator or developer for more details.', 'acf' );
}
$acf_error_msg = sprintf(
/* translators: %1$s - name of the ACF plugin. %2$s - Link to documentation. */
__( '%1$s ACF now automatically escapes unsafe HTML when rendered by the_field
or the ACF shortcode. We\'ve detected the output of some of your fields has been modified by this change, but this may not be a breaking change. %2$s.', 'acf' ),
$acf_plugin_name,
$acf_learn_how_to_fix
);
?>