Ticket #19824: 19824.patch
| File 19824.patch, 1.5 KB (added by linuxologos, 16 months ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
1270 1270 'plugins_page' => '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Go to plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>', 1271 1271 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>' 1272 1272 ); 1273 if ( ! current_user_can( 'activate_plugins' ) ) 1274 unset( $update_actions['plugins_page'] ); 1273 1275 1274 1276 $update_actions = apply_filters('update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info); 1275 1277 if ( ! empty($update_actions) ) … … 1302 1304 'themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>', 1303 1305 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>' 1304 1306 ); 1307 if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) 1308 unset( $update_actions['themes_page'] ); 1305 1309 1306 1310 $update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info); 1307 1311 if ( ! empty($update_actions) )
