Update WP and plugins

This commit is contained in:
Oliver Davies 2019-04-16 20:56:22 +01:00
parent 10a4713229
commit 1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions

View file

@ -43,14 +43,6 @@ class WP_Locale {
*/
public $weekday_abbrev;
/**
* Stores the default start of the week.
*
* @since 4.4.0
* @var string
*/
public $start_of_week;
/**
* Stores the translated strings for the full month names.
*
@ -126,13 +118,13 @@ class WP_Locale {
*/
public function init() {
// The Weekdays
$this->weekday[0] = /* translators: weekday */ __('Sunday');
$this->weekday[1] = /* translators: weekday */ __('Monday');
$this->weekday[2] = /* translators: weekday */ __('Tuesday');
$this->weekday[3] = /* translators: weekday */ __('Wednesday');
$this->weekday[4] = /* translators: weekday */ __('Thursday');
$this->weekday[5] = /* translators: weekday */ __('Friday');
$this->weekday[6] = /* translators: weekday */ __('Saturday');
$this->weekday[0] = /* translators: weekday */ __( 'Sunday' );
$this->weekday[1] = /* translators: weekday */ __( 'Monday' );
$this->weekday[2] = /* translators: weekday */ __( 'Tuesday' );
$this->weekday[3] = /* translators: weekday */ __( 'Wednesday' );
$this->weekday[4] = /* translators: weekday */ __( 'Thursday' );
$this->weekday[5] = /* translators: weekday */ __( 'Friday' );
$this->weekday[6] = /* translators: weekday */ __( 'Saturday' );
// The first letter of each day.
$this->weekday_initial[ __( 'Sunday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Sunday initial' );
@ -144,13 +136,13 @@ class WP_Locale {
$this->weekday_initial[ __( 'Saturday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Saturday initial' );
// Abbreviations for each day.
$this->weekday_abbrev[__('Sunday')] = /* translators: three-letter abbreviation of the weekday */ __('Sun');
$this->weekday_abbrev[__('Monday')] = /* translators: three-letter abbreviation of the weekday */ __('Mon');
$this->weekday_abbrev[__('Tuesday')] = /* translators: three-letter abbreviation of the weekday */ __('Tue');
$this->weekday_abbrev[__('Wednesday')] = /* translators: three-letter abbreviation of the weekday */ __('Wed');
$this->weekday_abbrev[__('Thursday')] = /* translators: three-letter abbreviation of the weekday */ __('Thu');
$this->weekday_abbrev[__('Friday')] = /* translators: three-letter abbreviation of the weekday */ __('Fri');
$this->weekday_abbrev[__('Saturday')] = /* translators: three-letter abbreviation of the weekday */ __('Sat');
$this->weekday_abbrev[ __( 'Sunday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Sun' );
$this->weekday_abbrev[ __( 'Monday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Mon' );
$this->weekday_abbrev[ __( 'Tuesday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Tue' );
$this->weekday_abbrev[ __( 'Wednesday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Wed' );
$this->weekday_abbrev[ __( 'Thursday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Thu' );
$this->weekday_abbrev[ __( 'Friday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Fri' );
$this->weekday_abbrev[ __( 'Saturday' ) ] = /* translators: three-letter abbreviation of the weekday */ __( 'Sat' );
// The Months
$this->month['01'] = /* translators: month name */ __( 'January' );
@ -195,10 +187,10 @@ class WP_Locale {
$this->month_abbrev[ __( 'December' ) ] = /* translators: three-letter abbreviation of the month */ _x( 'Dec', 'December abbreviation' );
// The Meridiems
$this->meridiem['am'] = __('am');
$this->meridiem['pm'] = __('pm');
$this->meridiem['AM'] = __('AM');
$this->meridiem['PM'] = __('PM');
$this->meridiem['am'] = __( 'am' );
$this->meridiem['pm'] = __( 'pm' );
$this->meridiem['AM'] = __( 'AM' );
$this->meridiem['PM'] = __( 'PM' );
// Numbers formatting
// See https://secure.php.net/number_format
@ -222,11 +214,13 @@ class WP_Locale {
$this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point;
// Set text direction.
if ( isset( $GLOBALS['text_direction'] ) )
if ( isset( $GLOBALS['text_direction'] ) ) {
$this->text_direction = $GLOBALS['text_direction'];
/* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */
elseif ( 'rtl' == _x( 'ltr', 'text direction' ) )
/* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */
} elseif ( 'rtl' == _x( 'ltr', 'text direction' ) ) {
$this->text_direction = 'rtl';
}
if ( 'rtl' === $this->text_direction && strpos( get_bloginfo( 'version' ), '-src' ) ) {
$this->text_direction = 'ltr';
@ -253,11 +247,11 @@ class WP_Locale {
*
* @since 2.1.0
*
* @param int $weekday_number 0 for Sunday through 6 Saturday
* @return string Full translated weekday
* @param int $weekday_number 0 for Sunday through 6 Saturday.
* @return string Full translated weekday.
*/
public function get_weekday($weekday_number) {
return $this->weekday[$weekday_number];
public function get_weekday( $weekday_number ) {
return $this->weekday[ $weekday_number ];
}
/**
@ -270,11 +264,11 @@ class WP_Locale {
*
* @since 2.1.0
*
* @param string $weekday_name
* @return string
* @param string $weekday_name Full translated weekday word.
* @return string Translated weekday initial.
*/
public function get_weekday_initial($weekday_name) {
return $this->weekday_initial[$weekday_name];
public function get_weekday_initial( $weekday_name ) {
return $this->weekday_initial[ $weekday_name ];
}
/**
@ -285,11 +279,11 @@ class WP_Locale {
*
* @since 2.1.0
*
* @param string $weekday_name Full translated weekday word
* @return string Translated weekday abbreviation
* @param string $weekday_name Full translated weekday word.
* @return string Translated weekday abbreviation.
*/
public function get_weekday_abbrev($weekday_name) {
return $this->weekday_abbrev[$weekday_name];
public function get_weekday_abbrev( $weekday_name ) {
return $this->weekday_abbrev[ $weekday_name ];
}
/**
@ -305,11 +299,11 @@ class WP_Locale {
*
* @since 2.1.0
*
* @param string|int $month_number '01' through '12'
* @return string Translated full month name
* @param string|int $month_number '01' through '12'.
* @return string Translated full month name.
*/
public function get_month($month_number) {
return $this->month[zeroise($month_number, 2)];
public function get_month( $month_number ) {
return $this->month[ zeroise( $month_number, 2 ) ];
}
/**
@ -320,11 +314,11 @@ class WP_Locale {
*
* @since 2.1.0
*
* @param string $month_name Translated month to get abbreviated version
* @return string Translated abbreviated month
* @param string $month_name Translated month to get abbreviated version.
* @return string Translated abbreviated month.
*/
public function get_month_abbrev($month_name) {
return $this->month_abbrev[$month_name];
public function get_month_abbrev( $month_name ) {
return $this->month_abbrev[ $month_name ];
}
/**
@ -337,8 +331,8 @@ class WP_Locale {
* @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version.
* @return string Translated version
*/
public function get_meridiem($meridiem) {
return $this->meridiem[$meridiem];
public function get_meridiem( $meridiem ) {
return $this->meridiem[ $meridiem ];
}
/**