first pass on optional global terms, see #12589

git-svn-id: https://develop.svn.wordpress.org/trunk@13715 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick
2010-03-16 17:17:55 +00:00
parent 586b69b6f6
commit 9fe9b2390f
8 changed files with 57 additions and 22 deletions
+3
View File
@@ -1210,6 +1210,9 @@ function fix_import_form_size( $size ) {
function global_terms( $term_id, $deprecated = '' ) {
global $wpdb;
if ( !global_terms_enabled() )
return $term_id;
$term_id = intval( $term_id );
$c = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->terms WHERE term_id = %d", $term_id ) );