Changeset 44454 for trunk/src/wp-includes/post.php
- Timestamp:
- 01/08/2019 03:46:58 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r44347 r44454 4118 4118 } 4119 4119 4120 /** 4121 * Filters the post slug before it is generated to be unique. 4122 * 4123 * Returning a non-null value will short-circuit the 4124 * unique slug generation, returning the passed value instead. 4125 * 4126 * @since 5.1.0 4127 * 4128 * @param string $override_slug Short-circuit return value. 4129 * @param string $slug The desired slug (post_name). 4130 * @param int $post_ID Post ID. 4131 * @param string $post_status The post status. 4132 * @param string $post_type Post type. 4133 * @param int $post_parent Post parent ID. 4134 */ 4135 $override_slug = apply_filters( 'pre_wp_unique_post_slug', null, $slug, $post_ID, $post_status, $post_type, $post_parent ); 4136 if ( null !== $override_slug ) { 4137 return $override_slug; 4138 } 4139 4120 4140 global $wpdb, $wp_rewrite; 4121 4141
Note: See TracChangeset
for help on using the changeset viewer.