- Timestamp:
- 09/30/2025 05:06:42 PM (8 months ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/customize/nav-menus.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/4.7/tests/phpunit/tests/customize/nav-menus.php
r40098 r60839 171 171 'id' => "post-{$post_id}", 172 172 'title' => 'Post Title', 173 'original_title' => 'Post Title', 173 174 'type' => 'post_type', 174 175 'type_label' => 'Post', 175 176 'object' => 'post', 176 'object_id' => intval( $post_id ),177 'url' => get_permalink( intval( $post_id )),177 'object_id' => (int) $post_id, 178 'url' => get_permalink( (int) $post_id ), 178 179 ); 179 180 … … 198 199 'id' => "post-{$page_id}", 199 200 'title' => 'Page Title', 201 'original_title' => 'Page Title', 200 202 'type' => 'post_type', 201 203 'type_label' => 'Page', 202 204 'object' => 'page', 203 'object_id' => intval( $page_id ),204 'url' => get_permalink( intval( $page_id )),205 'object_id' => (int) $page_id, 206 'url' => get_permalink( (int) $page_id ), 205 207 ); 206 208 … … 224 226 'id' => "post-{$post_id}", 225 227 'title' => 'Post Title', 228 'original_title' => 'Post Title', 226 229 'type' => 'post_type', 227 230 'type_label' => 'Post', 228 231 'object' => 'post', 229 'object_id' => intval( $post_id ),230 'url' => get_permalink( intval( $post_id )),232 'object_id' => (int) $post_id, 233 'url' => get_permalink( (int) $post_id ), 231 234 ); 232 235 … … 250 253 'id' => "term-{$term_id}", 251 254 'title' => 'Term Title', 255 'original_title' => 'Term Title', 252 256 'type' => 'taxonomy', 253 257 'type_label' => 'Category', 254 258 'object' => 'category', 255 'object_id' => intval( $term_id ),256 'url' => get_term_link( intval( $term_id ), 'category' ),259 'object_id' => (int) $term_id, 260 'url' => get_term_link( (int) $term_id, 'category' ), 257 261 ); 258 262
Note: See TracChangeset
for help on using the changeset viewer.