WordPress.org

Make WordPress Core

Ticket #3799: admin-db-returnsame.patch

File admin-db-returnsame.patch, 437 bytes (added by Mikiupdown2, 11 years ago)
  • admin-db.php

     
    8383        global $wpdb;
    8484
    8585        extract($catarr);
    86 
     86        $ccat = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories WHERE cat_name = '$cat_name'"); if ($ccat)
     87     return 'same';
     88       
    8789        if( trim( $cat_name ) == '' )
    88                 return 0;
     90        return 0;
    8991
    9092        $cat_ID = (int) $cat_ID;
    9193