Changeset 46596 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/26/2019 09:07:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46553 r46596 633 633 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 634 634 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 635 * @return array Array of children, where the type of each element is determined by $output parameter. 636 * Empty array on failure. 635 * @return WP_Post[]|int[] Array of post objects or post IDs. 637 636 */ 638 637 function get_children( $args = '', $output = OBJECT ) { … … 1600 1599 * @global array $post_type_meta_caps Used to store meta capabilities. 1601 1600 * 1602 * @param array$capabilities Post type meta capabilities.1601 * @param string[] $capabilities Post type meta capabilities. 1603 1602 */ 1604 1603 function _post_type_meta_capabilities( $capabilities = null ) { … … 4732 4731 * @since 2.0.0 4733 4732 * 4734 * @param array$pung Array of enclosures for the given post.4735 * @param int $post_id Post ID.4733 * @param string[] $pung Array of enclosures for the given post. 4734 * @param int $post_id Post ID. 4736 4735 */ 4737 4736 return apply_filters( 'get_enclosed', $pung, $post_id ); … … 4774 4773 * 4775 4774 * @param int|WP_Post $post_id Post Object or ID 4776 * @ return array4775 * @param string[] List of URLs yet to ping. 4777 4776 */ 4778 4777 function get_to_ping( $post_id ) { … … 4791 4790 * @since 2.0.0 4792 4791 * 4793 * @param array$to_ping List of URLs yet to ping.4792 * @param string[] $to_ping List of URLs yet to ping. 4794 4793 */ 4795 4794 return apply_filters( 'get_to_ping', $to_ping ); … … 5066 5065 * @since 2.0.0 5067 5066 * 5068 * @param array$pages Posts array (passed by reference).5069 * @param int $page_id Optional. Parent page ID. Default 0.5070 * @return array A listarranged by hierarchy. Children immediately follow their parents.5067 * @param WP_Post[] $pages Posts array (passed by reference). 5068 * @param int $page_id Optional. Parent page ID. Default 0. 5069 * @return string[] Array of post names keyed by ID and arranged by hierarchy. Children immediately follow their parents. 5071 5070 */ 5072 5071 function get_page_hierarchy( &$pages, $page_id = 0 ) { … … 5097 5096 * @see _page_traverse_name() 5098 5097 * 5099 * @param int $page_idPage ID.5100 * @param array $childrenParent-children relations (passed by reference).5101 * @param array $result Result(passed by reference).5098 * @param int $page_id Page ID. 5099 * @param array $children Parent-children relations (passed by reference). 5100 * @param string[] $result Array of page names keyed by ID (passed by reference). 5102 5101 */ 5103 5102 function _page_traverse_name( $page_id, &$children, &$result ) { … … 5462 5461 * @since 2.1.0 5463 5462 * 5464 * @param array $pages List of pages to retrieve.5465 * @param array $parsed_argsArray of get_pages() arguments.5463 * @param WP_Post[] $pages Array of page objects. 5464 * @param array $parsed_args Array of get_pages() arguments. 5466 5465 */ 5467 5466 return apply_filters( 'get_pages', $pages, $parsed_args ); … … 6108 6107 6109 6108 /** 6110 * Filters the listof icon directory URIs.6109 * Filters the array of icon directory URIs. 6111 6110 * 6112 6111 * @since 2.5.0 6113 6112 * 6114 * @param array $uris List of icon directory URIs.6113 * @param string[] $uris Array of icon directory URIs keyed by directory absolute path. 6115 6114 */ 6116 6115 $dirs = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) ); … … 7096 7095 * @global wpdb $wpdb WordPress database abstraction object. 7097 7096 * 7098 * @param array$clauses An array including WHERE, GROUP BY, JOIN, ORDER BY,7099 * DISTINCT, fields (SELECT), and LIMITS clauses.7100 * @return array The modifiedclauses.7097 * @param string[] $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, 7098 * DISTINCT, fields (SELECT), and LIMITS clauses. 7099 * @return string[] The modified array of clauses. 7101 7100 */ 7102 7101 function _filter_query_attachment_filenames( $clauses ) {
Note: See TracChangeset
for help on using the changeset viewer.