IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1543 | 1543 | * |
1544 | 1544 | * @param string $description Archive description to be displayed. |
1545 | 1545 | */ |
1546 | | return apply_filters( 'get_the_archive_description', term_description() ); |
| 1546 | return apply_filters( 'get_the_archive_description', get_term_description() ); |
1547 | 1547 | } |
1548 | 1548 | |
1549 | 1549 | /** |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
301 | 301 | * @return string Category description, available. |
302 | 302 | */ |
303 | 303 | function category_description( $category = 0 ) { |
304 | | return term_description( $category, 'category' ); |
| 304 | return get_term_description( $category, 'category' ); |
305 | 305 | } |
306 | 306 | |
307 | 307 | /** |
… |
… |
|
1129 | 1129 | * @return string Tag description, available. |
1130 | 1130 | */ |
1131 | 1131 | function tag_description( $tag = 0 ) { |
1132 | | return term_description( $tag ); |
| 1132 | return get_term_description( $tag ); |
1133 | 1133 | } |
1134 | 1134 | |
1135 | 1135 | /** |
1136 | 1136 | * Retrieve term description. |
1137 | 1137 | * |
1138 | 1138 | * @since 2.8.0 |
| 1139 | * @since 4.5.0 Rename from `term_description` to `get_term_description` |
1139 | 1140 | * |
1140 | 1141 | * @param int $term Optional. Term ID. Will use global term ID by default. |
1141 | 1142 | * @param string $taxonomy Optional taxonomy name. Defaults to 'post_tag'. |
1142 | 1143 | * @return string Term description, available. |
1143 | 1144 | */ |
1144 | | function term_description( $term = 0, $taxonomy = 'post_tag' ) { |
| 1145 | function get_term_description( $term = 0, $taxonomy = 'post_tag' ) { |
1145 | 1146 | if ( ! $term && ( is_tax() || is_tag() || is_category() ) ) { |
1146 | 1147 | $term = get_queried_object(); |
1147 | 1148 | if ( $term ) { |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
3750 | 3750 | $upload_dir = wp_get_upload_dir(); |
3751 | 3751 | return $upload_dir['baseurl']; |
3752 | 3752 | } |
| 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 | */ |
| 3763 | function 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 |