Making WordPress.org


Ignore:
Timestamp:
02/01/2016 06:43:27 PM (9 years ago)
Author:
iandunn
Message:

WordCamp mu-plugins: Re-purpose the private loader to include subdirectories.

This reduces clutter in the root folder and keeps mu-plugins with multiple files grouped together.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/bootstrap.php

    r2418 r2440  
    55}
    66
    7 $wp_cli_commands = glob( __DIR__ . '/wp-cli-commands/*.php' );
    8 
    9 if ( is_array( $wp_cli_commands ) ) {
    10     foreach ( $wp_cli_commands as $command ) {
    11         require_once( $command );
    12     }
    13 }
     7require_once( __DIR__ . '/miscellaneous.php' );
     8require_once( __DIR__ . '/rest-api.php'      );
     9require_once( __DIR__ . '/rewrite-rules.php' );
     10require_once( __DIR__ . '/users.php'         );
    1411
    1512WP_CLI::add_command( 'wc-misc',    'WordCamp_CLI_Miscellaneous' );
Note: See TracChangeset for help on using the changeset viewer.