Make WordPress Core

Ticket #36248: 362481.patch

File 362481.patch, 2.9 KB (added by sebastian.pisula, 8 years ago)
  • wp-includes/general-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    15431543         *
    15441544         * @param string $description Archive description to be displayed.
    15451545         */
    1546         return apply_filters( 'get_the_archive_description', term_description() );
     1546        return apply_filters( 'get_the_archive_description', get_term_description() );
    15471547}
    15481548
    15491549/**
  • wp-includes/category-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    301301 * @return string Category description, available.
    302302 */
    303303function category_description( $category = 0 ) {
    304         return term_description( $category, 'category' );
     304        return get_term_description( $category, 'category' );
    305305}
    306306
    307307/**
     
    11291129 * @return string Tag description, available.
    11301130 */
    11311131function tag_description( $tag = 0 ) {
    1132         return term_description( $tag );
     1132        return get_term_description( $tag );
    11331133}
    11341134
    11351135/**
    11361136 * Retrieve term description.
    11371137 *
    11381138 * @since 2.8.0
     1139 * @since 4.5.0 Rename from `term_description` to `get_term_description`
    11391140 *
    11401141 * @param int $term Optional. Term ID. Will use global term ID by default.
    11411142 * @param string $taxonomy Optional taxonomy name. Defaults to 'post_tag'.
    11421143 * @return string Term description, available.
    11431144 */
    1144 function term_description( $term = 0, $taxonomy = 'post_tag' ) {
     1145function get_term_description( $term = 0, $taxonomy = 'post_tag' ) {
    11451146        if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) {
    11461147                $term = get_queried_object();
    11471148                if ( $term ) {
  • wp-includes/deprecated.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    37503750        $upload_dir = wp_get_upload_dir();
    37513751        return $upload_dir['baseurl'];
    37523752}
     3753
     3754/**
     3755 * Retrieve term description.
     3756 *
     3757 * @since 2.8.0
     3758 *
     3759 * @param int $term Optional. Term ID. Will use global term ID by default.
     3760 * @param string $taxonomy Optional taxonomy name. Defaults to 'post_tag'.
     3761 * @return string Term description, available.
     3762 */
     3763function term_description( $term = 0, $taxonomy = 'post_tag' ) {
     3764        _deprecated_function( __FUNCTION__, '4.5', 'get_term_description()' );
     3765
     3766        return get_term_description( $term, $taxonomy );
     3767}
     3768 No newline at end of file