Make WordPress Core


Ignore:
Timestamp:
09/10/2012 05:00:11 PM (13 years ago)
Author:
ryan
Message:

Remove unnecessary return by refs. Props wonderboymusic. fixes #21839

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r21788 r21792  
    862862 * exist then WP_Error will be returned.
    863863 */
    864 function &get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') {
     864function get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') {
    865865    global $wpdb;
    866866    $null = null;
     
    11791179 * @return array|WP_Error List of Term Objects and their children. Will return WP_Error, if any of $taxonomies do not exist.
    11801180 */
    1181 function &get_terms($taxonomies, $args = '') {
     1181function get_terms($taxonomies, $args = '') {
    11821182    global $wpdb;
    11831183    $empty_array = array();
     
    26382638 * @return bool|array Empty array if $terms found, but not $taxonomy. False if nothing is in cache for $taxonomy and $id.
    26392639 */
    2640 function &get_object_term_cache($id, $taxonomy) {
     2640function get_object_term_cache($id, $taxonomy) {
    26412641    $cache = wp_cache_get($id, "{$taxonomy}_relationships");
    26422642    return $cache;
     
    27842784 * @return array The subset of $terms that are descendants of $term_id.
    27852785 */
    2786 function &_get_term_children($term_id, $terms, $taxonomy) {
     2786function _get_term_children($term_id, $terms, $taxonomy) {
    27872787    $empty_array = array();
    27882788    if ( empty($terms) )
Note: See TracChangeset for help on using the changeset viewer.