File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3327,8 +3327,8 @@ function feed_links_extra( $args = array() ) {
33273327 $ args = apply_filters ( 'feed_links_extra_args ' , $ args );
33283328
33293329 /*
3330- * Use the queried object rather than relying on the global $post.
3331- * feed_links_extra() should not depend on $GLOBALS[' post'] being set. See #63263
3330+ * The template conditionals are referring to the global query, so the queried object is used rather than
3331+ * depending on a global $ post being set.
33323332 */
33333333 $ queried_object = get_queried_object ();
33343334 if ( is_singular () && $ queried_object instanceof WP_Post ) {
@@ -3352,10 +3352,6 @@ function feed_links_extra( $args = array() ) {
33523352 */
33533353 $ show_post_comments_feed = apply_filters ( 'feed_links_extra_show_post_comments_feed ' , $ show_comments_feed );
33543354
3355- /*
3356- * Pass the explicit post to comments_open() / pings_open() and
3357- * the_title_attribute() to avoid relying on globals.
3358- */
33593355 if ( $ show_post_comments_feed && ( comments_open ( $ post ) || pings_open ( $ post ) || (int ) $ post ->comment_count > 0 ) ) {
33603356 $ title = sprintf (
33613357 $ args ['singletitle ' ],
You can’t perform that action at this time.
0 commit comments