[wp-meta] [Making WordPress.org] #4027: Support posts which have been closed to replies, and have no replies, should be noindex'd

Making WordPress.org noreply at wordpress.org
Thu Jan 31 20:06:58 UTC 2019


#4027: Support posts which have been closed to replies, and have no replies,
should be noindex'd
----------------------------+-----------------------
 Reporter:  jonoaldersonwp  |       Owner:  dd32
     Type:  defect          |      Status:  reopened
 Priority:  lowest          |   Milestone:
Component:  Support Forums  |  Resolution:
 Keywords:  seo             |
----------------------------+-----------------------
Changes (by joostdevalk):

 * keywords:   => seo
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 The logic here was apparently implemented slightly wrong, good catch by
 @elrae:

 https://wordpress.slack.com/archives/C02QB8GMM/p1548964937633400

 > the logic implemented is posted more than 1 year ago _or_ closed and no
 replies
 > basically line 46 needs to be:

 {{{
 ( (time() - get_post_time( 'U', true, $post ) > YEAR_IN_SECONDS) && !
 bbp_get_topic_reply_count( $post->ID, true ) )
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4027#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list