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: PostAuthorName.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_PostAuthorName 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 Name', 'tbp' );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
function get_value( $args = array() ) {
[19] Fix | Delete
$value='';
[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
$user_id = get_post_field( 'post_author');
[26] Fix | Delete
$value = get_the_author_meta( 'display_name', $user_id );
[27] Fix | Delete
}
[28] Fix | Delete
if($the_query!==null){
[29] Fix | Delete
wp_reset_postdata();
[30] Fix | Delete
}
[31] Fix | Delete
return $value;
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function