Changeset 52958
- Timestamp:
- 03/20/2022 02:55:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r52204 r52958 104 104 * @since 0.71 105 105 * 106 * @param int $cat_ IDCategory ID.106 * @param int $cat_id Category ID. 107 107 * @return string|WP_Error Category name on success, WP_Error on failure. 108 108 */ 109 function get_the_category_by_ID( $cat_ ID) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid110 $cat_ ID = (int) $cat_ID;111 $category = get_term( $cat_ ID);109 function get_the_category_by_ID( $cat_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 110 $cat_id = (int) $cat_id; 111 $category = get_term( $cat_id ); 112 112 113 113 if ( is_wp_error( $category ) ) {
Note: See TracChangeset
for help on using the changeset viewer.