Changeset 55365 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 02/19/2023 03:03:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r55276 r55365 40 40 * @param string $override_slug The filtered value of the slug (starts as `null` from apply_filter). 41 41 * @param string $slug The original/un-filtered slug (post_name). 42 * @param int $post_ IDPost ID.42 * @param int $post_id Post ID. 43 43 * @param string $post_status No uniqueness checks are made if the post is still draft or pending. 44 44 * @param string $post_type Post type. 45 45 * @return string The original, desired slug. 46 46 */ 47 function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_ ID, $post_status, $post_type ) {47 function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_id, $post_status, $post_type ) { 48 48 if ( 'wp_template' !== $post_type && 'wp_template_part' !== $post_type ) { 49 49 return $override_slug; … … 62 62 */ 63 63 $theme = get_stylesheet(); 64 $terms = get_the_terms( $post_ ID, 'wp_theme' );64 $terms = get_the_terms( $post_id, 'wp_theme' ); 65 65 if ( $terms && ! is_wp_error( $terms ) ) { 66 66 $theme = $terms[0]->name; … … 72 72 'posts_per_page' => 1, 73 73 'no_found_rows' => true, 74 'post__not_in' => array( $post_ ID),74 'post__not_in' => array( $post_id ), 75 75 'tax_query' => array( 76 76 array(
Note: See TracChangeset
for help on using the changeset viewer.