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/clone/wp-inclu...
File: post-template.php
foreach ( $revisions as $revision ) {
[2000] Fix | Delete
if ( ! current_user_can( 'read_post', $revision->ID ) ) {
[2001] Fix | Delete
continue;
[2002] Fix | Delete
}
[2003] Fix | Delete
[2004] Fix | Delete
$is_autosave = wp_is_post_autosave( $revision );
[2005] Fix | Delete
if ( ( 'revision' === $type && $is_autosave ) || ( 'autosave' === $type && ! $is_autosave ) ) {
[2006] Fix | Delete
continue;
[2007] Fix | Delete
}
[2008] Fix | Delete
[2009] Fix | Delete
$rows .= "\t<li>" . wp_post_revision_title_expanded( $revision ) . "</li>\n";
[2010] Fix | Delete
}
[2011] Fix | Delete
[2012] Fix | Delete
echo "<div class='hide-if-js'><p>" . __( 'JavaScript must be enabled to use this feature.' ) . "</p></div>\n";
[2013] Fix | Delete
[2014] Fix | Delete
echo "<ul class='post-revisions hide-if-no-js'>\n";
[2015] Fix | Delete
echo $rows;
[2016] Fix | Delete
echo '</ul>';
[2017] Fix | Delete
}
[2018] Fix | Delete
[2019] Fix | Delete
/**
[2020] Fix | Delete
* Retrieves the parent post object for the given post.
[2021] Fix | Delete
*
[2022] Fix | Delete
* @since 5.7.0
[2023] Fix | Delete
*
[2024] Fix | Delete
* @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global $post.
[2025] Fix | Delete
* @return WP_Post|null Parent post object, or null if there isn't one.
[2026] Fix | Delete
*/
[2027] Fix | Delete
function get_post_parent( $post = null ) {
[2028] Fix | Delete
$wp_post = get_post( $post );
[2029] Fix | Delete
return ! empty( $wp_post->post_parent ) ? get_post( $wp_post->post_parent ) : null;
[2030] Fix | Delete
}
[2031] Fix | Delete
[2032] Fix | Delete
/**
[2033] Fix | Delete
* Returns whether the given post has a parent post.
[2034] Fix | Delete
*
[2035] Fix | Delete
* @since 5.7.0
[2036] Fix | Delete
*
[2037] Fix | Delete
* @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global $post.
[2038] Fix | Delete
* @return bool Whether the post has a parent post.
[2039] Fix | Delete
*/
[2040] Fix | Delete
function has_post_parent( $post = null ) {
[2041] Fix | Delete
return (bool) get_post_parent( $post );
[2042] Fix | Delete
}
[2043] Fix | Delete
[2044] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function