Changeset 21792
- Timestamp:
- 09/10/2012 05:00:11 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r19712 r21792 37 37 * @return array List of categories. 38 38 */ 39 function &get_categories( $args = '' ) {39 function get_categories( $args = '' ) { 40 40 $defaults = array( 'taxonomy' => 'category' ); 41 41 $args = wp_parse_args( $args, $defaults ); … … 79 79 * @return mixed Category data in type defined by $output parameter. 80 80 */ 81 function &get_category( $category, $output = OBJECT, $filter = 'raw' ) {81 function get_category( $category, $output = OBJECT, $filter = 'raw' ) { 82 82 $category = get_term( $category, 'category', $output, $filter ); 83 83 if ( is_wp_error( $category ) ) … … 250 250 * @return array List of tags. 251 251 */ 252 function &get_tags( $args = '' ) {252 function get_tags( $args = '' ) { 253 253 $tags = get_terms( 'post_tag', $args ); 254 254 … … 281 281 * @return object|array Return type based on $output value. 282 282 */ 283 function &get_tag( $tag, $output = OBJECT, $filter = 'raw' ) {283 function get_tag( $tag, $output = OBJECT, $filter = 'raw' ) { 284 284 return get_term( $tag, 'post_tag', $output, $filter ); 285 285 } -
trunk/wp-includes/class-oembed.php
r21701 r21792 297 297 * @return WP_oEmbed object. 298 298 */ 299 function &_wp_oembed_get_object() {299 function _wp_oembed_get_object() { 300 300 static $wp_oembed; 301 301 -
trunk/wp-includes/comment.php
r21599 r21792 128 128 * @return object|array|null Depends on $output value. 129 129 */ 130 function &get_comment(&$comment, $output = OBJECT) {130 function get_comment(&$comment, $output = OBJECT) { 131 131 global $wpdb; 132 132 $null = null; … … 724 724 * @return array Array of comments keyed by comment_type. 725 725 */ 726 function &separate_comments(&$comments) {726 function separate_comments(&$comments) { 727 727 $comments_by_type = array('comment' => array(), 'trackback' => array(), 'pingback' => array(), 'pings' => array()); 728 728 $count = count($comments); -
trunk/wp-includes/http.php
r20794 r21792 20 20 * @return WP_Http HTTP Transport object. 21 21 */ 22 function &_wp_http_get_object() {22 function _wp_http_get_object() { 23 23 static $http; 24 24 -
trunk/wp-includes/l10n.php
r21109 r21792 494 494 * @return object A Translation instance 495 495 */ 496 function &get_translations_for_domain( $domain ) {496 function get_translations_for_domain( $domain ) { 497 497 global $l10n; 498 498 if ( !isset( $l10n[$domain] ) ) { -
trunk/wp-includes/pomo/mo.php
r19072 r21792 216 216 * 0x00 as a plural translations separator 217 217 */ 218 function &make_entry($original, $translation) {218 function make_entry($original, $translation) { 219 219 $entry = new Translation_Entry(); 220 220 // look for context -
trunk/wp-includes/post.php
r21783 r21792 3371 3371 * @return array 3372 3372 */ 3373 function &get_page_children($page_id, $pages) {3373 function get_page_children($page_id, $pages) { 3374 3374 $page_list = array(); 3375 3375 foreach ( (array) $pages as $page ) { … … 3395 3395 * @return array A list arranged by hierarchy. Children immediately follow their parents. 3396 3396 */ 3397 function &get_page_hierarchy( &$pages, $page_id = 0 ) {3397 function get_page_hierarchy( &$pages, $page_id = 0 ) { 3398 3398 if ( empty( $pages ) ) { 3399 3399 $result = array(); … … 3463 3463 * @return array List of pages matching defaults or $args 3464 3464 */ 3465 function &get_pages($args = '') {3465 function get_pages($args = '') { 3466 3466 global $wpdb; 3467 3467 … … 4951 4951 * @return mixed Null if error or post object if success 4952 4952 */ 4953 function &wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') {4953 function wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') { 4954 4954 $null = null; 4955 4955 if ( !$revision = get_post( $post, OBJECT, $filter ) ) -
trunk/wp-includes/query.php
r21776 r21792 87 87 * @return array List of posts 88 88 */ 89 function &query_posts($query) {89 function query_posts($query) { 90 90 unset($GLOBALS['wp_query']); 91 91 $GLOBALS['wp_query'] = new WP_Query(); … … 1917 1917 * @return array List of posts. 1918 1918 */ 1919 function &get_posts() {1919 function get_posts() { 1920 1920 global $wpdb, $user_ID, $_wp_using_ext_object_cache; 1921 1921 … … 2937 2937 * @return array List of posts. 2938 2938 */ 2939 function &query( $query ) {2939 function query( $query ) { 2940 2940 $this->init(); 2941 2941 $this->query = $this->query_vars = wp_parse_args( $query ); -
trunk/wp-includes/taxonomy.php
r21788 r21792 862 862 * exist then WP_Error will be returned. 863 863 */ 864 function &get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') {864 function get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') { 865 865 global $wpdb; 866 866 $null = null; … … 1179 1179 * @return array|WP_Error List of Term Objects and their children. Will return WP_Error, if any of $taxonomies do not exist. 1180 1180 */ 1181 function &get_terms($taxonomies, $args = '') {1181 function get_terms($taxonomies, $args = '') { 1182 1182 global $wpdb; 1183 1183 $empty_array = array(); … … 2638 2638 * @return bool|array Empty array if $terms found, but not $taxonomy. False if nothing is in cache for $taxonomy and $id. 2639 2639 */ 2640 function &get_object_term_cache($id, $taxonomy) {2640 function get_object_term_cache($id, $taxonomy) { 2641 2641 $cache = wp_cache_get($id, "{$taxonomy}_relationships"); 2642 2642 return $cache; … … 2784 2784 * @return array The subset of $terms that are descendants of $term_id. 2785 2785 */ 2786 function &_get_term_children($term_id, $terms, $taxonomy) {2786 function _get_term_children($term_id, $terms, $taxonomy) { 2787 2787 $empty_array = array(); 2788 2788 if ( empty($terms) )
Note: See TracChangeset
for help on using the changeset viewer.