equal
deleted
inserted
replaced
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'] ); |