wphooks.info - populate_options

populate_options

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/includes/schema.php:
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
 */
function populate_options() {
	global $wpdb, $wp_db_version, $wp_current_db_version;

	$guessurl = wp_guess_url();
	/**
	 * Fires before creating WordPress options and populating their default values.
	 *
	 * @since 2.6.0
	 */
	do_action( 'populate_options' );

	if ( ini_get( 'safe_mode' ) ) {
		// Safe mode can break mkdir() so use a flat structure by default.
		$uploads_use_yearmonth_folders = 0;
	} else {
		$uploads_use_yearmonth_folders = 1;
	}

	// If WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme.