WordPress at Your Fingertips
function is not described

WP_Locale::register_globals() public WP 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.

{} It's a method of the class: WP_Locale{}

No Hooks.

Return

null. Nothing.

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.

Code of WP_Locale::register_globals() WP 5.8

<?php
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;
}