WordPress.org

Make WordPress Core

Changeset 32961


Ignore:
Timestamp:
06/27/2015 12:31:27 AM (6 years ago)
Author:
wonderboymusic
Message:

Declare visibility for WP_Locale methods.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r32672 r32961  
    9696     * @global string $wp_version
    9797     */
    98     function init() {
     98    public function init() {
    9999        // The Weekdays
    100100        $this->weekday[0] = /* translators: weekday */ __('Sunday');
     
    195195     * @since 3.8.0
    196196     */
    197     function rtl_src_admin_notice() {
     197    public function rtl_src_admin_notice() {
    198198        echo '<div class="error"><p>' . 'The <code>build</code> directory of the develop repository must be used for RTL.' . '</p></div>';
    199199    }
     
    212212     * @return string Full translated weekday
    213213     */
    214     function get_weekday($weekday_number) {
     214    public function get_weekday($weekday_number) {
    215215        return $this->weekday[$weekday_number];
    216216    }
     
    230230     * @return string
    231231     */
    232     function get_weekday_initial($weekday_name) {
     232    public function get_weekday_initial($weekday_name) {
    233233        return $this->weekday_initial[$weekday_name];
    234234    }
     
    246246     * @return string Translated weekday abbreviation
    247247     */
    248     function get_weekday_abbrev($weekday_name) {
     248    public function get_weekday_abbrev($weekday_name) {
    249249        return $this->weekday_abbrev[$weekday_name];
    250250    }
     
    267267     * @return string Translated full month name
    268268     */
    269     function get_month($month_number) {
     269    public function get_month($month_number) {
    270270        return $this->month[zeroise($month_number, 2)];
    271271    }
     
    283283     * @return string Translated abbreviated month
    284284     */
    285     function get_month_abbrev($month_name) {
     285    public function get_month_abbrev($month_name) {
    286286        return $this->month_abbrev[$month_name];
    287287    }
     
    298298     * @return string Translated version
    299299     */
    300     function get_meridiem($meridiem) {
     300    public function get_meridiem($meridiem) {
    301301        return $this->meridiem[$meridiem];
    302302    }
     
    316316     * @since 2.1.0
    317317     */
    318     function register_globals() {
     318    public function register_globals() {
    319319        $GLOBALS['weekday']         = $this->weekday;
    320320        $GLOBALS['weekday_initial'] = $this->weekday_initial;
     
    329329     * @since 2.1.0
    330330     */
    331     function __construct() {
     331    public function __construct() {
    332332        $this->init();
    333333        $this->register_globals();
     
    340340     * @return bool Whether locale is RTL.
    341341     */
    342     function is_rtl() {
     342    public function is_rtl() {
    343343        return 'rtl' == $this->text_direction;
    344344    }
     
    353353     * @since 3.6.0
    354354     */
    355     function _strings_for_pot() {
     355    public function _strings_for_pot() {
    356356        /* translators: localized date format, see http://php.net/date */
    357357        __( 'F j, Y' );
Note: See TracChangeset for help on using the changeset viewer.