Changeset 5737
- Timestamp:
- 05/13/2015 12:34:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r5691 r5737 1035 1035 1036 1036 // Get ancestors 1037 $ancestors = (array)get_post_ancestors( $reply_id );1037 $ancestors = get_post_ancestors( $reply_id ); 1038 1038 1039 1039 // Loop through ancestors … … 1053 1053 1054 1054 // Update the forum ID 1055 bbp_update_forum_id( $reply_id, $forum_id );1056 1057 return apply_filters( 'bbp_update_reply_forum_id', (int)$forum_id, $reply_id );1055 $forum_id = bbp_update_forum_id( $reply_id, $forum_id ); 1056 1057 return (int) apply_filters( 'bbp_update_reply_forum_id', $forum_id, $reply_id ); 1058 1058 } 1059 1059 … … 1102 1102 1103 1103 // Update the topic ID 1104 bbp_update_topic_id( $reply_id, $topic_id );1105 1106 return apply_filters( 'bbp_update_reply_topic_id', (int)$topic_id, $reply_id );1104 $topic_id = bbp_update_topic_id( $reply_id, $topic_id ); 1105 1106 return apply_filters( 'bbp_update_reply_topic_id', $topic_id, $reply_id ); 1107 1107 } 1108 1108 … … 1130 1130 1131 1131 // Update the reply to 1132 if ( ! empty( $reply_to ) ) {1133 update_post_meta( $reply_id, '_bbp_reply_to', $reply_to );1132 if ( ! empty( $reply_to ) ) { 1133 $reply_to = bbp_update_reply_to_id( $reply_id, $reply_to ); 1134 1134 1135 1135 // Delete the reply to … … 1139 1139 } 1140 1140 1141 return (int) apply_filters( 'bbp_update_reply_to', (int)$reply_to, $reply_id );1141 return (int) apply_filters( 'bbp_update_reply_to', $reply_to, $reply_id ); 1142 1142 } 1143 1143 … … 1188 1188 } 1189 1189 1190 return apply_filters( 'bbp_get_reply_ancestors', $ancestors, $reply_id );1190 return (array) apply_filters( 'bbp_get_reply_ancestors', $ancestors, $reply_id ); 1191 1191 } 1192 1192
Note: See TracChangeset
for help on using the changeset viewer.