суббота, 9 февраля 2013 г.

маленький сейф для оружия

$active_plugins = (array) get_option( 'active_plugins', array() );

function wp_get_active_and_valid_plugins() {

* @return array Files to include

* manually, define WP_PLUGIN_DIR and WP_PLUGIN_URL

* The default directory is wp-content/plugins. To change the default directory

* Returns array of plugin files to be included in global scope.

$mu_plugins[] = WPMU_PLUGIN_DIR . '/' . $plugin;

if ( substr( $plugin, -4 ) == '.php' )

while ( ( $plugin = readdir( $dh ) ) !== false ) {

if ( ! $dh = opendir( WPMU_PLUGIN_DIR ) )

if ( !is_dir( WPMU_PLUGIN_DIR ) )

function wp_get_mu_plugins() {

* @return array Files to include

* manually, define WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL

* The default directory is wp-content/mu-plugins. To change the default directory

* Returns array of must-use plugin files to be included in global scope.

require( ABSPATH . WPINC . '/formatting.php' );

require( ABSPATH . WPINC . '/pluggable.php' );

require( ABSPATH . WPINC . '/kses.php' );

$link = preg_replace( '|/[^/]+?$|', '/', $_SERVER['PHP_SELF'] ) . 'wp-admin/install.php';

Комментариев нет:

Отправить комментарий