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
File: functions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/* Define Theme Vars */
[2] Fix | Delete
define( 'HERALD_THEME_VERSION', '2.2.4' );
[3] Fix | Delete
[4] Fix | Delete
/* Define content width */
[5] Fix | Delete
if ( !isset( $content_width ) ) {
[6] Fix | Delete
$content_width = 1320;
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
/* Localization */
[10] Fix | Delete
load_theme_textdomain( 'herald', get_parent_theme_file_path( '/languages' ) );
[11] Fix | Delete
[12] Fix | Delete
/* After theme setup main hook */
[13] Fix | Delete
add_action( 'after_setup_theme', 'herald_theme_setup' );
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* After Theme Setup
[17] Fix | Delete
*
[18] Fix | Delete
* Callback for after_theme_setup hook
[19] Fix | Delete
*
[20] Fix | Delete
* @return void
[21] Fix | Delete
* @since 1.0
[22] Fix | Delete
*/
[23] Fix | Delete
[24] Fix | Delete
function herald_theme_setup() {
[25] Fix | Delete
[26] Fix | Delete
/* Add thumbnails support */
[27] Fix | Delete
add_theme_support( 'post-thumbnails' );
[28] Fix | Delete
[29] Fix | Delete
/* Add theme support for title tag (since wp 4.1) */
[30] Fix | Delete
add_theme_support( 'title-tag' );
[31] Fix | Delete
[32] Fix | Delete
/* Add image sizes */
[33] Fix | Delete
$image_sizes = herald_get_image_sizes();
[34] Fix | Delete
[35] Fix | Delete
if ( !empty( $image_sizes ) ) {
[36] Fix | Delete
foreach ( $image_sizes as $id => $size ) {
[37] Fix | Delete
add_image_size( $id, $size['args']['w'], $size['args']['h'], $size['args']['crop'] );
[38] Fix | Delete
}
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
/* Add post formats support */
[42] Fix | Delete
add_theme_support( 'post-formats', array(
[43] Fix | Delete
'audio', 'gallery', 'image', 'video'
[44] Fix | Delete
) );
[45] Fix | Delete
[46] Fix | Delete
/* Support for HTML5 */
[47] Fix | Delete
add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );
[48] Fix | Delete
[49] Fix | Delete
/* Automatic Feed Links */
[50] Fix | Delete
add_theme_support( 'automatic-feed-links' );
[51] Fix | Delete
[52] Fix | Delete
/* Declare WooCommerce support */
[53] Fix | Delete
add_theme_support( 'woocommerce' );
[54] Fix | Delete
add_theme_support( 'wc-product-gallery-zoom' );
[55] Fix | Delete
add_theme_support( 'wc-product-gallery-lightbox' );
[56] Fix | Delete
add_theme_support( 'wc-product-gallery-slider' );
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
/* Load editor styles */
[60] Fix | Delete
add_theme_support( 'editor-styles' );
[61] Fix | Delete
[62] Fix | Delete
/* Load editor styles */
[63] Fix | Delete
if ( is_admin() ) {
[64] Fix | Delete
herald_load_editor_styles();
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
/* Support for alignwide elements */
[68] Fix | Delete
add_theme_support( 'align-wide' );
[69] Fix | Delete
[70] Fix | Delete
/* Support for responsive embeds */
[71] Fix | Delete
add_theme_support( 'responsive-embeds' );
[72] Fix | Delete
[73] Fix | Delete
/* Support for predefined colors in editor */
[74] Fix | Delete
add_theme_support( 'editor-color-palette', herald_get_editor_colors() );
[75] Fix | Delete
[76] Fix | Delete
/* Support for predefined font-sizes in editor */
[77] Fix | Delete
add_theme_support( 'editor-font-sizes', herald_get_editor_font_sizes() );
[78] Fix | Delete
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
/* Load frontend scripts */
[82] Fix | Delete
include_once get_parent_theme_file_path( '/core/enqueue.php' );
[83] Fix | Delete
[84] Fix | Delete
/* Helpers and utility functions */
[85] Fix | Delete
include_once get_parent_theme_file_path( '/core/helpers.php' );
[86] Fix | Delete
[87] Fix | Delete
/* Default settings */
[88] Fix | Delete
include_once get_parent_theme_file_path( '/core/default-options.php' );
[89] Fix | Delete
[90] Fix | Delete
/* Module-specific functions */
[91] Fix | Delete
include_once get_parent_theme_file_path( '/core/modules.php' );
[92] Fix | Delete
[93] Fix | Delete
/* Template functions */
[94] Fix | Delete
include_once get_parent_theme_file_path( '/core/template-functions.php' );
[95] Fix | Delete
[96] Fix | Delete
/* Menus */
[97] Fix | Delete
include_once get_parent_theme_file_path( '/core/menus.php' );
[98] Fix | Delete
[99] Fix | Delete
/* Sidebars */
[100] Fix | Delete
include_once get_parent_theme_file_path( '/core/sidebars.php' );
[101] Fix | Delete
[102] Fix | Delete
/* Extensions (hooks and filters to add/modify specific features ) */
[103] Fix | Delete
include_once get_parent_theme_file_path( '/core/extensions.php' );
[104] Fix | Delete
[105] Fix | Delete
/* Add support for our mega menu */
[106] Fix | Delete
include_once get_parent_theme_file_path( '/core/mega-menu.php' );
[107] Fix | Delete
[108] Fix | Delete
if ( is_admin() ) {
[109] Fix | Delete
[110] Fix | Delete
/* Admin helpers and utility functions */
[111] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/helpers.php' );
[112] Fix | Delete
[113] Fix | Delete
/* Load admin scripts */
[114] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/enqueue.php' );
[115] Fix | Delete
[116] Fix | Delete
/* Theme Options */
[117] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/options.php' );
[118] Fix | Delete
[119] Fix | Delete
/* Include plugins - TGM Init */
[120] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/plugins.php' );
[121] Fix | Delete
[122] Fix | Delete
/* Include AJAX action handlers */
[123] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/ajax.php' );
[124] Fix | Delete
[125] Fix | Delete
/* Extensions ( hooks and filters to add/modify specific features ) */
[126] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/extensions.php' );
[127] Fix | Delete
[128] Fix | Delete
/* Custom metaboxes */
[129] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/metaboxes.php' );
[130] Fix | Delete
[131] Fix | Delete
/* Demo importer panel */
[132] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/demo-importer.php' );
[133] Fix | Delete
}
[134] Fix | Delete
[135] Fix | Delete
?>
[136] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function