WordPress.org

Make WordPress Core

Ticket #50277: 50277.diff

File 50277.diff, 552 bytes (added by stevenlinx, 14 months ago)
  • src/wp-includes/category.php

    diff --git a/src/wp-includes/category.php b/src/wp-includes/category.php
    index 42ac6227f3..d1b4aabc8e 100644
    a b function get_category_by_path( $category_path, $full_match = true, $output = OBJ 
    175175 * @since 2.3.0
    176176 *
    177177 * @param string $slug The category slug.
    178  * @return object Category data object
     178 * @return object|bool Category data object; false if not found
    179179 */
    180180function get_category_by_slug( $slug ) {
    181181        $category = get_term_by( 'slug', $slug, 'category' );