WordPress.org

Make WordPress Core

Ticket #24020: 24020.patch

File 24020.patch, 599 bytes (added by bpetty, 13 months ago)
  • wp-admin/includes/upgrade.php

    diff --git wp-admin/includes/upgrade.php wp-admin/includes/upgrade.php
    index 531d21f..4f9f338 100644
    function upgrade_100() { 
    433433        foreach ($categories as $category) { 
    434434                if ('' == $category->category_nicename) { 
    435435                        $newtitle = sanitize_title($category->cat_name); 
    436                         $wpdb>update( $wpdb->categories, array('category_nicename' => $newtitle), array('cat_ID' => $category->cat_ID) ); 
     436                        $wpdb->update( $wpdb->categories, array('category_nicename' => $newtitle), array('cat_ID' => $category->cat_ID) ); 
    437437                } 
    438438        } 
    439439