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.


Parameters

$a

(object) (Required) First Subject to compare.

$b

(object) (Required) Second subject to compare.


Top ↑

Return

(boolean)


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.