WordPress.org

Plugin Directory

Changeset 457876


Ignore:
Timestamp:
10/31/11 16:35:53 (2 years ago)
Author:
isaacchapman
Message:

Changing define check to negative instead of positive

Location:
htaccess-secure-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • htaccess-secure-files/tags/0.2/htaccess-secure-files.php

    r457862 r457876  
    2626*/ 
    2727 
    28 // If the existing settings are to be used and shouldn't be changed through the admin interface HSF_DISPLAY_ADMIN should be defined as false in the wp-config.php file. For example: 
    29 // define('HSF_DISPLAY_ADMIN', false);  
     28// If the existing settings are to be used and shouldn't be changed through the admin interface HSF_HIDE_ADMIN should be defined as false in the wp-config.php file. For example: 
     29// define('HSF_HIDE_ADMIN', true);  
    3030 
    3131// The default roles and capabilities needed to access secured content 
     
    8888/**** Admin screen ****/ 
    8989// Should the admin functionality be loaded? 
    90 if (!defined('HSF_DISPLAY_ADMIN') || HSF_DISPLAY_ADMIN == true) { 
     90if (!defined('HSF_HIDE_ADMIN') || HSF_HIDE_ADMIN != true) { 
    9191    add_action('admin_menu', 'hsf_admin_menu'); 
    9292} 
  • htaccess-secure-files/trunk/htaccess-secure-files.php

    r457862 r457876  
    2626*/ 
    2727 
    28 // If the existing settings are to be used and shouldn't be changed through the admin interface HSF_DISPLAY_ADMIN should be defined as false in the wp-config.php file. For example: 
    29 // define('HSF_DISPLAY_ADMIN', false);  
     28// If the existing settings are to be used and shouldn't be changed through the admin interface HSF_HIDE_ADMIN should be defined as false in the wp-config.php file. For example: 
     29// define('HSF_HIDE_ADMIN', true);  
    3030 
    3131// The default roles and capabilities needed to access secured content 
     
    8888/**** Admin screen ****/ 
    8989// Should the admin functionality be loaded? 
    90 if (!defined('HSF_DISPLAY_ADMIN') || HSF_DISPLAY_ADMIN == true) { 
     90if (!defined('HSF_HIDE_ADMIN') || HSF_HIDE_ADMIN != true) { 
    9191    add_action('admin_menu', 'hsf_admin_menu'); 
    9292} 
Note: See TracChangeset for help on using the changeset viewer.