plugin updates

This commit is contained in:
Tony Volpe
2024-11-15 13:53:04 -05:00
parent 1293d604ca
commit 0238f0c4ca
2009 changed files with 163492 additions and 89543 deletions

View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
namespace Imagify\User;
use Imagify\Dependencies\League\Container\ServiceProvider\AbstractServiceProvider;
/**
* Service provider for Picture display
*/
class ServiceProvider extends AbstractServiceProvider {
/**
* Services provided by this provider
*
* @var array
*/
protected $provides = [
'user',
];
/**
* Registers the provided classes
*
* @return void
*/
public function register() {
$this->getContainer()->add( 'user', User::class );
}
/**
* Returns the subscribers array
*
* @return array
*/
public function get_subscribers() {
return [];
}
}

View File

@@ -143,7 +143,7 @@ class User {
$this->next_date_update = $user->next_date_update;
$this->is_active = $user->is_active;
$this->is_monthly = $user->is_monthly;
$this->error = false;
$this->error = is_wp_error( $user );
}
/**