Making WordPress.org

Changeset 5731


Ignore:
Timestamp:
08/02/2017 03:48:43 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: When archiving a compat topic, make sure it's removed from super stickies list.

See #2795.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-stickies-compat.php

    r5729 r5731  
    4949         */
    5050        public function get_super_stickies( $stickies ) {
     51                // If we're archiving a topic, make sure bbp_unstick_topic() gets the correct list.
     52                if ( isset( $_GET['action'] ) && 'wporg_bbp_archive_post' === $_GET['action'] ) {
     53                        return $stickies;
     54                }
     55
    5156                return array();
    5257        }
Note: See TracChangeset for help on using the changeset viewer.