Plugin Directory

Changeset 775946


Ignore:
Timestamp:
09/20/2013 10:46:16 AM (12 years ago)
Author:
WingerSpeed
Message:

Fix the plugin does not have a valid header issue on 1st activation.

Location:
slimjetpack/trunk/modules
Files:
2 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • slimjetpack/trunk/modules/theme-tools.php

    r775938 r775946  
    6262require_once( dirname( __FILE__ ) . '/custom-post-types/testimonial.php' );
    6363
    64 require_once( dirname( __FILE__ ) . '/random-redirect.php' );
     64function load_random_redirect() {
     65    // Fix the no valid header issue for the first time activation
     66    require_once( dirname( __FILE__ ) . '/random-redirect/random-redirect.php' );
     67}
     68add_action( 'setup_theme', 'load_random_redirect' );
Note: See TracChangeset for help on using the changeset viewer.