Plugin Directory

Changeset 1415846


Ignore:
Timestamp:
05/12/2016 06:44:56 PM (10 years ago)
Author:
Askupa Software
Message:

Releasing PHP Settings v1.0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • php-settings/tags/1.0.5/includes/PHPSettings.php

    r1415845 r1415846  
    4444        $content = filter_input( INPUT_POST, 'ini_settings' );
    4545        try {
    46             if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrator privileges to create/save files');
     46            if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to create/save files');
    4747            INIFile::set_content( $content );
    4848            wp_send_json_success();
     
    5757        check_ajax_referer( 'ajax_validation', 'nonce' );
    5858        try {
    59             if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrator privileges to create/save files');
     59            if( !current_user_can( 'administrator' ) ) throw new Exception('You must have administrative privileges to delete files');
    6060            INIFile::remove_files();
    6161            wp_send_json_success();
Note: See TracChangeset for help on using the changeset viewer.