Making WordPress.org


Ignore:
Timestamp:
09/05/2022 08:21:02 PM (4 years ago)
Author:
iandunn
Message:

Developer: Sync with Git 41e97d9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/admin.php

    r7817 r12053  
    2323    public static function do_init() {
    2424        add_action( 'admin_enqueue_scripts', [ __CLASS__, 'admin_enqueue_scripts' ] );
    25    
     25
    2626        add_action( 'comment_author', [ __CLASS__, 'append_user_nicename' ], 10, 2 );
    2727
     
    3131
    3232            // Reset votes after editing a comment in the wp-admin.
    33             add_filter( 'comment_edit_redirect',  [ __CLASS__, 'comment_edit_redirect'], 10, 2 );
     33            add_filter( 'comment_edit_redirect', [ __CLASS__, 'comment_edit_redirect' ], 10, 2 );
    3434        }
    3535    }
     
    6767         */
    6868        if ( (bool) apply_filters( 'devhub-admin_enqueue_scripts', in_array( get_current_screen()->id, $screen_ids ) ) ) {
    69             wp_enqueue_style( 'wporg-admin', get_template_directory_uri() . '/stylesheets/admin.css', [], '20181101' );
     69            wp_enqueue_style(
     70                'wporg-admin',
     71                get_template_directory_uri() . '/stylesheets/admin.css',
     72                [],
     73                filemtime( dirname( __DIR__ ) . '/stylesheets/admin.css' ),
     74            );
    7075        }
    7176    }
     
    8590        if ( $comment->user_id ) {
    8691            $username = get_user_by( 'id', $comment->user_id )->user_nicename;
    87    
     92
    8893            $author_name .= '</strong><div class="comment-author-nicename">@' . $username . '</div><strong>';
    8994        }
Note: See TracChangeset for help on using the changeset viewer.