Make WordPress Core

Changeset 34019


Ignore:
Timestamp:
09/10/2015 09:28:18 PM (10 years ago)
Author:
wonderboymusic
Message:

Move comment_footer_die() from wp-admin/comment.php to wp-admin/includes/comment.php.

See #33813.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r33774 r34019  
    3232    elseif ( 'trash' == $_GET['dt'] )
    3333        $action = 'trash';
    34 }
    35 
    36 /**
    37  * Display error message at bottom of comments.
    38  *
    39  * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
    40  */
    41 function comment_footer_die( $msg ) {
    42     echo "<div class='wrap'><p>$msg</p></div>";
    43     include( ABSPATH . 'wp-admin/admin-footer.php' );
    44     die;
    4534}
    4635
  • trunk/src/wp-admin/includes/comment.php

    r33963 r34019  
    172172        wp_enqueue_script( 'jquery-table-hotkeys' );
    173173}
     174
     175/**
     176 * Display error message at bottom of comments.
     177 *
     178 * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
     179 */
     180function comment_footer_die( $msg ) {
     181    echo "<div class='wrap'><p>$msg</p></div>";
     182    include( ABSPATH . 'wp-admin/admin-footer.php' );
     183    die;
     184}
Note: See TracChangeset for help on using the changeset viewer.