Making WordPress.org


Ignore:
Timestamp:
03/28/2022 03:01:14 AM (4 years ago)
Author:
dufresnesteven
Message:

Learn: Sync with git WordPress/learn@3c74fe4d1c91d3f7180cbadd81cefe9a1486b700

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php

    r11567 r11703  
    316316            if ( ! empty( $featured ) ) {
    317317                $featured = reset( $featured );
    318                 $query->set( 'post__not_in', array( $featured->ID ) );
     318                if ( ! $query->is_feed() ) {
     319                    $query->set( 'post__not_in', array( $featured->ID ) );
     320                }
    319321            }
    320322        }
Note: See TracChangeset for help on using the changeset viewer.