$update_actions['activate'
] =
sprintf( '<a href="%s" class="activatelink">' .
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
esc_url( $activate_link ),
__( 'Activate'
),
/* translators: Hidden accessibility text. %s: Theme name. */
sprintf( _x( 'Activate “%s”', 'theme'
),
$name ) );
} if ( !
$this->result ||
is_wp_error( $this->result
) ||
is_network_admin() ) { unset( $update_actions['preview'
],
$update_actions['activate'
] );
} } $update_actions['themes_page'
] =
sprintf( '<a href="%s" target="_parent">%s</a>',
self_admin_url( 'themes.php'
),
__( 'Go to Themes page'
) );
/**
* Filters the list of action links available following a single theme update.
*
* @since 2.8.0
*
* @param string[] $update_actions Array of theme action links.
* @param string $theme Theme directory name.
*/