Make WordPress Core

Changeset 27630


Ignore:
Timestamp:
03/20/2014 01:30:49 AM (11 years ago)
Author:
helen
Message:

Avoid an undefined function due to /wp-admin/includes/dashboard.php being included too late. props obenland. fixes #27457.

File:
1 edited

Legend:

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

    r26995 r27630  
    107107    $nonce = $_REQUEST['_wpnonce'];
    108108    $error_msg = false;
     109
     110    // For output of the quickdraft dashboard widget
     111    require_once ABSPATH . 'wp-admin/includes/dashboard.php';
     112
    109113    if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
    110114        $error_msg = __( 'Unable to submit this form, please refresh and try again.' );
     
    123127
    124128    edit_post();
    125     // output the quickdraft dashboard widget
    126     require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
    127129    wp_dashboard_quick_press();
    128130    exit;
Note: See TracChangeset for help on using the changeset viewer.