示例#1
0
 /**
  * @param mixed $handles
  * @param bool $recursion
  * @param mixed $group
  * @return bool
  */
 public function all_deps($handles, $recursion = false, $group = false)
 {
     $r = parent::all_deps($handles, $recursion);
     if (!$recursion) {
         /**
          * Filter the array of enqueued styles before processing for output.
          *
          * @since 0.0.1
          *
          * @param array $to_do The list of enqueued styles about to be processed.
          */
         $this->to_do = apply_filters('print_styles_array', $this->to_do);
     }
     return $r;
 }
示例#2
0
 /**
  * @param mixed $handles   Item handle and argument (string) or item handles and arguments (array of strings).
  * @param bool  $recursion Internal flag that function is calling itself.
  * @param mixed $group     Group level: (int) level, (false) no groups.
  * @return bool True on success, false on failure.
  */
 public function all_deps($handles, $recursion = false, $group = false)
 {
     $r = parent::all_deps($handles, $recursion);
     if (!$recursion) {
         /**
          * Filter the list of script dependencies left to print.
          *
          * @since 0.0.1
          *
          * @param array $to_do An array of script dependencies.
          */
         $this->to_do = apply_filters('print_scripts_array', $this->to_do);
     }
     return $r;
 }