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