mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
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:
@@ -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 ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user