Make WordPress Core

Ticket #16434: 16434.10.diff

File 16434.10.diff, 1.1 KB (added by kraftbj, 9 years ago)

Moving the admin_head action to admin-filters.php

  • src/wp-admin/includes/admin-filters.php

     
    4747// Misc hooks.
    4848add_action( 'admin_head', 'wp_admin_canonical_url'   );
    4949add_action( 'admin_head', 'wp_color_scheme_settings' );
     50add_action( 'admin_head', 'wp_site_icon'             );
    5051add_action( 'admin_head', '_ipad_meta'               );
    5152
    5253add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' );
  • src/wp-admin/includes/site-icon.php

     
    5858        public function __construct() {
    5959
    6060                // Add the favicon to the backend.
    61                 add_action( 'admin_head', 'wp_site_icon' );
    62 
    6361                add_action( 'admin_menu', array( $this, 'admin_menu_upload_site_icon' ) );
    6462
    6563                add_action( 'admin_action_set_site_icon',    array( $this, 'set_site_icon'    ) );