WordPress.org

Make WordPress Core

Ticket #19972: 19972.diff

File 19972.diff, 627 bytes (added by lightningspirit, 6 years ago)

Creates a new action hook inside wp-admin/index.php to solve the issue realted to wp_welcome_panel() being called hardcoded

  • wp-admin/index.php

     
    1717wp_enqueue_script( 'dashboard' );
    1818wp_enqueue_script( 'plugin-install' );
    1919wp_enqueue_script( 'media-upload' );
     20
     21add_action( 'dashboard_welcome_panel', 'wp_welcome_panel' );
     22
    2023add_thickbox();
    2124
    2225if ( wp_is_mobile() )
     
    101104<?php screen_icon(); ?>
    102105<h2><?php echo esc_html( $title ); ?></h2>
    103106
    104 <?php wp_welcome_panel(); ?>
     107<?php do_action( 'dashboard_welcome_panel' ); ?>
    105108
    106109<div id="dashboard-widgets-wrap">
    107110