Changeset 49108 for trunk/src/wp-includes/class-wp-customize-nav-menus.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r48620 r49108 250 250 'type_label' => $post_type_label, 251 251 'object' => $post->post_type, 252 'object_id' => intval( $post->ID ),253 'url' => get_permalink( intval( $post->ID )),252 'object_id' => (int) $post->ID, 253 'url' => get_permalink( (int) $post->ID ), 254 254 ); 255 255 } … … 282 282 'type_label' => get_taxonomy( $term->taxonomy )->labels->singular_name, 283 283 'object' => $term->taxonomy, 284 'object_id' => intval( $term->term_id ),285 'url' => get_term_link( intval( $term->term_id ), $term->taxonomy ),284 'object_id' => (int) $term->term_id, 285 'url' => get_term_link( (int) $term->term_id, $term->taxonomy ), 286 286 ); 287 287 } … … 411 411 'type_label' => $post_type_label, 412 412 'object' => $post->post_type, 413 'object_id' => intval( $post->ID ),414 'url' => get_permalink( intval( $post->ID )),413 'object_id' => (int) $post->ID, 414 'url' => get_permalink( (int) $post->ID ), 415 415 ); 416 416 } … … 437 437 'type_label' => get_taxonomy( $term->taxonomy )->labels->singular_name, 438 438 'object' => $term->taxonomy, 439 'object_id' => intval( $term->term_id ),440 'url' => get_term_link( intval( $term->term_id ), $term->taxonomy ),439 'object_id' => (int) $term->term_id, 440 'url' => get_term_link( (int) $term->term_id, $term->taxonomy ), 441 441 ); 442 442 }
Note: See TracChangeset
for help on using the changeset viewer.