Changeset 6529 for trunk/src/includes/replies/functions.php
- Timestamp:
- 06/12/2017 05:41:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r6526 r6529 964 964 if ( empty( $topic_id ) ) { 965 965 $topic_id = bbp_get_reply_topic_id( $reply_id ); 966 967 // Make every effort to get topic id968 // https://bbpress.trac.wordpress.org/ticket/2529969 if ( empty( $topic_id ) && ( current_filter() === 'bbp_deleted_reply' ) ) {970 $topic_id = get_post_field( 'post_parent', $reply_id );971 }972 966 } 973 967 … … 2065 2059 * Called after deleting a reply 2066 2060 * 2061 * @since 2.0.0 bbPress (r2993) 2062 * 2067 2063 * @uses bbp_get_reply_id() To get the reply id 2068 2064 * @uses bbp_is_reply() To check if the passed id is a reply … … 2082 2078 * Called after trashing a reply 2083 2079 * 2080 * @since 2.0.0 bbPress (r2993) 2081 * 2084 2082 * @uses bbp_get_reply_id() To get the reply id 2085 2083 * @uses bbp_is_reply() To check if the passed id is a reply … … 2098 2096 /** 2099 2097 * Called after untrashing (restoring) a reply 2098 * 2099 * @since 2.0.0 bbPress (r2993) 2100 2100 * 2101 2101 * @uses bbp_get_reply_id() To get the reply id
Note: See TracChangeset
for help on using the changeset viewer.