Changeset 49108 for trunk/tests/phpunit/tests/customize/nav-menus.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r48939 r49108 174 174 'type_label' => 'Post', 175 175 'object' => 'post', 176 'object_id' => intval( $post_id ),177 'url' => get_permalink( intval( $post_id )),176 'object_id' => (int) $post_id, 177 'url' => get_permalink( (int) $post_id ), 178 178 ); 179 179 … … 206 206 'type_label' => 'Page', 207 207 'object' => 'page', 208 'object_id' => intval( $page_id ),209 'url' => get_permalink( intval( $page_id )),208 'object_id' => (int) $page_id, 209 'url' => get_permalink( (int) $page_id ), 210 210 ); 211 211 … … 232 232 'type_label' => 'Post', 233 233 'object' => 'post', 234 'object_id' => intval( $post_id ),235 'url' => get_permalink( intval( $post_id )),234 'object_id' => (int) $post_id, 235 'url' => get_permalink( (int) $post_id ), 236 236 ); 237 237 … … 258 258 'type_label' => 'Category', 259 259 'object' => 'category', 260 'object_id' => intval( $term_id ),261 'url' => get_term_link( intval( $term_id ), 'category' ),260 'object_id' => (int) $term_id, 261 'url' => get_term_link( (int) $term_id, 'category' ), 262 262 ); 263 263 … … 328 328 'type_label' => get_post_type_object( 'post' )->labels->singular_name, 329 329 'object' => 'post', 330 'object_id' => intval( $post_id ),331 'url' => get_permalink( intval( $post_id )),330 'object_id' => (int) $post_id, 331 'url' => get_permalink( (int) $post_id ), 332 332 ); 333 333 wp_set_object_terms( $post_id, $term_ids, 'category' ); … … 352 352 'type_label' => get_taxonomy( 'category' )->labels->singular_name, 353 353 'object' => 'category', 354 'object_id' => intval( $term_id ),355 'url' => get_term_link( intval( $term_id ), 'category' ),354 'object_id' => (int) $term_id, 355 'url' => get_term_link( (int) $term_id, 'category' ), 356 356 ); 357 357 $s = sanitize_text_field( wp_unslash( $term->name ) ); … … 432 432 'type_label' => 'Tests Taxonomy', 433 433 'object' => 'wptests_tax', 434 'object_id' => intval( $term_id ),435 'url' => get_term_link( intval( $term_id ), '' ),434 'object_id' => (int) $term_id, 435 'url' => get_term_link( (int) $term_id, '' ), 436 436 ); 437 437
Note: See TracChangeset
for help on using the changeset viewer.