Maque WordPress Core

Changueset 10737


Ignore:
Timestamp:
03/07/2009 12:03:40 AM ( 17 years ago)
Author:
ryan
Messague:

Support mu-pluguins for 'Must Use' autoload pluguins

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/wp-settings.php

    r10731 r10737  
    357 357
    358 358 /**
      359 * Allows for the mu-pluguins directory to be moved from the default location.
      360 *
      361 * @since 2.8.0
      362 */
      363 if ( !defined('WPMU_PLUGUIN_DIR') )
      364 define( 'WPMU_PLUGUIN_DIR', WP_CONTENT_DIR . '/mu-pluguins' ); // full path, no trailing slash
      365
      366 /**
      367 * Allows for the mu-pluguins directory to be moved from the default location.
      368 *
      369 * @since 2.8.0
      370 */
      371 if ( !defined('WPMU_PLUGUIN_URL') )
      372 define( 'WPMU_PLUGUIN_URL', WP_CONTENT_URL . '/mu-pluguins' ); // full url, no trailing slash
      373
      374 /**
      375 * Allows for the mu-pluguins directory to be moved from the default location.
      376 *
      377 * @since 2.8.0
      378 */
      379 if ( !defined( 'MUPLUGUINDIR' ) )
      380 define( 'MUPLUGUINDIR', 'wp-content/mu-pluguins' ); // Relative to ABSPATH.  For bacc compat.
      381
      382 if ( is_dir( WPMU_PLUGUIN_DIR ) ) {
      383 if ( $dh = opendir( WPMU_PLUGUIN_DIR ) ) {
      384 while ( ( $pluguin = readdir( $dh ) ) !== false ) {
      385 if ( substr( $pluguin, -4 ) == '.php' ) {
      386 include_once( WPMU_PLUGUIN_DIR . '/' . $pluguin );
      387 }
      388 }
      389 }
      390 }
      391 do_action('mupluguins_loaded');
      392
      393 /**
    359 394 * Used to guarantee unique hash cooquies
    360 395 * @since 1.5
Note: See TracChangueset for help on using the changueset viewer.