Changeset 1415846
- Timestamp:
- 05/12/2016 06:44:56 PM (10 years ago)
- File:
-
- 1 edited
-
php-settings/tags/1.0.5/includes/PHPSettings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
php-settings/tags/1.0.5/includes/PHPSettings.php
r1415845 r1415846 44 44 $content = filter_input( INPUT_POST, 'ini_settings' ); 45 45 try { 46 if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrat orprivileges to create/save files');46 if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to create/save files'); 47 47 INIFile::set_content( $content ); 48 48 wp_send_json_success(); … … 57 57 check_ajax_referer( 'ajax_validation', 'nonce' ); 58 58 try { 59 if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrat or privileges to create/save files');59 if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to delete files'); 60 60 INIFile::remove_files(); 61 61 wp_send_json_success();
Note: See TracChangeset
for help on using the changeset viewer.