WordPress.org

Plugin Directory

Changeset 892400


Ignore:
Timestamp:
04/13/14 19:57:27 (13 months ago)
Author:
ozh
Message:

Fix notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • no-login/trunk/nologin.php

    r99891 r892400  
    55Description: Never authenticate, you're always the admin. Obviously for test sites! 
    66Author: Ozh 
    7 Version: 1.0.1 
     7Version: 1.0.2 
    88Author URI: http://planetozh.com/ 
    99*/ 
    1010 
     11/**/ 
    1112if (!function_exists('wp_validate_auth_cookie')) { 
    1213       function wp_validate_auth_cookie() { 
    1314               return 1; 
    1415       } 
    15        wp_enqueue_script('jquery'); 
    16        add_action('admin_notices', 'ozh_nologin_warn'); 
     16       add_action( 'admin_enqueue_scripts', 'ozh_nologin_enqueue' ); 
     17       add_action( 'admin_notices', 'ozh_nologin_warn' ); 
     18} 
     19 
     20function ozh_nologin_enqueue() { 
     21    wp_enqueue_script('jquery'); 
    1722} 
    1823 
     
    2126} 
    2227 
    23 ?> 
Note: See TracChangeset for help on using the changeset viewer.