PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.2
WebberZone Top 10 — Popular Posts v4.5.2
4.5.2 4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 All 118 releases
← All changes | includes/frontend/class-display.php +3 -3 4.4.0 → 4.5.2 View file →
@@ -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 ) {