title: Wordpress - get_terms() returns "invalid taxonomy" (this is not a hook issue)
body: <p>On my local machine it works fine, but on the live server, when I run </p>
  
  <pre><code>get_terms('taxonomy' =&gt; 'any_taxonomy');
  </code></pre>
  
  <p>it returns a list of terms, but if I add any parameter to it like:</p>
  
  <pre><code>get_terms('taxonomy' =&gt; 'any_taxonomy','hide_empty' =&gt; false);
  </code></pre>
  
  <p>Then it returns "invalid taxonomy". The issue is not that the taxonomy is not registerd get_taxonomies() before it, it shows that all the taxonomies are registered. If I do this:</p>
  
  <pre><code>    get_terms('taxonomy' =&gt; 'category','hide_empty' =&gt; false);
  </code></pre>
  
  <p>The same problem is there, so its not just custom taxonomies. </p>
  
  <p>Any idea what could be causing this issue? </p>
  
  <p>Can anyone suggest a way to diagnose this?</p>