Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-admin
File: edit-form-advanced.php
<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
[500] Fix | Delete
<?php if ( ! empty( $active_post_lock ) ) { ?>
[501] Fix | Delete
<input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>" />
[502] Fix | Delete
<?php
[503] Fix | Delete
}
[504] Fix | Delete
if ( 'draft' !== get_post_status( $post ) ) {
[505] Fix | Delete
wp_original_referer_field( true, 'previous' );
[506] Fix | Delete
}
[507] Fix | Delete
[508] Fix | Delete
echo $form_extra;
[509] Fix | Delete
[510] Fix | Delete
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
[511] Fix | Delete
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
[512] Fix | Delete
?>
[513] Fix | Delete
[514] Fix | Delete
<?php
[515] Fix | Delete
/**
[516] Fix | Delete
* Fires at the beginning of the edit form.
[517] Fix | Delete
*
[518] Fix | Delete
* At this point, the required hidden fields and nonces have already been output.
[519] Fix | Delete
*
[520] Fix | Delete
* @since 3.7.0
[521] Fix | Delete
*
[522] Fix | Delete
* @param WP_Post $post Post object.
[523] Fix | Delete
*/
[524] Fix | Delete
do_action( 'edit_form_top', $post );
[525] Fix | Delete
?>
[526] Fix | Delete
[527] Fix | Delete
<div id="poststuff">
[528] Fix | Delete
<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
[529] Fix | Delete
<div id="post-body-content">
[530] Fix | Delete
[531] Fix | Delete
<?php if ( post_type_supports( $post_type, 'title' ) ) { ?>
[532] Fix | Delete
<div id="titlediv">
[533] Fix | Delete
<div id="titlewrap">
[534] Fix | Delete
<?php
[535] Fix | Delete
/**
[536] Fix | Delete
* Filters the title field placeholder text.
[537] Fix | Delete
*
[538] Fix | Delete
* @since 3.1.0
[539] Fix | Delete
*
[540] Fix | Delete
* @param string $text Placeholder text. Default 'Add title'.
[541] Fix | Delete
* @param WP_Post $post Post object.
[542] Fix | Delete
*/
[543] Fix | Delete
$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
[544] Fix | Delete
?>
[545] Fix | Delete
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
[546] Fix | Delete
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
[547] Fix | Delete
</div>
[548] Fix | Delete
<?php
[549] Fix | Delete
/**
[550] Fix | Delete
* Fires before the permalink field in the edit form.
[551] Fix | Delete
*
[552] Fix | Delete
* @since 4.1.0
[553] Fix | Delete
*
[554] Fix | Delete
* @param WP_Post $post Post object.
[555] Fix | Delete
*/
[556] Fix | Delete
do_action( 'edit_form_before_permalink', $post );
[557] Fix | Delete
?>
[558] Fix | Delete
<div class="inside">
[559] Fix | Delete
<?php
[560] Fix | Delete
if ( $viewable ) :
[561] Fix | Delete
$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html( $post->ID ) : '';
[562] Fix | Delete
[563] Fix | Delete
// As of 4.4, the Get Shortlink button is hidden by default.
[564] Fix | Delete
if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
[565] Fix | Delete
$shortlink = wp_get_shortlink( $post->ID, 'post' );
[566] Fix | Delete
[567] Fix | Delete
if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
[568] Fix | Delete
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
[569] Fix | Delete
'<button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' .
[570] Fix | Delete
__( 'Get Shortlink' ) .
[571] Fix | Delete
'</button>';
[572] Fix | Delete
}
[573] Fix | Delete
}
[574] Fix | Delete
[575] Fix | Delete
if ( $post_type_object->public
[576] Fix | Delete
&& ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) )
[577] Fix | Delete
) {
[578] Fix | Delete
$has_sample_permalink = $sample_permalink_html && 'auto-draft' !== $post->post_status;
[579] Fix | Delete
?>
[580] Fix | Delete
<div id="edit-slug-box" class="hide-if-no-js">
[581] Fix | Delete
<?php
[582] Fix | Delete
if ( $has_sample_permalink ) {
[583] Fix | Delete
echo $sample_permalink_html;
[584] Fix | Delete
}
[585] Fix | Delete
?>
[586] Fix | Delete
</div>
[587] Fix | Delete
<?php
[588] Fix | Delete
}
[589] Fix | Delete
endif;
[590] Fix | Delete
?>
[591] Fix | Delete
</div>
[592] Fix | Delete
<?php
[593] Fix | Delete
wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
[594] Fix | Delete
?>
[595] Fix | Delete
</div><!-- /titlediv -->
[596] Fix | Delete
<?php
[597] Fix | Delete
}
[598] Fix | Delete
/**
[599] Fix | Delete
* Fires after the title field.
[600] Fix | Delete
*
[601] Fix | Delete
* @since 3.5.0
[602] Fix | Delete
*
[603] Fix | Delete
* @param WP_Post $post Post object.
[604] Fix | Delete
*/
[605] Fix | Delete
do_action( 'edit_form_after_title', $post );
[606] Fix | Delete
[607] Fix | Delete
if ( post_type_supports( $post_type, 'editor' ) ) {
[608] Fix | Delete
$_wp_editor_expand_class = '';
[609] Fix | Delete
if ( $_wp_editor_expand ) {
[610] Fix | Delete
$_wp_editor_expand_class = ' wp-editor-expand';
[611] Fix | Delete
}
[612] Fix | Delete
?>
[613] Fix | Delete
<div id="postdivrich" class="postarea<?php echo $_wp_editor_expand_class; ?>">
[614] Fix | Delete
[615] Fix | Delete
<?php
[616] Fix | Delete
wp_editor(
[617] Fix | Delete
$post->post_content,
[618] Fix | Delete
'content',
[619] Fix | Delete
array(
[620] Fix | Delete
'_content_editor_dfw' => $_content_editor_dfw,
[621] Fix | Delete
'drag_drop_upload' => true,
[622] Fix | Delete
'tabfocus_elements' => 'content-html,save-post',
[623] Fix | Delete
'editor_height' => 300,
[624] Fix | Delete
'tinymce' => array(
[625] Fix | Delete
'resize' => false,
[626] Fix | Delete
'wp_autoresize_on' => $_wp_editor_expand,
[627] Fix | Delete
'add_unload_trigger' => false,
[628] Fix | Delete
'wp_keep_scroll_position' => ! $is_IE,
[629] Fix | Delete
),
[630] Fix | Delete
)
[631] Fix | Delete
);
[632] Fix | Delete
?>
[633] Fix | Delete
<table id="post-status-info"><tbody><tr>
[634] Fix | Delete
<td id="wp-word-count" class="hide-if-no-js">
[635] Fix | Delete
<?php
[636] Fix | Delete
printf(
[637] Fix | Delete
/* translators: %s: Number of words. */
[638] Fix | Delete
__( 'Word count: %s' ),
[639] Fix | Delete
'<span class="word-count">0</span>'
[640] Fix | Delete
);
[641] Fix | Delete
?>
[642] Fix | Delete
</td>
[643] Fix | Delete
<td class="autosave-info">
[644] Fix | Delete
<span class="autosave-message">&nbsp;</span>
[645] Fix | Delete
<?php
[646] Fix | Delete
if ( 'auto-draft' !== $post->post_status ) {
[647] Fix | Delete
echo '<span id="last-edit">';
[648] Fix | Delete
$last_user = get_userdata( get_post_meta( $post->ID, '_edit_last', true ) );
[649] Fix | Delete
if ( $last_user ) {
[650] Fix | Delete
printf(
[651] Fix | Delete
/* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time. */
[652] Fix | Delete
__( 'Last edited by %1$s on %2$s at %3$s' ),
[653] Fix | Delete
esc_html( $last_user->display_name ),
[654] Fix | Delete
mysql2date( __( 'F j, Y' ), $post->post_modified ),
[655] Fix | Delete
mysql2date( __( 'g:i a' ), $post->post_modified )
[656] Fix | Delete
);
[657] Fix | Delete
} else {
[658] Fix | Delete
printf(
[659] Fix | Delete
/* translators: 1: Post edited date, 2: Post edited time. */
[660] Fix | Delete
__( 'Last edited on %1$s at %2$s' ),
[661] Fix | Delete
mysql2date( __( 'F j, Y' ), $post->post_modified ),
[662] Fix | Delete
mysql2date( __( 'g:i a' ), $post->post_modified )
[663] Fix | Delete
);
[664] Fix | Delete
}
[665] Fix | Delete
echo '</span>';
[666] Fix | Delete
}
[667] Fix | Delete
?>
[668] Fix | Delete
</td>
[669] Fix | Delete
<td id="content-resize-handle" class="hide-if-no-js"><br /></td>
[670] Fix | Delete
</tr></tbody></table>
[671] Fix | Delete
[672] Fix | Delete
</div>
[673] Fix | Delete
<?php
[674] Fix | Delete
}
[675] Fix | Delete
/**
[676] Fix | Delete
* Fires after the content editor.
[677] Fix | Delete
*
[678] Fix | Delete
* @since 3.5.0
[679] Fix | Delete
*
[680] Fix | Delete
* @param WP_Post $post Post object.
[681] Fix | Delete
*/
[682] Fix | Delete
do_action( 'edit_form_after_editor', $post );
[683] Fix | Delete
?>
[684] Fix | Delete
</div><!-- /post-body-content -->
[685] Fix | Delete
[686] Fix | Delete
<div id="postbox-container-1" class="postbox-container">
[687] Fix | Delete
<?php
[688] Fix | Delete
[689] Fix | Delete
if ( 'page' === $post_type ) {
[690] Fix | Delete
/**
[691] Fix | Delete
* Fires before meta boxes with 'side' context are output for the 'page' post type.
[692] Fix | Delete
*
[693] Fix | Delete
* The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
[694] Fix | Delete
*
[695] Fix | Delete
* @since 2.5.0
[696] Fix | Delete
*
[697] Fix | Delete
* @param WP_Post $post Post object.
[698] Fix | Delete
*/
[699] Fix | Delete
do_action( 'submitpage_box', $post );
[700] Fix | Delete
} else {
[701] Fix | Delete
/**
[702] Fix | Delete
* Fires before meta boxes with 'side' context are output for all post types other than 'page'.
[703] Fix | Delete
*
[704] Fix | Delete
* The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
[705] Fix | Delete
*
[706] Fix | Delete
* @since 2.5.0
[707] Fix | Delete
*
[708] Fix | Delete
* @param WP_Post $post Post object.
[709] Fix | Delete
*/
[710] Fix | Delete
do_action( 'submitpost_box', $post );
[711] Fix | Delete
}
[712] Fix | Delete
[713] Fix | Delete
[714] Fix | Delete
do_meta_boxes( $post_type, 'side', $post );
[715] Fix | Delete
[716] Fix | Delete
?>
[717] Fix | Delete
</div>
[718] Fix | Delete
<div id="postbox-container-2" class="postbox-container">
[719] Fix | Delete
<?php
[720] Fix | Delete
[721] Fix | Delete
do_meta_boxes( null, 'normal', $post );
[722] Fix | Delete
[723] Fix | Delete
if ( 'page' === $post_type ) {
[724] Fix | Delete
/**
[725] Fix | Delete
* Fires after 'normal' context meta boxes have been output for the 'page' post type.
[726] Fix | Delete
*
[727] Fix | Delete
* @since 1.5.0
[728] Fix | Delete
*
[729] Fix | Delete
* @param WP_Post $post Post object.
[730] Fix | Delete
*/
[731] Fix | Delete
do_action( 'edit_page_form', $post );
[732] Fix | Delete
} else {
[733] Fix | Delete
/**
[734] Fix | Delete
* Fires after 'normal' context meta boxes have been output for all post types other than 'page'.
[735] Fix | Delete
*
[736] Fix | Delete
* @since 1.5.0
[737] Fix | Delete
*
[738] Fix | Delete
* @param WP_Post $post Post object.
[739] Fix | Delete
*/
[740] Fix | Delete
do_action( 'edit_form_advanced', $post );
[741] Fix | Delete
}
[742] Fix | Delete
[743] Fix | Delete
[744] Fix | Delete
do_meta_boxes( null, 'advanced', $post );
[745] Fix | Delete
[746] Fix | Delete
?>
[747] Fix | Delete
</div>
[748] Fix | Delete
<?php
[749] Fix | Delete
/**
[750] Fix | Delete
* Fires after all meta box sections have been output, before the closing #post-body div.
[751] Fix | Delete
*
[752] Fix | Delete
* @since 2.1.0
[753] Fix | Delete
*
[754] Fix | Delete
* @param WP_Post $post Post object.
[755] Fix | Delete
*/
[756] Fix | Delete
do_action( 'dbx_post_sidebar', $post );
[757] Fix | Delete
[758] Fix | Delete
?>
[759] Fix | Delete
</div><!-- /post-body -->
[760] Fix | Delete
<br class="clear" />
[761] Fix | Delete
</div><!-- /poststuff -->
[762] Fix | Delete
</form>
[763] Fix | Delete
</div>
[764] Fix | Delete
[765] Fix | Delete
<?php
[766] Fix | Delete
if ( post_type_supports( $post_type, 'comments' ) ) {
[767] Fix | Delete
wp_comment_reply();
[768] Fix | Delete
}
[769] Fix | Delete
?>
[770] Fix | Delete
[771] Fix | Delete
<?php if ( ! wp_is_mobile() && post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
[772] Fix | Delete
<script type="text/javascript">
[773] Fix | Delete
try{document.post.title.focus();}catch(e){}
[774] Fix | Delete
</script>
[775] Fix | Delete
<?php endif; ?>
[776] Fix | Delete
[777] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function