Changeset 16268
- Timestamp:
- 11/10/2010 12:42:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16263 r16268 1125 1125 * - parent_item_colon - This string isn't used on non-hierarchical types. In hierarchical ones the default is Parent Page: 1126 1126 * 1127 * Above, the first default value is for non-hierarchical post types (like posts) and the second one is for hierarchical post types (like pages .)1127 * Above, the first default value is for non-hierarchical post types (like posts) and the second one is for hierarchical post types (like pages). 1128 1128 * 1129 1129 * @since 3.0.0 … … 1162 1162 if ( !isset( $object->labels['singular_name'] ) && isset( $object->labels['name'] ) ) 1163 1163 $object->labels['singular_name'] = $object->labels['name']; 1164 1165 if ( !isset( $object->labels['menu_name'] ) && isset( $object->labels['name'] ) ) 1166 $object->labels['menu_name'] = $object->labels['name']; 1164 1167 1165 1168 $defaults = array_map( create_function( '$x', $object->hierarchical? 'return $x[1];' : 'return $x[0];' ), $nohier_vs_hier_defaults );
Note: See TracChangeset
for help on using the changeset viewer.