Make WordPress Core

Ticket #36248: 36248.patch

File 36248.patch, 1.9 KB (added by sebastian.pisula, 9 years ago)
  • wp-includes/category-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    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