Changeset 5736
- Timestamp:
- 05/13/2015 12:25:23 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/functions.php
r5735 r5736 73 73 74 74 /** 75 * Update a posts forum meta ID75 * Update a posts' forum meta ID 76 76 * 77 77 * @since bbPress (r3181) 78 78 * 79 * @param int $post_id The post to update79 * @param int $post_id The post to update 80 80 * @param int $forum_id The forum 81 81 */ … … 92 92 93 93 /** 94 * Update a posts topic meta ID94 * Update a posts' topic meta ID 95 95 * 96 96 * @since bbPress (r3181) 97 97 * 98 * @param int $post_id The post to update99 * @param int $topic_id The forum98 * @param int $post_id The post to update 99 * @param int $topic_id The topic 100 100 */ 101 101 function bbp_update_topic_id( $post_id, $topic_id ) { … … 111 111 112 112 /** 113 * Update a posts reply meta ID113 * Update a posts' reply meta ID 114 114 * 115 115 * @since bbPress (r3181) 116 116 * 117 * @param int $post_id The post to update118 * @param int $reply_id The forum117 * @param int $post_id The post to update 118 * @param int $reply_id The reply 119 119 */ 120 120 function bbp_update_reply_id( $post_id, $reply_id ) { … … 125 125 // Update the post meta reply ID 126 126 update_post_meta( $post_id, '_bbp_reply_id', $reply_id ); 127 128 return $reply_id; 129 } 130 131 /** 132 * Update a posts' reply-to meta ID 133 * 134 * @since bbPress (r5735) 135 * 136 * @param int $post_id The post to update 137 * @param int $reply_id The reply ID 138 */ 139 function bbp_update_reply_to_id( $post_id, $reply_id ) { 140 141 // Allow the reply ID to be updated 'just in time' before save 142 $reply_id = (int) apply_filters( 'bbp_update_reply_to_id', $reply_id, $post_id ); 143 144 // Update the post meta reply ID 145 update_post_meta( $post_id, '_bbp_reply_to', $reply_id ); 127 146 128 147 return $reply_id;
Note: See TracChangeset
for help on using the changeset viewer.