Changeset 38951 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/26/2016 08:06:43 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r38925 r38951 67 67 'edit_item' => __( 'Edit Media' ), 68 68 'view_item' => __( 'View Attachment Page' ), 69 'attributes' => __( 'Attachment Attributes' ), 69 70 ), 70 71 'public' => true, … … 1327 1328 * - `all_items` - Label to signify all items in a submenu link. Default is 'All Posts' / 'All Pages'. 1328 1329 * - `archives` - Label for archives in nav menus. Default is 'Post Archives' / 'Page Archives'. 1330 * - `attributes` - Label for the attributes meta box. Default is 'Post Attributes' / 'Page Attributes'. 1329 1331 * - `insert_into_item` - Label for the media frame button. Default is 'Insert into post' / 'Insert into page'. 1330 1332 * - `uploaded_to_this_item` - Label for the media frame filter. Default is 'Uploaded to this post' / … … 1352 1354 * `items_list_navigation`, and `items_list` labels. 1353 1355 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object. 1354 * @since 4.7.0 Added the `view_items` label.1356 * @since 4.7.0 Added the `view_items` and `attributes` labels. 1355 1357 * 1356 1358 * @access private … … 1375 1377 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ), 1376 1378 'archives' => array( __( 'Post Archives' ), __( 'Page Archives' ) ), 1379 'attributes' => array( __( 'Post Attributes' ), __( 'Page Attributes' ) ), 1377 1380 'insert_into_item' => array( __( 'Insert into post' ), __( 'Insert into page' ) ), 1378 1381 'uploaded_to_this_item' => array( __( 'Uploaded to this post' ), __( 'Uploaded to this page' ) ), … … 3394 3397 $post = get_post( $post_ID ); 3395 3398 3396 if ( ! empty( $postarr['page_template'] ) && 'page' == $data['post_type']) {3399 if ( ! empty( $postarr['page_template'] ) ) { 3397 3400 $post->page_template = $postarr['page_template']; 3398 3401 $page_templates = wp_get_theme()->get_page_templates( $post );
Note: See TracChangeset
for help on using the changeset viewer.