Ticket #25549: 25549.3.diff
File 25549.3.diff, 1.1 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/inc/featured-content.php
30 30 * All custom functionality will be hooked into the "init" action. 31 31 */ 32 32 public static function setup() { 33 add_action( 'init', array( __ class__, 'init' ), 30 );33 add_action( 'init', array( __CLASS__, 'init' ), 30 ); 34 34 } 35 35 36 36 /** … … 308 308 * @return void 309 309 */ 310 310 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' ) ); 313 313 } 314 314 315 315 /**