Skip to content

Commit

Permalink
Merge pull request #2 from newfold-labs/fix/collection-reference
Browse files Browse the repository at this point in the history
replace wpscholar/collection with wpforge
  • Loading branch information
circlecube authored Oct 3, 2022
2 parents aa1fee8 + 2ab2b04 commit 56f4406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"require": {
"newfold-labs/wp-module-data": "^2.0.0",
"wpscholar/url": "^1.2",
"wp-forge/helpers": "^1.1.0"
"wp-forge/helpers": "^1.1.0",
"wp-forge/collection": "^1.0"
}
}
4 changes: 2 additions & 2 deletions includes/NotificationsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use NewfoldLabs\WP\Module\Data\HiiveConnection;
use WP_Forge\Helpers\Arr;
use wpscholar\Collection;
use WP_Forge\Collection\Collection;

use function NewfoldLabs\WP\ModuleLoader\container;

Expand Down Expand Up @@ -35,7 +35,7 @@ public function __construct( $fetch_notices = true ) {
$notifications = get_transient( self::TRANSIENT );

// load test data TODO REMOVE
$notifications = self::get_test_notification_data();
// $notifications = self::get_test_notification_data();

if ( false === $notifications && true === $fetch_notices ) {
$response = wp_remote_get(
Expand Down

0 comments on commit 56f4406

Please sign in to comment.