Make WordPress Core

Ticket #25549: 25549.3.diff

File 25549.3.diff, 1.1 KB (added by kovshenin, 11 years ago)
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    3030         * All custom functionality will be hooked into the "init" action.
    3131         */
    3232        public static function setup() {
    33                 add_action( 'init', array( __class__, 'init' ), 30 );
     33                add_action( 'init', array( __CLASS__, 'init' ), 30 );
    3434        }
    3535
    3636        /**
     
    308308         * @return void
    309309         */
    310310        public static function register_setting() {
    311                 add_settings_field( 'featured-content', __( 'Featured content', 'twentyfourteen' ), array( __class__, 'render_form' ), 'reading' );
    312                 register_setting( 'reading', 'featured-content', array( __class__, 'validate_settings' ) );
     311                add_settings_field( 'featured-content', __( 'Featured content', 'twentyfourteen' ), array( __CLASS__, 'render_form' ), 'reading' );
     312                register_setting( 'reading', 'featured-content', array( __CLASS__, 'validate_settings' ) );
    313313        }
    314314
    315315        /**