WordPress.org

WordPress build repository browser

Changeset 42504


Ignore:
Timestamp:
02/09/18 15:55:32 (13 days ago)
Author:
johnbillion
Message:

Posts, Post Types: Add a new add_inline_data action which allows extra fields to be added to the inline editing fields.

Props mensmaximus, NathanAtmoz

Fixes #36085

Built from https://develop.svn.wordpress.org/trunk@42676

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r42243 r42504  
    361361        echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>'; 
    362362    } 
     363 
     364    /** 
     365     * Fires after outputting the fields for the inline editor for posts and pages. 
     366     * 
     367     * @since 5.0.0 
     368     * 
     369     * @param WP_Post      $post             The current post object. 
     370     * @param WP_Post_Type $post_type_object The current post's post type object. 
     371     */ 
     372    do_action( 'add_inline_data', $post, $post_type_object ); 
    363373 
    364374    echo '</div>'; 
  • trunk/wp-includes/version.php

    r42503 r42504  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42675'; 
     7$wp_version = '5.0-alpha-42676'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.