Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Harbor/Licensing/Product_Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ public function get_all_by_slug( string $slug ): array {
* Returns null when no entry for the slug has activated_here set to true.
*
* @since 1.0.0
* @deprecated TBD Use get_all_by_slug() and check get_activated_here() on each entry.
* @deprecated 2.0.1 Use get_all_by_slug() and check get_activated_here() on each entry.
*
* @param string $slug The product slug.
*
* @return Product_Entry|null
*/
public function get_activated_entry( string $slug ): ?Product_Entry {
_deprecated_function( __METHOD__, 'TBD', __CLASS__ . '::get_all_by_slug()' );
_deprecated_function( __METHOD__, '2.0.1', __CLASS__ . '::get_all_by_slug()' );

foreach ( $this as $entry ) {
if ( $entry->get_product_slug() === $slug && $entry->get_activated_here() ) {
Expand Down
Loading