Changeset 37857 for trunk/src/wp-includes/post.php
- Timestamp:
- 06/23/2016 03:51:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r37686 r37857 2170 2170 $stickies[] = $post_id; 2171 2171 2172 update_option('sticky_posts', $stickies); 2172 $updated = update_option( 'sticky_posts', $stickies ); 2173 2174 if ( $updated ) { 2175 /** 2176 * Fires once a post has been added to the sticky list. 2177 * 2178 * @since 4.6.0 2179 * 2180 * @param int $post_id ID of the post that was stuck. 2181 */ 2182 do_action( 'post_stuck', $post_id ); 2183 } 2173 2184 } 2174 2185 … … 2197 2208 array_splice($stickies, $offset, 1); 2198 2209 2199 update_option('sticky_posts', $stickies); 2210 $updated = update_option( 'sticky_posts', $stickies ); 2211 2212 if ( $updated ) { 2213 /** 2214 * Fires once a post has been removed from the sticky list. 2215 * 2216 * @since 4.6.0 2217 * 2218 * @param int $post_id ID of the post that was unstuck. 2219 */ 2220 do_action( 'post_unstuck', $post_id ); 2221 } 2200 2222 } 2201 2223
Note: See TracChangeset
for help on using the changeset viewer.