Пример #1
0
 /**
  * @param string $location
  * @param bool $force
  * @return array
  */
 public function scripts($location = 'head', $force = false)
 {
     // Do not display head and footer, WordPress will take care of it (most of the time).
     return !$force && in_array($location, ['head', 'footer']) ? Document::$wp_scripts[$location] : parent::scripts($location);
 }