Changeset 5735 for trunk/src/includes/core/functions.php
- Timestamp:
- 05/13/2015 12:03:28 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/functions.php
r5659 r5735 83 83 84 84 // Allow the forum ID to be updated 'just in time' before save 85 $forum_id = apply_filters( 'bbp_update_forum_id', $forum_id, $post_id );85 $forum_id = (int) apply_filters( 'bbp_update_forum_id', $forum_id, $post_id ); 86 86 87 87 // Update the post meta forum ID 88 update_post_meta( $post_id, '_bbp_forum_id', (int) $forum_id ); 88 update_post_meta( $post_id, '_bbp_forum_id', $forum_id ); 89 90 return $forum_id; 89 91 } 90 92 … … 100 102 101 103 // Allow the topic ID to be updated 'just in time' before save 102 $topic_id = apply_filters( 'bbp_update_topic_id', $topic_id, $post_id );104 $topic_id = (int) apply_filters( 'bbp_update_topic_id', $topic_id, $post_id ); 103 105 104 106 // Update the post meta topic ID 105 update_post_meta( $post_id, '_bbp_topic_id', (int) $topic_id ); 107 update_post_meta( $post_id, '_bbp_topic_id', $topic_id ); 108 109 return $topic_id; 106 110 } 107 111 … … 117 121 118 122 // Allow the reply ID to be updated 'just in time' before save 119 $reply_id = apply_filters( 'bbp_update_reply_id', $reply_id, $post_id );123 $reply_id = (int) apply_filters( 'bbp_update_reply_id', $reply_id, $post_id ); 120 124 121 125 // Update the post meta reply ID 122 update_post_meta( $post_id, '_bbp_reply_id',(int) $reply_id ); 126 update_post_meta( $post_id, '_bbp_reply_id', $reply_id ); 127 128 return $reply_id; 123 129 } 124 130
Note: See TracChangeset
for help on using the changeset viewer.