WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/05/2007 09:16:02 PM (15 years ago)
Author:
ryan
Message:

Bit twiddling. Add type bitfield to categories table. see #3723

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r5179 r5184  
    11<?php
     2
     3define('TAXONOMY_CATEGORY', 1);
     4define('TAXONOMY_TAG', 2);
    25
    36function get_all_category_ids() {
     
    7982            $where .= ' AND category_count > 0';
    8083    } else {
    81         $where .= ' AND ( tag_count = 0 OR ( tag_count != 0 AND ( link_count > 0 OR category_count > 0 ) ) ) ';
     84        $where .= ' AND ( type & ' . TAXONOMY_CATEGORY . ' != 0 ) ';
    8285    }
    8386
Note: See TracChangeset for help on using the changeset viewer.