<?php

function wp_load_dropins() {
	global $wp_dropins;
	$wp_dropins = array();
	define( 'WP_DROPINS_DIR', WP_CONTENT_DIR . '/dropins' );
	if ( ! is_dir( WP_DROPINS_DIR ) )
		return;
	if ( ! $dh = opendir( WP_DROPINS_DIR ) )
		return;
	while ( ( $dropin = readdir( $dh ) ) !== false ) {
		if ( substr( $dropin, -4 ) == '.php' )
			include( $wp_dropins[] = WP_DROPINS_DIR . '/' . $dropin );
	}
	closedir( $dh );
	return $wp_dropins;
}
