Changeset 15590 for trunk/wp-includes/post.php
- Timestamp:
- 09/07/2010 11:21:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15589 r15590 626 626 * @see get_post_statuses 627 627 * 628 * @param string $post_ typeThe name of a registered post status628 * @param string $post_status The name of a registered post status 629 629 * @return object A post status object 630 630 */ … … 670 670 * @see get_post_type_object 671 671 * 672 * @param string $post Post type name672 * @param string $post_type Post type name 673 673 * @return bool Whether post type is hierarchical. 674 674 */ … … 687 687 * @uses get_post_type_object() 688 688 * 689 * @param string Post type name689 * @param string $post_type Post type name 690 690 * @return bool Whether post type is registered. 691 691 */ … … 1145 1145 * 1146 1146 * @param int $post_id Post ID. 1147 * @param string $ key Metadata name.1148 * @param mixed $ value Metadata value.1147 * @param string $meta_key Metadata name. 1148 * @param mixed $meta_value Metadata value. 1149 1149 * @param bool $unique Optional, default is false. Whether the same key should not be added. 1150 1150 * @return bool False for failure. True for success. … … 1212 1212 * 1213 1213 * @param int $post_id Post ID. 1214 * @param string $ key Metadata key.1215 * @param mixed $ value Metadata value.1214 * @param string $meta_key Metadata key. 1215 * @param mixed $meta_value Metadata value. 1216 1216 * @param mixed $prev_value Optional. Previous value to check before removing. 1217 1217 * @return bool False on failure, true if success. … … 1651 1651 * @since 2.5.0 1652 1652 * 1653 * @param string|array $ mime_types List of mime types or comma separated string of mime types.1653 * @param string|array $post_mime_types List of mime types or comma separated string of mime types. 1654 1654 * @param string $table_alias Optional. Specify a table alias, if needed. 1655 1655 * @return string The SQL AND clause for mime searching. … … 1810 1810 * @uses wp_delete_post() if trash is disabled 1811 1811 * 1812 * @param int $post id Post ID.1812 * @param int $post_id Post ID. 1813 1813 * @return mixed False on failure 1814 1814 */ … … 1845 1845 * @uses do_action() on 'untrashed_post' after undeletion 1846 1846 * 1847 * @param int $post id Post ID.1847 * @param int $post_id Post ID. 1848 1848 * @return mixed False on failure 1849 1849 */ … … 2965 2965 * @since 2.0.0 2966 2966 * 2967 * @param array $p osts Posts array.2968 * @param int $pa rentParent page ID.2967 * @param array $pages Posts array. 2968 * @param int $page_id Parent page ID. 2969 2969 * @return array A list arranged by hierarchy. Children immediately follow their parents. 2970 2970 */ 2971 2971 function &get_page_hierarchy( &$pages, $page_id = 0 ) { 2972 2973 2972 if ( empty( $pages ) ) { 2974 2973 $result = array(); … … 2978 2977 $children = array(); 2979 2978 foreach ( (array) $pages as $p ) { 2980 2981 2979 $parent_id = intval( $p->post_parent ); 2982 2980 $children[ $parent_id ][] = $p; 2983 2984 2985 2986 2981 } 2982 2983 $result = array(); 2984 _page_traverse_name( $page_id, $children, $result ); 2987 2985 2988 2986 return $result; … … 2995 2993 */ 2996 2994 function _page_traverse_name( $page_id, &$children, &$result ){ 2997 2998 2995 if ( isset( $children[ $page_id ] ) ){ 2999 3000 2996 foreach( (array)$children[ $page_id ] as $child ) { 3001 3002 2997 $result[ $child->ID ] = $child->post_name; 3003 2998 _page_traverse_name( $child->ID, $children, $result ); … … 3278 3273 * @param string|array $object Arguments to override defaults. 3279 3274 * @param string $file Optional filename. 3280 * @param int $p ost_parent Parent post ID.3275 * @param int $parent Parent post ID. 3281 3276 * @return int Attachment ID. 3282 3277 */ … … 3428 3423 * @uses do_action() Calls 'delete_attachment' hook on Attachment ID. 3429 3424 * 3430 * @param int $post id Attachment ID.3425 * @param int $post_id Attachment ID. 3431 3426 * @param bool $force_delete Whether to bypass trash and force deletion. Defaults to false. 3432 3427 * @return mixed False on failure. Post data on success. … … 4646 4641 * 4647 4642 * @param int|object $revision_id Revision ID or revision object. 4648 * @param array $fields Optional. What fields to restore from. Defaults to all. 4649 * @return mixed Null if error, false if no fields to restore, (int) post ID if success. 4643 * @return mixed Null or WP_Error if error, deleted post if success. 4650 4644 */ 4651 4645 function wp_delete_post_revision( $revision_id ) {
Note: See TracChangeset
for help on using the changeset viewer.