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/wp-conte.../plugins/themify-.../includes/dynamic-...
File: PostTitle.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Themify Builder Pro
[2] Fix | Delete
* @link https://themify.me/
[3] Fix | Delete
*/
[4] Fix | Delete
class Tbp_Dynamic_Item_PostTitle extends Tbp_Dynamic_Item {
[5] Fix | Delete
[6] Fix | Delete
function get_category() {
[7] Fix | Delete
return 'post';
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
function get_type() {
[11] Fix | Delete
return array( 'text', 'textarea', 'wp_editor' );
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
function get_label() {
[15] Fix | Delete
return __( 'Post Title', 'tbp' );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
function get_value( $args = array() ) {
[19] Fix | Delete
if(empty($args['post_id'])){
[20] Fix | Delete
$the_query = Tbp_Utils::get_actual_query();
[21] Fix | Delete
if($the_query===null || $the_query->have_posts()){
[22] Fix | Delete
if($the_query!==null){
[23] Fix | Delete
$the_query->the_post();
[24] Fix | Delete
}
[25] Fix | Delete
$value = get_the_title();
[26] Fix | Delete
}
[27] Fix | Delete
if($the_query!==null){
[28] Fix | Delete
wp_reset_postdata();
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
else{
[32] Fix | Delete
$value = get_the_title( $args['post_id'] );
[33] Fix | Delete
}
[34] Fix | Delete
return $value;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
function get_options() {
[38] Fix | Delete
return array(
[39] Fix | Delete
array(
[40] Fix | Delete
'label' => __( 'Post ID', 'tbp' ),
[41] Fix | Delete
'id' => 'post_id',
[42] Fix | Delete
'type' => 'number',
[43] Fix | Delete
'help' => __( 'Leave empty to get the data from current post in the loop.', 'tbp' ),
[44] Fix | Delete
),
[45] Fix | Delete
);
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function