Plugin Directory

Changeset 2275715


Ignore:
Timestamp:
04/04/2020 08:23:45 AM (6 years ago)
Author:
jesselsteele
Message:

1.0.5 Update bugfix attempt

Location:
badad/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • badad/trunk/badad.php

    r2275714 r2275715  
    7474    function register() {
    7575        //add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
    76         //add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) );
     76        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) );
    7777        add_action( 'admin_menu', array( $this, 'add_settings_page' ) );
    7878        add_filter( "plugin_action_links_$this->plugin", array( $this, 'settings_link' ) );
     
    9696
    9797    function enqueue() {
     98        // Make sure we create any files if settings were in the database
     99        include_once (plugin_dir_path( __FILE__ ).'files.php');
     100
    98101        // enqueue all our scripts
    99102        //wp_enqueue_style( 'mypluginstyle', plugins_url( '/art/badad_style.css', __FILE__ ) );
  • badad/trunk/inc/badad-activate.php

    r2275714 r2275715  
    77        public static function activate() {
    88            flush_rewrite_rules();
    9             // Make sure we create any files if settings were in the database
    10             include_once (plugin_dir_path( __FILE__ ).'files.php');
    119        }
    1210}
Note: See TracChangeset for help on using the changeset viewer.