wp/wp-admin/includes/class-bulk-theme-upgrader-skin.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    46 
    46 
    47 		$update_actions = array(
    47 		$update_actions = array(
    48 			'themes_page'  => sprintf(
    48 			'themes_page'  => sprintf(
    49 				'<a href="%s" target="_parent">%s</a>',
    49 				'<a href="%s" target="_parent">%s</a>',
    50 				self_admin_url( 'themes.php' ),
    50 				self_admin_url( 'themes.php' ),
    51 				__( 'Return to Themes page' )
    51 				__( 'Go to Themes page' )
    52 			),
    52 			),
    53 			'updates_page' => sprintf(
    53 			'updates_page' => sprintf(
    54 				'<a href="%s" target="_parent">%s</a>',
    54 				'<a href="%s" target="_parent">%s</a>',
    55 				self_admin_url( 'update-core.php' ),
    55 				self_admin_url( 'update-core.php' ),
    56 				__( 'Return to WordPress Updates page' )
    56 				__( 'Go to WordPress Updates page' )
    57 			),
    57 			),
    58 		);
    58 		);
    59 
    59 
    60 		if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
    60 		if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
    61 			unset( $update_actions['themes_page'] );
    61 			unset( $update_actions['themes_page'] );