Making WordPress.org

Changeset 5732


Ignore:
Timestamp:
08/02/2017 03:55:19 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Before removing a compat sticky, check if the term exists.

See #2795.

File:
1 edited

Legend:

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

    r5730 r5732  
    518518                        }
    519519
    520                         Stickies_Compat::remove_sticky( $term->term_id, $post->ID );
     520                        if ( $term ) {
     521                            Stickies_Compat::remove_sticky( $term->term_id, $post->ID );
     522                        }
    521523                    }
    522524                }
Note: See TracChangeset for help on using the changeset viewer.