mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
Introduce an edit_form_before_permalink
action which gets fired after the title field but before the permalink fields. Fixes #29691. Props captaintheme
Built from https://develop.svn.wordpress.org/trunk@30028 git-svn-id: http://core.svn.wordpress.org/trunk@30028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f74f20ab7f
commit
1c9bc93735
@ -461,6 +461,16 @@ do_action( 'edit_form_top', $post ); ?>
|
|||||||
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
|
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
|
||||||
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
|
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Fires before the permalink field.
|
||||||
|
*
|
||||||
|
* @since 4.1.0
|
||||||
|
*
|
||||||
|
* @param WP_Post $post Post object.
|
||||||
|
*/
|
||||||
|
do_action( 'edit_form_before_permalink', $post );
|
||||||
|
?>
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<?php
|
<?php
|
||||||
$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';
|
$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30027';
|
$wp_version = '4.1-alpha-30028';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user