| @@ -768,9 +768,9 @@ | ||
| 768 | 768 | public static function get_the_author( $args, $result ) { |
| 769 | 769 | |
| 770 | 770 | $author_info = get_userdata( (int) $result->post_author ); |
| 771 | 771 | $author_link = ( false === $author_info ) ? '' : get_author_posts_url( $author_info->ID ); |
| 772 | - $author_name = ( false === $author_info ) ? '' : ucwords( trim( stripslashes( $author_info->display_name ) ) ); | |
| 772 | + $author_name = ( false === $author_info ) ? '' : ucwords( trim( stripslashes( $author_info->display_name ), " \t\n\r\0\x0B" ) ); | |
| 773 | 773 | |
| 774 | 774 | /** |
| 775 | 775 | * Filter the author name. |
| 776 | 776 | * |
| @@ -1167,10 +1167,10 @@ | ||
| 1167 | 1167 | } |
| 1168 | 1168 | |
| 1169 | 1169 | // Exclude page_on_front and page_for_posts. |
| 1170 | 1170 | if ( 'page' === get_option( 'show_on_front' ) && \tptn_get_option( 'exclude_front' ) ) { |
| 1171 | - $page_on_front = get_option( 'page_on_front' ); | |
| 1172 | - $page_for_posts = get_option( 'page_for_posts' ); | |
| 1171 | + $page_on_front = (int) get_option( 'page_on_front' ); | |
| 1172 | + $page_for_posts = (int) get_option( 'page_for_posts' ); | |
| 1173 | 1173 | if ( $page_on_front > 0 ) { |
| 1174 | 1174 | $exclude_post_ids[] = $page_on_front; |
| 1175 | 1175 | } |
| 1176 | 1176 | if ( $page_for_posts > 0 ) { |