Skip to content

Commit

Permalink
Docs: Document some globals in wp-admin/setup-config.php.
Browse files Browse the repository at this point in the history
Follow-up to [29669], [29705], [32642], [45737], [47230], [51477].

Props upadalavipul, sabernhardt.
See #60021.

git-svn-id: https://develop.svn.wordpress.org/trunk@57756 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 3, 2024
1 parent ee5142e commit 238383d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wp-admin/setup-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ function setup_config_display_header( $body_classes = array() ) {
<?php
} // End function setup_config_display_header();

/**
* @global string $wp_local_package Locale code of the package.
* @global WP_Locale $wp_locale WordPress date and time locale object.
*/
$language = '';
if ( ! empty( $_REQUEST['language'] ) ) {
$language = preg_replace( '/[^a-zA-Z0-9_]/', '', $_REQUEST['language'] );
Expand Down

0 comments on commit 238383d

Please sign in to comment.