ID;
if ( ! get_user_meta( $userid, 'ignore_' . $notice['id'] ) ) {
// Check if we are on admin.php. If we are, we have
// to get the current page slug and tab, so we can
// feed it back to Wordpress. Why> admin.php cannot
// be accessed without the page parameter. We add the
// tab to return the user to the last panel they were
// on.
$pageName = '';
$curTab = '';
if ( $pagenow == 'admin.php' || $pagenow == 'themes.php' ) {
// Get the current page. To avoid errors, we'll set
// the redux page slug if the GET is empty.
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
$pageName = empty( $_GET['page'] ) ? '&page=' . self::$_parent->args['page_slug'] : '&page=' . esc_attr( sanitize_text_field( wp_unslash( $_GET['page'] ) ) );
// Ditto for the current tab.
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
$curTab = empty( $_GET['tab'] ) ? '&tab=0' : '&tab=' . esc_attr( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) );
}
global $wp_version;
// Print the notice with the dismiss link
if ( version_compare( $wp_version, '4.2', '>' ) ) {
$output = "";
$css_id = esc_attr( $notice['id'] ) . $pageName . $curTab;
$css_class = esc_attr( $notice['type'] ) . ' redux-notice notice is-dismissible redux-notice';
$output .= "