Tribe__Assets::order_by_priority( object $a, object $b )
Add the Priority ordering, which was causing an issue of not respecting which order stuff was registered.
Contents
Parameters
- $a
-
(object) (Required) First Subject to compare.
- $b
-
(object) (Required) Second subject to compare.
Return
(boolean)
Source
File: src/Tribe/Assets.php
public function order_by_priority( $a, $b ) {
return (int) $a->priority === (int) $b->priority ? 0 : (int) $a->priority > (int) $b->priority;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |