WordPress.org

Make WordPress Core

Ticket #13038: 14123.diff

File 14123.diff, 1.3 KB (added by jorbin, 5 years ago)

Add four actions

  • wp-admin/includes/dashboard.php

     
    409409 
    410410        $post = get_default_post_to_edit(); 
    411411?> 
    412  
     412<?php do_action('quickpress_form_before'); ?> 
    413413        <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press"> 
    414414                <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4> 
     415                <?php do_action('quickpress_form_before_fields'); ?> 
    415416                <div class="input-text-wrap"> 
    416417                        <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" /> 
    417418                </div> 
     
    433434                <div class="input-text-wrap"> 
    434435                        <input type="text" name="tags_input" id="tags-input" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /> 
    435436                </div> 
    436  
     437                <?php do_action('quickpress_form_after_fields'); ?> 
    437438                <p class="submit"> 
    438439                        <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" /> 
    439440                        <input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" /> 
     
    449450                </p> 
    450451 
    451452        </form> 
    452  
     453<?php do_action('quickpress_form_after'); ?> 
    453454<?php 
    454455        if ( $drafts ) 
    455456                wp_dashboard_recent_drafts( $drafts );