Changeset 31334
- Timestamp:
- 02/05/2015 06:04:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r31333 r31334 2836 2836 */ 2837 2837 function wp_ajax_install_plugin() { 2838 if ( ! current_user_can( 'install_plugins' ) ) { 2839 wp_die( __('You do not have sufficient permissions to install plugins on this site.') ); 2840 } 2841 2838 2842 check_ajax_referer( 'updates' ); 2839 2843 … … 2876 2880 */ 2877 2881 function wp_ajax_update_plugin() { 2882 if ( ! current_user_can( 'update_plugins' ) ) { 2883 wp_die( __('You do not have sufficient permissions to install plugins on this site.') ); 2884 } 2885 2878 2886 check_ajax_referer( 'updates' ); 2879 2887
Note: See TracChangeset
for help on using the changeset viewer.