Making WordPress.org

Changeset 817


Ignore:
Timestamp:
08/26/2014 08:37:07 AM (10 years ago)
Author:
coffee2code
Message:

Code Reference: explicitly declare functions public and static

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  
    1414     * Initializer
    1515     */
    16     public function init() {
     16    public static function init() {
    1717        add_action( 'init', array( __CLASS__, 'do_init' ) );
    1818    }
     
    2525     * In order to submit code examples, users must be able to post with less restrictions.
    2626     */
    27     function do_init() {
     27    public static function do_init() {
    2828
    2929        // Restricts commenting to logged in users.
     
    6565     * Enqueues scripts and styles.
    6666     */
    67     public function scripts_and_styles() {
     67    public static function scripts_and_styles() {
    6868        if ( is_singular() && ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() ) ) {
    6969            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.