[WordPress] Fix Missing argument 2 for wpdb::prepare()

0
134
wp-includes/wp-db.php

Warning: Missing argument 2 for wpdb::prepare(), called in

$tax_array = $wpdb->get_results($wpdb->prepare($sql));

Replace

function prepare( $query, $args ) {
        if ( is_null( $query ) )
            return; 

by

function prepare( $query, $args = null ) {
        if ( is_null( $query ) )
            return;