It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
WOOF_Collection :: dedupe( String $by = id )
- WOOF_Collection The collection with duplicates removed.
Removes duplicates from the collection as identified by the specified property, that is, two objects are considered duplicate if the property value on each of those objects is the same.
String $by = id
The property name to check against for duplicate objects. The default of “id” means that this param doesn’t generally need to be specified for all of the built-in WordPress objects (posts, pages, terms, users)