Skip to content

Commit

Permalink
Merge pull request #2559 from semperfiwebdesign/3.0.1
Browse files Browse the repository at this point in the history
3.0.1 to master
  • Loading branch information
michaeltorbert authored Jun 4, 2019
2 parents c0571cc + 948de04 commit 0ff83a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/aioseop_sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3380,7 +3380,7 @@ public function get_prio_from_posts( $posts, $prio_override = false, $freq_overr
$timestamp = mysql2date( 'U', $post->post_modified_gmt );
$pr_info['rss'] = array(
'title' => $title,
'description' => get_the_excerpt( $post ),
'description' => get_post_field( 'post_excerpt', $post->ID ),
'pubDate' => date( 'r', $timestamp ),
'timestamp ' => $timestamp,
'post_type' => $post->post_type,
Expand Down Expand Up @@ -4369,7 +4369,8 @@ public function get_all_post_type_data( $args ) {
),
);
$ex_args['fields'] = 'ids';
$ex_args['posts_per_page'] = $this->max_posts;
// This needs to be -1 so that excluding posts isn't restricted to affect posts to not be excluded properly.
$ex_args['posts_per_page'] = -1;

// Exclude (method) query.
$q_exclude = new WP_Query( $ex_args );
Expand Down

0 comments on commit 0ff83a7

Please sign in to comment.