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: PostAuthorMeta.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_PostAuthorMeta 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 Author Meta', 'tbp' );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
function get_value( $args = array() ) {
[19] Fix | Delete
$value='';
[20] Fix | Delete
if(!empty($args['key'])){
[21] Fix | Delete
$the_query = Tbp_Utils::get_actual_query();
[22] Fix | Delete
if($the_query===null || $the_query->have_posts()){
[23] Fix | Delete
if($the_query!==null){
[24] Fix | Delete
$the_query->the_post();
[25] Fix | Delete
}
[26] Fix | Delete
$user_id = get_post_field( 'post_author' );
[27] Fix | Delete
if(!empty($user_id)){
[28] Fix | Delete
$value = get_user_meta( $user_id, $args['key'], true );
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
if($the_query!==null){
[32] Fix | Delete
wp_reset_postdata();
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
return $value;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
function get_options() {
[39] Fix | Delete
return array(
[40] Fix | Delete
array(
[41] Fix | Delete
'label' => __( 'Meta Key', 'tbp' ),
[42] Fix | Delete
'id' => 'key',
[43] Fix | Delete
'type' => 'text',
[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