Changeset 817
- Timestamp:
- 08/26/2014 08:37:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php
r813 r817 14 14 * Initializer 15 15 */ 16 public function init() {16 public static function init() { 17 17 add_action( 'init', array( __CLASS__, 'do_init' ) ); 18 18 } … … 25 25 * In order to submit code examples, users must be able to post with less restrictions. 26 26 */ 27 function do_init() {27 public static function do_init() { 28 28 29 29 // Restricts commenting to logged in users. … … 65 65 * Enqueues scripts and styles. 66 66 */ 67 public function scripts_and_styles() {67 public static function scripts_and_styles() { 68 68 if ( is_singular() && ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() ) ) { 69 69 wp_enqueue_script( 'wporg-developer-function-reference', get_template_directory_uri() . '/js/function-reference.js', array( 'jquery', 'syntaxhighlighter-core', 'syntaxhighlighter-brush-php' ), '20140515', true );
Note: See TracChangeset
for help on using the changeset viewer.