Missing global in add_plugin_js_file

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Missing global in add_plugin_js_file
« on March 27th, 2012, 10:10 AM »
In order for add_plugin_js_file() to honor the site gzip and filename obfuscation settings, it needs to pull $settings into scope.

Rev 1452
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Missing global in add_plugin_js_file
« Reply #4, on March 29th, 2012, 11:41 AM »
Oh, sorry, I forgot to fix this one in one of my commits... Although any plugin-related code is better handled by Pete ;)