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
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/core/admin
File: metaboxes.php
<?php
[0] Fix | Delete
[1] Fix | Delete
add_action( 'load-post.php', 'herald_meta_boxes_setup' );
[2] Fix | Delete
add_action( 'load-post-new.php', 'herald_meta_boxes_setup' );
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* Post and page metaboxes main setup
[6] Fix | Delete
*
[7] Fix | Delete
* @since 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if ( !function_exists( 'herald_meta_boxes_setup' ) ) :
[11] Fix | Delete
function herald_meta_boxes_setup() {
[12] Fix | Delete
global $typenow, $post;
[13] Fix | Delete
[14] Fix | Delete
if ( $typenow == 'page' ) {
[15] Fix | Delete
[16] Fix | Delete
$page_id = isset( $_GET['post'] ) ? $_GET['post'] : 0;
[17] Fix | Delete
[18] Fix | Delete
if ( $page_id !== get_option( 'page_for_posts' ) ) {
[19] Fix | Delete
[20] Fix | Delete
add_action( 'add_meta_boxes', 'herald_load_page_metaboxes' );
[21] Fix | Delete
add_action( 'save_post', 'herald_save_page_metaboxes', 10, 2 );
[22] Fix | Delete
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
if ( $typenow == 'post' ) {
[27] Fix | Delete
add_action( 'add_meta_boxes', 'herald_load_post_metaboxes' );
[28] Fix | Delete
add_action( 'save_post', 'herald_save_post_metaboxes', 10, 2 );
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
endif;
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
/* Include metaboxes */
[35] Fix | Delete
[36] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/metaboxes/page.php' ); //page metaboxes
[37] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/metaboxes/post.php' ); //post metaboxes
[38] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/metaboxes/category.php' ); //category metaboxes
[39] Fix | Delete
[40] Fix | Delete
?>
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function