[wp-hackers] code clean-up day?

Scott Merrill skippy at skippy.net
Sat Feb 19 16:36:26 GMT 2005


While working on my subscribe2 plugin I needed to allow certain 
categories to bypass the email notification that my plugin generates. 
Naively, perhaps, I looked first at get_postdata(), which contains the line:
    'Category' => $a_post->post_category,

Yet all my posts were showing up with category = 0, regardless of which 
category I had assigned them.  Indeed, the database contained 0 for all 
posts.  Off to mosquito I went, and found this bugnote, filed against 
1.2, and closed in mid December:
    http://mosquito.wordpress.org/view.php?id=239

Matt says
"Nothing should be using that column anymore, now all category 
information should be in the post2cat table."

Can we organize some kind of "code clean-up day"?  Not a "bug day" to 
fix bugs, as such, but to remove all the cruft of this sort that gets 
left behind as features mature?  I'm sure others have been aggravated by 
this sort of thing, too, and it would be a great opportunity to make WP 
even leaner and meaner.

Thanks!
Scott

-- 
skippy at skippy.net | http://skippy.net/

gpg --keyserver pgp.mit.edu --recv-keys 9CFA4B35
506C F8BB 17AE 8A05 0B49  3544 476A 7DEC 9CFA 4B35


More information about the hackers mailing list