Plugin Directory

Changeset 785653


Ignore:
Timestamp:
10/10/2013 03:18:26 AM (12 years ago)
Author:
lessbloat
Message:

Only load php file if it exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashboard/trunk/dashboard.php

    r785524 r785653  
    3434
    3535            // Load new module files
    36             foreach ( $this->active_modules as $module_slug ) include plugin_dir_path( __FILE__ ) . $module_slug . '.php';
     36            foreach ( $this->active_modules as $module_slug ) {
     37                $module = plugin_dir_path( __FILE__ ) . $module_slug . '.php';
     38                if ( file_exists( $module ) )
     39                    include $module;
     40            }
    3741            $this->screen = 'dashboard';
    3842        }
Note: See TracChangeset for help on using the changeset viewer.