: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
<?php if ( ! empty( $active_post_lock ) ) { ?>
<input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>" />
if ( 'draft' !== get_post_status( $post ) ) {
wp_original_referer_field( true, 'previous' );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
* Fires at the beginning of the edit form.
* At this point, the required hidden fields and nonces have already been output.
* @param WP_Post $post Post object.
do_action( 'edit_form_top', $post );
<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
<div id="post-body-content">
<?php if ( post_type_supports( $post_type, 'title' ) ) { ?>
* Filters the title field placeholder text.
* @param string $text Placeholder text. Default 'Add title'.
* @param WP_Post $post Post object.
$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
* Fires before the permalink field in the edit form.
* @param WP_Post $post Post object.
do_action( 'edit_form_before_permalink', $post );
$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html( $post->ID ) : '';
// As of 4.4, the Get Shortlink button is hidden by default.
if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
$shortlink = wp_get_shortlink( $post->ID, 'post' );
if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
'<button type="button" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val());">' .
if ( $post_type_object->public
&& ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) )
$has_sample_permalink = $sample_permalink_html && 'auto-draft' !== $post->post_status;
<div id="edit-slug-box" class="hide-if-no-js">
if ( $has_sample_permalink ) {
echo $sample_permalink_html;
wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
* Fires after the title field.
* @param WP_Post $post Post object.
do_action( 'edit_form_after_title', $post );
if ( post_type_supports( $post_type, 'editor' ) ) {
$_wp_editor_expand_class = '';
if ( $_wp_editor_expand ) {
$_wp_editor_expand_class = ' wp-editor-expand';
<div id="postdivrich" class="postarea<?php echo $_wp_editor_expand_class; ?>">
'_content_editor_dfw' => $_content_editor_dfw,
'drag_drop_upload' => true,
'tabfocus_elements' => 'content-html,save-post',
'wp_autoresize_on' => $_wp_editor_expand,
'add_unload_trigger' => false,
'wp_keep_scroll_position' => ! $is_IE,
<table id="post-status-info"><tbody><tr>
<td id="wp-word-count" class="hide-if-no-js">
/* translators: %s: Number of words. */
'<span class="word-count">0</span>'
<td class="autosave-info">
<span class="autosave-message"> </span>
if ( 'auto-draft' !== $post->post_status ) {
echo '<span id="last-edit">';
$last_user = get_userdata( get_post_meta( $post->ID, '_edit_last', true ) );
/* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time. */
__( 'Last edited by %1$s on %2$s at %3$s' ),
esc_html( $last_user->display_name ),
mysql2date( __( 'F j, Y' ), $post->post_modified ),
mysql2date( __( 'g:i a' ), $post->post_modified )
/* translators: 1: Post edited date, 2: Post edited time. */
__( 'Last edited on %1$s at %2$s' ),
mysql2date( __( 'F j, Y' ), $post->post_modified ),
mysql2date( __( 'g:i a' ), $post->post_modified )
<td id="content-resize-handle" class="hide-if-no-js"><br /></td>
* Fires after the content editor.
* @param WP_Post $post Post object.
do_action( 'edit_form_after_editor', $post );
</div><!-- /post-body-content -->
<div id="postbox-container-1" class="postbox-container">
if ( 'page' === $post_type ) {
* Fires before meta boxes with 'side' context are output for the 'page' post type.
* The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
* @param WP_Post $post Post object.
do_action( 'submitpage_box', $post );
* Fires before meta boxes with 'side' context are output for all post types other than 'page'.
* The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
* @param WP_Post $post Post object.
do_action( 'submitpost_box', $post );
do_meta_boxes( $post_type, 'side', $post );
<div id="postbox-container-2" class="postbox-container">
do_meta_boxes( null, 'normal', $post );
if ( 'page' === $post_type ) {
* Fires after 'normal' context meta boxes have been output for the 'page' post type.
* @param WP_Post $post Post object.
do_action( 'edit_page_form', $post );
* Fires after 'normal' context meta boxes have been output for all post types other than 'page'.
* @param WP_Post $post Post object.
do_action( 'edit_form_advanced', $post );
do_meta_boxes( null, 'advanced', $post );
* Fires after all meta box sections have been output, before the closing #post-body div.
* @param WP_Post $post Post object.
do_action( 'dbx_post_sidebar', $post );
</div><!-- /post-body -->
</div><!-- /poststuff -->
if ( post_type_supports( $post_type, 'comments' ) ) {
<?php if ( ! wp_is_mobile() && post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}