WordPress.org

Plugin Directory

Changeset 533032


Ignore:
Timestamp:
04/18/12 18:37:04 (2 years ago)
Author:
dimadin
Message:

Simplify check for is WordPress loaded.

Location:
gravatar-signup-encouragement/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gravatar-signup-encouragement/trunk/gravatar-signup-encouragment.php

    r449163 r533032  
    1212*/ 
    1313 
    14 /* 
    15  * If file is opened directly, return 403 error 
    16  */ 
    17 if ( ! function_exists( 'add_action' ) ) { 
    18     header( 'Status: 403 Forbidden' ); 
    19     header( 'HTTP/1.1 403 Forbidden' ); 
    20     exit(); 
    21 } 
     14/* Exit if accessed directly */ 
     15if ( ! defined( 'ABSPATH' ) ) exit; 
    2216 
    2317/** 
  • gravatar-signup-encouragement/trunk/settings.php

    r449155 r533032  
    55*/ 
    66 
    7 /* 
    8  * If file is opened directly, return 403 error 
    9  */ 
    10 if ( ! function_exists( 'add_action' ) ) { 
    11     header( 'Status: 403 Forbidden' ); 
    12     header( 'HTTP/1.1 403 Forbidden' ); 
    13     exit(); 
    14 } 
     7/* Exit if accessed directly */ 
     8if ( ! defined( 'ABSPATH' ) ) exit; 
    159 
    1610/** 
Note: See TracChangeset for help on using the changeset viewer.