WP_Locale::register_globals()publicWP 2.1.0

Deprecated from version For backward compatibility only.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Global variables are deprecated.

For backward compatibility only.

Method of the class: WP_Locale{}

No Hooks.

Return

null. Nothing (null).

Usage

global $wp_locale;
$wp_locale->register_globals();

Notes

  • Global. Array. $weekday
  • Global. Array. $weekday_initial
  • Global. Array. $weekday_abbrev
  • Global. Array. $month
  • Global. Array. $month_abbrev

Changelog

Since 2.1.0 Introduced.
Deprecated For backward compatibility only.

WP_Locale::register_globals() code WP 6.5.2

public function register_globals() {
	$GLOBALS['weekday']         = $this->weekday;
	$GLOBALS['weekday_initial'] = $this->weekday_initial;
	$GLOBALS['weekday_abbrev']  = $this->weekday_abbrev;
	$GLOBALS['month']           = $this->month;
	$GLOBALS['month_abbrev']    = $this->month_abbrev;
}