Changeset 12053 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/admin.php
- Timestamp:
- 09/05/2022 08:21:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/admin.php
r7817 r12053 23 23 public static function do_init() { 24 24 add_action( 'admin_enqueue_scripts', [ __CLASS__, 'admin_enqueue_scripts' ] ); 25 25 26 26 add_action( 'comment_author', [ __CLASS__, 'append_user_nicename' ], 10, 2 ); 27 27 … … 31 31 32 32 // 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 ); 34 34 } 35 35 } … … 67 67 */ 68 68 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 ); 70 75 } 71 76 } … … 85 90 if ( $comment->user_id ) { 86 91 $username = get_user_by( 'id', $comment->user_id )->user_nicename; 87 92 88 93 $author_name .= '</strong><div class="comment-author-nicename">@' . $username . '</div><strong>'; 89 94 }
Note: See TracChangeset
for help on using the changeset viewer.