WordPress.org

Make WordPress Core

Ticket #33: 0000033-wp.diff

File 0000033-wp.diff, 2.2 KB (added by joseph, 9 years ago)
  • wp-admin/admin-header.php

    RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin-header.php,v
    retrieving revision 1.24
    diff -u -r1.24 admin-header.php
     
    1414if (!isset($debug))        $debug=0; 
    1515timer_start(); 
    1616 
    17 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1"); 
     17$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 
    1818foreach ($dogs as $catt) { 
    1919    $cache_categories[$catt->cat_ID] = $catt; 
    2020} 
     
    140140<?php 
    141141require('./menu.php'); 
    142142endif; 
    143 ?> 
    144  No newline at end of file 
     143?> 
  • wp-admin/import-greymatter.php

    RCS file: /cvsroot/cafelog/wordpress/wp-admin/import-greymatter.php,v
    retrieving revision 1.15
    diff -u -r1.15 import-greymatter.php
     
    193193                        if (!$result) 
    194194                                die ("Error in posting..."); 
    195195                         
    196                         $sql2 = "SELECT * FROM $wpdb->posts WHERE 1=1 ORDER BY ID DESC LIMIT 1"; 
     196                        $sql2 = "SELECT * FROM $wpdb->posts ORDER BY ID DESC LIMIT 1"; 
    197197                        $result2 = mysql_query($sql2); 
    198198                        $myrow2 = mysql_fetch_array($result2); 
    199199                        $post_ID=$myrow2[0]; 
     
    338338 
    339339} 
    340340 
    341 ?> 
    342  No newline at end of file 
     341?> 
  • wp-includes/functions.php

    RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
    retrieving revision 1.119
    diff -u -r1.119 functions.php
     
    17721772 
    17731773function update_category_cache() { 
    17741774    global $cache_categories, $wpdb; 
    1775     $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1"); 
     1775    $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 
    17761776    foreach ($dogs as $catt) { 
    17771777        $cache_categories[$catt->cat_ID] = $catt; 
    17781778    } 
     
    17951795        do_action('wp_head', ''); 
    17961796} 
    17971797 
    1798 ?> 
    1799  No newline at end of file 
     1798?>