Plugin Directory

Changeset 3205237


Ignore:
Timestamp:
12/10/2024 04:52:16 AM (16 months ago)
Author:
themesgrove
Message:

Update to version 2.7.10 from GitHub

Location:
smartpay
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smartpay/tags/2.7.10/framework/Application.php

    r2446799 r3205237  
    205205     * @return mixed
    206206     */
    207     public function make($abstract, array $parameters = [])
     207    public function make($abstract, array $parameters = []) : mixed
    208208    {
    209209        $abstract = $this->getAlias($abstract);
    210210
    211         if (
    212             !$this->bound($abstract) &&
     211        if (!$this->bound($abstract) &&
    213212            array_key_exists($abstract, $this->availableBindings) &&
    214213            !array_key_exists($this->availableBindings[$abstract], $this->ranServiceBinders)
     
    288287     * @return void
    289288     */
    290     public function flush()
     289    public function flush() : void
    291290    {
    292291        parent::flush();
  • smartpay/tags/2.7.10/framework/Container/Container.php

    r2674934 r3205237  
    3939     * The container's method bindings.
    4040     *
    41      * @var \Closure[]
     41     * @var Closure[]
    4242     */
    4343    protected $methodBindings = [];
     
    109109     * All of the global resolving callbacks.
    110110     *
    111      * @var \Closure[]
     111     * @var Closure[]
    112112     */
    113113    protected $globalResolvingCallbacks = [];
     
    116116     * All of the global after resolving callbacks.
    117117     *
    118      * @var \Closure[]
     118     * @var Closure[]
    119119     */
    120120    protected $globalAfterResolvingCallbacks = [];
     
    157157     * @return bool
    158158     */
    159     public function bound($abstract)
     159    public function bound($abstract) : bool
    160160    {
    161161        return isset($this->bindings[$abstract]) ||
     
    178178     * @return bool
    179179     */
    180     public function resolved($abstract)
     180    public function resolved($abstract) : bool
    181181    {
    182182        if ($this->isAlias($abstract)) {
     
    194194     * @return bool
    195195     */
    196     public function isShared($abstract)
     196    public function isShared($abstract) : bool
    197197    {
    198198        return isset($this->instances[$abstract]) ||
     
    207207     * @return bool
    208208     */
    209     public function isAlias($name)
     209    public function isAlias($name) : bool
    210210    {
    211211        return isset($this->aliases[$name]);
     
    216216     *
    217217     * @param  string  $abstract
    218      * @param  \Closure|string|null  $concrete
     218     * @param Closure|string|null  $concrete
    219219     * @param  bool  $shared
    220      * @return void
    221      */
    222     public function bind($abstract, $concrete = null, $shared = false)
     220     *
     221     * @return void
     222     */
     223    public function bind($abstract, $concrete = null, $shared = false) : void
    223224    {
    224225        $this->dropStaleInstances($abstract);
     
    257258     * @param  string  $abstract
    258259     * @param  string  $concrete
    259      * @return \Closure
     260     *
     261     * @return Closure
    260262     */
    261263    protected function getClosure($abstract, $concrete)
     
    278280     *
    279281     * @param  string  $method
    280      * @return bool
    281      */
    282     public function hasMethodBinding($method)
     282     */
     283    public function hasMethodBinding($method) : bool
    283284    {
    284285        return isset($this->methodBindings[$method]);
     
    289290     *
    290291     * @param  array|string  $method
    291      * @param  \Closure  $callback
    292      * @return void
    293      */
    294     public function bindMethod($method, $callback)
     292     * @param Closure  $callback
     293     *
     294     * @return void
     295     */
     296    public function bindMethod($method, $callback) : void
    295297    {
    296298        $this->methodBindings[$this->parseBindMethod($method)] = $callback;
     
    303305     * @return string
    304306     */
    305     protected function parseBindMethod($method)
     307    protected function parseBindMethod($method) : string
    306308    {
    307309        if (is_array($method)) {
     
    319321     * @return mixed
    320322     */
    321     public function callMethodBinding($method, $instance)
     323    public function callMethodBinding($method, $instance) : mixed
    322324    {
    323325        return call_user_func($this->methodBindings[$method], $instance, $this);
     
    329331     * @param  string  $concrete
    330332     * @param  string  $abstract
    331      * @param  \Closure|string  $implementation
    332      * @return void
    333      */
    334     public function addContextualBinding($concrete, $abstract, $implementation)
     333     * @param  Closure|string  $implementation
     334     *
     335     * @return void
     336     */
     337    public function addContextualBinding($concrete, $abstract, $implementation) : void
    335338    {
    336339        $this->contextual[$concrete][$this->getAlias($abstract)] = $implementation;
     
    340343     * Register a binding if it hasn't already been registered.
    341344     *
    342      * @param  string  $abstract
    343      * @param  \Closure|string|null  $concrete
     345     * @param  string $abstract
     346     * @param  Closure|string|null  $concrete
    344347     * @param  bool  $shared
    345      * @return void
    346      */
    347     public function bindIf($abstract, $concrete = null, $shared = false)
     348     *
     349     * @return void
     350     */
     351    public function bindIf($abstract, $concrete = null, $shared = false) : void
    348352    {
    349353        if (!$this->bound($abstract)) {
     
    355359     * Register a shared binding in the container.
    356360     *
    357      * @param  string  $abstract
    358      * @param  \Closure|string|null  $concrete
    359      * @return void
    360      */
    361     public function singleton($abstract, $concrete = null)
     361     * @param string $abstract
     362     * @param  Closure|string|null  $concrete
     363     *
     364     * @return void
     365     */
     366    public function singleton($abstract, $concrete = null) : void
    362367    {
    363368        $this->bind($abstract, $concrete, true);
     
    367372     * Register a shared binding if it hasn't already been registered.
    368373     *
    369      * @param  string  $abstract
    370      * @param  \Closure|string|null  $concrete
    371      * @return void
    372      */
    373     public function singletonIf($abstract, $concrete = null)
     374     * @param string  $abstract
     375     * @param  Closure|string|null  $concrete
     376     *
     377     * @return void
     378     */
     379    public function singletonIf($abstract, $concrete = null) : void
    374380    {
    375381        if (!$this->bound($abstract)) {
     
    381387     * "Extend" an abstract type in the container.
    382388     *
    383      * @param  string  $abstract
    384      * @param  \Closure  $closure
     389     * @param string  $abstract
     390     * @param  Closure  $closure
     391     *
    385392     * @return void
    386393     *
    387394     * @throws \InvalidArgumentException
    388395     */
    389     public function extend($abstract, Closure $closure)
     396    public function extend($abstract, Closure $closure) : void
    390397    {
    391398        $abstract = $this->getAlias($abstract);
     
    411418     * @return mixed
    412419     */
    413     public function instance($abstract, $instance)
     420    public function instance($abstract, $instance) : mixed
    414421    {
    415422        $this->removeAbstractAlias($abstract);
     
    437444     * @return void
    438445     */
    439     protected function removeAbstractAlias($searched)
     446    protected function removeAbstractAlias($searched) : void
    440447    {
    441448        if (!isset($this->aliases[$searched])) {
     
    459466     * @return void
    460467     */
    461     public function tag($abstracts, $tags)
     468    public function tag($abstracts, $tags) : void
    462469    {
    463470        $tags = is_array($tags) ? $tags : array_slice(func_get_args(), 1);
     
    502509     * @throws \LogicException
    503510     */
    504     public function alias($abstract, $alias)
     511    public function alias($abstract, $alias) : void
    505512    {
    506513        if ($alias === $abstract) {
     
    517524     *
    518525     * @param  string  $abstract
    519      * @param  \Closure  $callback
    520      * @return mixed
    521      */
    522     public function rebinding($abstract, Closure $callback)
     526     * @param  Closure  $callback
     527     *
     528     * @return mixed
     529     */
     530    public function rebinding($abstract, Closure $callback) : mixed
    523531    {
    524532        $this->reboundCallbacks[$abstract = $this->getAlias($abstract)][] = $callback;
     
    537545     * @return mixed
    538546     */
    539     public function refresh($abstract, $target, $method)
     547    public function refresh($abstract, $target, $method) : mixed
    540548    {
    541549        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method) {
     
    550558     * @return void
    551559     */
    552     protected function rebound($abstract)
     560    protected function rebound($abstract) : void
    553561    {
    554562        $instance = $this->make($abstract);
     
    565573     * @return array
    566574     */
    567     protected function getReboundCallbacks($abstract)
     575    protected function getReboundCallbacks($abstract) : array
    568576    {
    569577        return $this->reboundCallbacks[$abstract] ?? [];
     
    573581     * Wrap the given closure such that its dependencies will be injected when executed.
    574582     *
    575      * @param  \Closure $callback
     583     * @param  Closure $callback
    576584     * @param  array  $parameters
    577      * @return \Closure
     585     *
     586     * @return Closure
    578587     */
    579588    public function wrap(Closure $callback, array $parameters = [])
     
    594603     * @throws \InvalidArgumentException
    595604     */
    596     public function call($callback, array $parameters = [], $defaultMethod = null)
     605    public function call($callback, array $parameters = [], $defaultMethod = null) : mixed
    597606    {
    598607        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
     
    603612     *
    604613     * @param  string  $abstract
    605      * @return \Closure
     614     *
     615     * @return Closure
    606616     */
    607617    public function factory($abstract)
     
    621631     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    622632     */
    623     public function makeWith($abstract, array $parameters = [])
     633    public function makeWith($abstract, array $parameters = []) : mixed
    624634    {
    625635        return $this->make($abstract, $parameters);
     
    635645     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    636646     */
    637     public function make($abstract, array $parameters = [])
     647    public function make($abstract, array $parameters = []) : mixed
    638648    {
    639649        return $this->resolve($abstract, $parameters);
     
    666676     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    667677     */
    668     protected function resolve($abstract, $parameters = [], $raiseEvents = true)
     678    protected function resolve($abstract, $parameters = [], $raiseEvents = true) : mixed
    669679    {
    670680        $abstract = $this->getAlias($abstract);
     
    730740     * @return mixed
    731741     */
    732     protected function getConcrete($abstract)
     742    protected function getConcrete($abstract) : mixed
    733743    {
    734744        // If we don't have a registered resolver or concrete for the type, we'll just
     
    746756     *
    747757     * @param  string  $abstract
    748      * @return \Closure|string|array|null
     758     *
     759     * @return Closure|string|array|null
    749760     */
    750761    protected function getContextualConcrete($abstract)
     
    772783     *
    773784     * @param  string  $abstract
    774      * @return \Closure|string|null
     785     *
     786     * @return Closure|string|null
    775787     */
    776788    protected function findInContextualBindings($abstract)
     
    786798     * @return bool
    787799     */
    788     protected function isBuildable($concrete, $abstract)
     800    protected function isBuildable($concrete, $abstract) : bool
    789801    {
    790802        return $concrete === $abstract || $concrete instanceof Closure;
     
    794806     * Instantiate a concrete instance of the given type.
    795807     *
    796      * @param  \Closure|string  $concrete
     808     * @param  Closure|string  $concrete
     809     *
    797810     * @return mixed
    798811     *
    799812     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    800813     */
    801     public function build($concrete)
     814    public function build($concrete) : mixed
    802815    {
    803816        // If the concrete type is actually a Closure, we will just execute it and
     
    860873     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    861874     */
    862     protected function resolveDependencies(array $dependencies)
     875    protected function resolveDependencies(array $dependencies) : array
    863876    {
    864877        $results = [];
     
    897910     * @return bool
    898911     */
    899     protected function hasParameterOverride($dependency)
     912    protected function hasParameterOverride($dependency) : bool
    900913    {
    901914        return array_key_exists(
     
    911924     * @return mixed
    912925     */
    913     protected function getParameterOverride($dependency)
     926    protected function getParameterOverride($dependency) : mixed
    914927    {
    915928        return $this->getLastParameterOverride()[$dependency->name];
     
    921934     * @return array
    922935     */
    923     protected function getLastParameterOverride()
     936    protected function getLastParameterOverride() : array
    924937    {
    925938        return count($this->with) ? end($this->with) : [];
     
    934947     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    935948     */
    936     protected function resolvePrimitive(ReflectionParameter $parameter)
     949    protected function resolvePrimitive(ReflectionParameter $parameter) : mixed
    937950    {
    938951        if (!is_null($concrete = $this->getContextualConcrete('$' . $parameter->getName()))) {
     
    955968     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    956969     */
    957     protected function resolveClass(ReflectionParameter $parameter)
     970    protected function resolveClass(ReflectionParameter $parameter) : mixed
    958971    {
    959972        try {
     
    985998     * @return mixed
    986999     */
    987     protected function resolveVariadicClass(ReflectionParameter $parameter)
     1000    protected function resolveVariadicClass(ReflectionParameter $parameter) : mixed
    9881001    {
    9891002        $className = Util::getParameterClassName($parameter);
     
    10081021     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    10091022     */
    1010     protected function notInstantiable($concrete)
     1023    protected function notInstantiable($concrete) : void
    10111024    {
    10121025        if (!empty($this->buildStack)) {
     
    10291042     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    10301043     */
    1031     protected function unresolvablePrimitive(ReflectionParameter $parameter)
     1044    protected function unresolvablePrimitive(ReflectionParameter $parameter) : void
    10321045    {
    10331046        $message = "Unresolvable dependency resolving [$parameter] in class {$parameter->getDeclaringClass()->getName()}";
     
    10391052     * Register a new resolving callback.
    10401053     *
    1041      * @param  \Closure|string  $abstract
    1042      * @param  \Closure|null  $callback
    1043      * @return void
    1044      */
    1045     public function resolving($abstract, Closure $callback = null)
     1054     * @param  Closure|string  $abstract
     1055     * @param  Closure|null  $callback
     1056     *
     1057     * @return void
     1058     */
     1059    public function resolving($abstract, Closure $callback = null) : void
    10461060    {
    10471061        if (is_string($abstract)) {
     
    10591073     * Register a new after resolving callback for all types.
    10601074     *
    1061      * @param  \Closure|string  $abstract
    1062      * @param  \Closure|null  $callback
    1063      * @return void
    1064      */
    1065     public function afterResolving($abstract, Closure $callback = null)
     1075     * @param  Closure|string  $abstract
     1076     * @param  Closure|null  $callback
     1077     *
     1078     * @return void
     1079     */
     1080    public function afterResolving($abstract, Closure $callback = null) : void
    10661081    {
    10671082        if (is_string($abstract)) {
     
    10831098     * @return void
    10841099     */
    1085     protected function fireResolvingCallbacks($abstract, $object)
     1100    protected function fireResolvingCallbacks($abstract, $object) : void
    10861101    {
    10871102        $this->fireCallbackArray($object, $this->globalResolvingCallbacks);
     
    11021117     * @return void
    11031118     */
    1104     protected function fireAfterResolvingCallbacks($abstract, $object)
     1119    protected function fireAfterResolvingCallbacks($abstract, $object) : void
    11051120    {
    11061121        $this->fireCallbackArray($object, $this->globalAfterResolvingCallbacks);
     
    11211136     * @return array
    11221137     */
    1123     protected function getCallbacksForType($abstract, $object, array $callbacksPerType)
     1138    protected function getCallbacksForType($abstract, $object, array $callbacksPerType) : array
    11241139    {
    11251140        $results = [];
     
    11411156     * @return void
    11421157     */
    1143     protected function fireCallbackArray($object, array $callbacks)
     1158    protected function fireCallbackArray($object, array $callbacks) : void
    11441159    {
    11451160        foreach ($callbacks as $callback) {
     
    11531168     * @return array
    11541169     */
    1155     public function getBindings()
     1170    public function getBindings() : array
    11561171    {
    11571172        return $this->bindings;
     
    11641179     * @return string
    11651180     */
    1166     public function getAlias($abstract)
     1181    public function getAlias($abstract) : string
    11671182    {
    11681183        return isset($this->aliases[$abstract])
     
    11771192     * @return array
    11781193     */
    1179     protected function getExtenders($abstract)
     1194    protected function getExtenders($abstract) : array
    11801195    {
    11811196        return $this->extenders[$this->getAlias($abstract)] ?? [];
     
    11881203     * @return void
    11891204     */
    1190     public function forgetExtenders($abstract)
     1205    public function forgetExtenders($abstract) : void
    11911206    {
    11921207        unset($this->extenders[$this->getAlias($abstract)]);
     
    11991214     * @return void
    12001215     */
    1201     protected function dropStaleInstances($abstract)
     1216    protected function dropStaleInstances($abstract) : void
    12021217    {
    12031218        unset($this->instances[$abstract], $this->aliases[$abstract]);
     
    12101225     * @return void
    12111226     */
    1212     public function forgetInstance($abstract)
     1227    public function forgetInstance($abstract) : void
    12131228    {
    12141229        unset($this->instances[$abstract]);
     
    12201235     * @return void
    12211236     */
    1222     public function forgetInstances()
     1237    public function forgetInstances() : void
    12231238    {
    12241239        $this->instances = [];
     
    12301245     * @return void
    12311246     */
    1232     public function flush()
     1247    public function flush() : void
    12331248    {
    12341249        $this->aliases = [];
     
    12441259     * @return static
    12451260     */
    1246     public static function getInstance()
     1261    public static function getInstance() : static
    12471262    {
    12481263        if (is_null(static::$instance)) {
     
    12701285     * @return bool
    12711286     */
    1272     public function offsetExists($key)
     1287    public function offsetExists($key) : bool
    12731288    {
    12741289        return $this->bound($key);
     
    12811296     * @return mixed
    12821297     */
    1283     public function offsetGet($key)
     1298    public function offsetGet($key) : mixed
    12841299    {
    12851300        return $this->make($key);
     
    12931308     * @return void
    12941309     */
    1295     public function offsetSet($key, $value)
     1310    public function offsetSet($key, $value) : void
    12961311    {
    12971312        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
     
    13061321     * @return void
    13071322     */
    1308     public function offsetUnset($key)
     1323    public function offsetUnset($key) : void
    13091324    {
    13101325        unset($this->bindings[$key], $this->instances[$key], $this->resolved[$key]);
     
    13171332     * @return mixed
    13181333     */
    1319     public function __get($key)
     1334    public function __get($key) : mixed
    13201335    {
    13211336        return $this[$key];
     
    13291344     * @return void
    13301345     */
    1331     public function __set($key, $value)
     1346    public function __set($key, $value) : void
    13321347    {
    13331348        $this[$key] = $value;
  • smartpay/tags/2.7.10/framework/Database/Eloquent/Model.php

    r2542354 r3205237  
    389389    }
    390390
    391     public function jsonSerialize()
     391    public function jsonSerialize(): array
    392392    {
    393393        return $this->toArray();
    394394    }
    395395
    396     public function toArray()
     396    public function toArray(): array
    397397    {
    398398        $attributes = $this->getAttributes();
     
    509509    public function push()
    510510    {
    511         if (!$this->save()) return false;
     511        if (!$this->save()) {
     512            return false;
     513        }
    512514
    513515        foreach ($this->relations as $models) {
    514516            $relations = ModelCollection::make($models);
    515517            foreach ($relations as $relation) {
    516                 if (!$relation->push()) return false;
     518                if (!$relation->push()) {
     519                    return false;
     520                }
    517521            }
    518522        }
     
    686690            if (!array_key_exists($key, $this->original)) {
    687691                $dirty[$key] = $value;
    688             } elseif (
    689                 $value !== $this->original[$key] &&
     692            } elseif ($value !== $this->original[$key] &&
    690693                !$this->originalIsNumericallyEquivalent($key)
    691694            ) {
     
    830833     * @return bool
    831834     */
    832     public function offsetExists($offset)
     835    public function offsetExists($offset): bool
    833836    {
    834837        return !is_null($this->getAttribute($offset));
     
    841844     * @return mixed
    842845     */
    843     public function offsetGet($offset)
     846    public function offsetGet($offset): mixed
    844847    {
    845848        return $this->getAttribute($offset);
     
    853856     * @return void
    854857     */
    855     public function offsetSet($offset, $value)
     858    public function offsetSet($offset, $value): void
    856859    {
    857860        $this->setAttribute($offset, $value);
     
    864867     * @return void
    865868     */
    866     public function offsetUnset($offset)
     869    public function offsetUnset($offset): void
    867870    {
    868871        unset($this->attributes[$offset], $this->relations[$offset]);
  • smartpay/tags/2.7.10/framework/Database/Eloquent/ModelCollection.php

    r2446799 r3205237  
    2020    public static function make($items)
    2121    {
    22         if (is_null($items)) return new static;
    23 
    24         if ($items instanceof self) return $items;
     22        if (is_null($items)) {
     23            return new static;
     24        }
     25
     26        if ($items instanceof self) {
     27            return $items;
     28        }
    2529
    2630        return new static(is_array($items) ? $items : [$items]);
     
    3236    }
    3337
    34     public function count()
     38    public function count(): int
    3539    {
    3640        return count($this->models);
     
    289293    }
    290294
    291     public function jsonSerialize()
     295    public function jsonSerialize(): array
    292296    {
    293297        return $this->toArray();
    294298    }
    295299
    296     public function getIterator()
     300    public function getIterator(): ArrayIterator
    297301    {
    298302        return new ArrayIterator($this->models);
    299303    }
    300304
    301     public function offsetExists($offset)
     305    public function offsetExists($offset): bool
    302306    {
    303307        return isset($this->models[$offset]);
    304308    }
    305309
    306     public function offsetGet($offset)
     310    public function offsetGet($offset): mixed
    307311    {
    308312        if ($this->offsetExists($offset)) {
     
    311315    }
    312316
    313     public function offsetSet($offset, $value)
     317    public function offsetSet($offset, $value): void
    314318    {
    315319        $this->models[$offset] = $value;
    316320    }
    317321
    318     public function offsetUnset($offset)
     322    public function offsetUnset($offset): void
    319323    {
    320324        unset($this->models[$offset]);
  • smartpay/tags/2.7.10/framework/Database/QueryBuilder/QueryBuilderHandler.php

    r2542354 r3205237  
    5050     */
    5151    protected $fetchParameters = array(\PDO::FETCH_OBJ);
     52    protected string $adapter;
     53    protected array $adapterConfig;
    5254
    5355    /**
  • smartpay/tags/2.7.10/readme.txt

    r3205236 r3205237  
    55Tested up to: 6.6.2
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.7.9
     7Stable Tag: 2.7.10
    88License: GNU Version 2 or later
    99
     
    113113
    114114== Changelog ==
     115= [2.7.10] =
     116* Fix - Errors due to return type declaration.
     117* Fix - Error due to early triggering text domain.
     118
    115119= [2.7.9] =
    116120* Fix - Form builder unaccessible due to overlapping styles.
  • smartpay/tags/2.7.10/smartpay.php

    r3205236 r3205237  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.7.9
     8 * Version:     2.7.10
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.7.9');
     30define('SMARTPAY_VERSION', '2.7.10');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
     
    4343    do_action('smartpay_loaded');
    4444
    45     load_plugin_textdomain('smartpay', false, dirname(plugin_basename(__FILE__)) . '/resources/languages');
    46 
    4745    // Run The Application
    4846    $app->boot();
     
    5149add_action('init', function () {
    5250    do_action('smartpay_init');
     51
     52    // Load translations
     53    load_plugin_textdomain('smartpay', false, dirname(plugin_basename(__FILE__)) . '/resources/languages');
    5354});
  • smartpay/tags/2.7.10/vendor/composer/installed.php

    r3205236 r3205237  
    22    'root' => array(
    33        'name' => 'wp-smartpay/core',
    4         'pretty_version' => 'v2.7.9',
    5         'version' => '2.7.9.0',
    6         'reference' => '1e531f029adbdeef65469698ca6d1ebcd2b1791d',
     4        'pretty_version' => 'v2.7.10',
     5        'version' => '2.7.10.0',
     6        'reference' => '2987689bd103036669562bccabbcc3b9d4a1391c',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    108108        ),
    109109        'wp-smartpay/core' => array(
    110             'pretty_version' => 'v2.7.9',
    111             'version' => '2.7.9.0',
    112             'reference' => '1e531f029adbdeef65469698ca6d1ebcd2b1791d',
     110            'pretty_version' => 'v2.7.10',
     111            'version' => '2.7.10.0',
     112            'reference' => '2987689bd103036669562bccabbcc3b9d4a1391c',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../../',
  • smartpay/trunk/framework/Application.php

    r2446799 r3205237  
    205205     * @return mixed
    206206     */
    207     public function make($abstract, array $parameters = [])
     207    public function make($abstract, array $parameters = []) : mixed
    208208    {
    209209        $abstract = $this->getAlias($abstract);
    210210
    211         if (
    212             !$this->bound($abstract) &&
     211        if (!$this->bound($abstract) &&
    213212            array_key_exists($abstract, $this->availableBindings) &&
    214213            !array_key_exists($this->availableBindings[$abstract], $this->ranServiceBinders)
     
    288287     * @return void
    289288     */
    290     public function flush()
     289    public function flush() : void
    291290    {
    292291        parent::flush();
  • smartpay/trunk/framework/Container/Container.php

    r2674934 r3205237  
    3939     * The container's method bindings.
    4040     *
    41      * @var \Closure[]
     41     * @var Closure[]
    4242     */
    4343    protected $methodBindings = [];
     
    109109     * All of the global resolving callbacks.
    110110     *
    111      * @var \Closure[]
     111     * @var Closure[]
    112112     */
    113113    protected $globalResolvingCallbacks = [];
     
    116116     * All of the global after resolving callbacks.
    117117     *
    118      * @var \Closure[]
     118     * @var Closure[]
    119119     */
    120120    protected $globalAfterResolvingCallbacks = [];
     
    157157     * @return bool
    158158     */
    159     public function bound($abstract)
     159    public function bound($abstract) : bool
    160160    {
    161161        return isset($this->bindings[$abstract]) ||
     
    178178     * @return bool
    179179     */
    180     public function resolved($abstract)
     180    public function resolved($abstract) : bool
    181181    {
    182182        if ($this->isAlias($abstract)) {
     
    194194     * @return bool
    195195     */
    196     public function isShared($abstract)
     196    public function isShared($abstract) : bool
    197197    {
    198198        return isset($this->instances[$abstract]) ||
     
    207207     * @return bool
    208208     */
    209     public function isAlias($name)
     209    public function isAlias($name) : bool
    210210    {
    211211        return isset($this->aliases[$name]);
     
    216216     *
    217217     * @param  string  $abstract
    218      * @param  \Closure|string|null  $concrete
     218     * @param Closure|string|null  $concrete
    219219     * @param  bool  $shared
    220      * @return void
    221      */
    222     public function bind($abstract, $concrete = null, $shared = false)
     220     *
     221     * @return void
     222     */
     223    public function bind($abstract, $concrete = null, $shared = false) : void
    223224    {
    224225        $this->dropStaleInstances($abstract);
     
    257258     * @param  string  $abstract
    258259     * @param  string  $concrete
    259      * @return \Closure
     260     *
     261     * @return Closure
    260262     */
    261263    protected function getClosure($abstract, $concrete)
     
    278280     *
    279281     * @param  string  $method
    280      * @return bool
    281      */
    282     public function hasMethodBinding($method)
     282     */
     283    public function hasMethodBinding($method) : bool
    283284    {
    284285        return isset($this->methodBindings[$method]);
     
    289290     *
    290291     * @param  array|string  $method
    291      * @param  \Closure  $callback
    292      * @return void
    293      */
    294     public function bindMethod($method, $callback)
     292     * @param Closure  $callback
     293     *
     294     * @return void
     295     */
     296    public function bindMethod($method, $callback) : void
    295297    {
    296298        $this->methodBindings[$this->parseBindMethod($method)] = $callback;
     
    303305     * @return string
    304306     */
    305     protected function parseBindMethod($method)
     307    protected function parseBindMethod($method) : string
    306308    {
    307309        if (is_array($method)) {
     
    319321     * @return mixed
    320322     */
    321     public function callMethodBinding($method, $instance)
     323    public function callMethodBinding($method, $instance) : mixed
    322324    {
    323325        return call_user_func($this->methodBindings[$method], $instance, $this);
     
    329331     * @param  string  $concrete
    330332     * @param  string  $abstract
    331      * @param  \Closure|string  $implementation
    332      * @return void
    333      */
    334     public function addContextualBinding($concrete, $abstract, $implementation)
     333     * @param  Closure|string  $implementation
     334     *
     335     * @return void
     336     */
     337    public function addContextualBinding($concrete, $abstract, $implementation) : void
    335338    {
    336339        $this->contextual[$concrete][$this->getAlias($abstract)] = $implementation;
     
    340343     * Register a binding if it hasn't already been registered.
    341344     *
    342      * @param  string  $abstract
    343      * @param  \Closure|string|null  $concrete
     345     * @param  string $abstract
     346     * @param  Closure|string|null  $concrete
    344347     * @param  bool  $shared
    345      * @return void
    346      */
    347     public function bindIf($abstract, $concrete = null, $shared = false)
     348     *
     349     * @return void
     350     */
     351    public function bindIf($abstract, $concrete = null, $shared = false) : void
    348352    {
    349353        if (!$this->bound($abstract)) {
     
    355359     * Register a shared binding in the container.
    356360     *
    357      * @param  string  $abstract
    358      * @param  \Closure|string|null  $concrete
    359      * @return void
    360      */
    361     public function singleton($abstract, $concrete = null)
     361     * @param string $abstract
     362     * @param  Closure|string|null  $concrete
     363     *
     364     * @return void
     365     */
     366    public function singleton($abstract, $concrete = null) : void
    362367    {
    363368        $this->bind($abstract, $concrete, true);
     
    367372     * Register a shared binding if it hasn't already been registered.
    368373     *
    369      * @param  string  $abstract
    370      * @param  \Closure|string|null  $concrete
    371      * @return void
    372      */
    373     public function singletonIf($abstract, $concrete = null)
     374     * @param string  $abstract
     375     * @param  Closure|string|null  $concrete
     376     *
     377     * @return void
     378     */
     379    public function singletonIf($abstract, $concrete = null) : void
    374380    {
    375381        if (!$this->bound($abstract)) {
     
    381387     * "Extend" an abstract type in the container.
    382388     *
    383      * @param  string  $abstract
    384      * @param  \Closure  $closure
     389     * @param string  $abstract
     390     * @param  Closure  $closure
     391     *
    385392     * @return void
    386393     *
    387394     * @throws \InvalidArgumentException
    388395     */
    389     public function extend($abstract, Closure $closure)
     396    public function extend($abstract, Closure $closure) : void
    390397    {
    391398        $abstract = $this->getAlias($abstract);
     
    411418     * @return mixed
    412419     */
    413     public function instance($abstract, $instance)
     420    public function instance($abstract, $instance) : mixed
    414421    {
    415422        $this->removeAbstractAlias($abstract);
     
    437444     * @return void
    438445     */
    439     protected function removeAbstractAlias($searched)
     446    protected function removeAbstractAlias($searched) : void
    440447    {
    441448        if (!isset($this->aliases[$searched])) {
     
    459466     * @return void
    460467     */
    461     public function tag($abstracts, $tags)
     468    public function tag($abstracts, $tags) : void
    462469    {
    463470        $tags = is_array($tags) ? $tags : array_slice(func_get_args(), 1);
     
    502509     * @throws \LogicException
    503510     */
    504     public function alias($abstract, $alias)
     511    public function alias($abstract, $alias) : void
    505512    {
    506513        if ($alias === $abstract) {
     
    517524     *
    518525     * @param  string  $abstract
    519      * @param  \Closure  $callback
    520      * @return mixed
    521      */
    522     public function rebinding($abstract, Closure $callback)
     526     * @param  Closure  $callback
     527     *
     528     * @return mixed
     529     */
     530    public function rebinding($abstract, Closure $callback) : mixed
    523531    {
    524532        $this->reboundCallbacks[$abstract = $this->getAlias($abstract)][] = $callback;
     
    537545     * @return mixed
    538546     */
    539     public function refresh($abstract, $target, $method)
     547    public function refresh($abstract, $target, $method) : mixed
    540548    {
    541549        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method) {
     
    550558     * @return void
    551559     */
    552     protected function rebound($abstract)
     560    protected function rebound($abstract) : void
    553561    {
    554562        $instance = $this->make($abstract);
     
    565573     * @return array
    566574     */
    567     protected function getReboundCallbacks($abstract)
     575    protected function getReboundCallbacks($abstract) : array
    568576    {
    569577        return $this->reboundCallbacks[$abstract] ?? [];
     
    573581     * Wrap the given closure such that its dependencies will be injected when executed.
    574582     *
    575      * @param  \Closure $callback
     583     * @param  Closure $callback
    576584     * @param  array  $parameters
    577      * @return \Closure
     585     *
     586     * @return Closure
    578587     */
    579588    public function wrap(Closure $callback, array $parameters = [])
     
    594603     * @throws \InvalidArgumentException
    595604     */
    596     public function call($callback, array $parameters = [], $defaultMethod = null)
     605    public function call($callback, array $parameters = [], $defaultMethod = null) : mixed
    597606    {
    598607        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
     
    603612     *
    604613     * @param  string  $abstract
    605      * @return \Closure
     614     *
     615     * @return Closure
    606616     */
    607617    public function factory($abstract)
     
    621631     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    622632     */
    623     public function makeWith($abstract, array $parameters = [])
     633    public function makeWith($abstract, array $parameters = []) : mixed
    624634    {
    625635        return $this->make($abstract, $parameters);
     
    635645     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    636646     */
    637     public function make($abstract, array $parameters = [])
     647    public function make($abstract, array $parameters = []) : mixed
    638648    {
    639649        return $this->resolve($abstract, $parameters);
     
    666676     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    667677     */
    668     protected function resolve($abstract, $parameters = [], $raiseEvents = true)
     678    protected function resolve($abstract, $parameters = [], $raiseEvents = true) : mixed
    669679    {
    670680        $abstract = $this->getAlias($abstract);
     
    730740     * @return mixed
    731741     */
    732     protected function getConcrete($abstract)
     742    protected function getConcrete($abstract) : mixed
    733743    {
    734744        // If we don't have a registered resolver or concrete for the type, we'll just
     
    746756     *
    747757     * @param  string  $abstract
    748      * @return \Closure|string|array|null
     758     *
     759     * @return Closure|string|array|null
    749760     */
    750761    protected function getContextualConcrete($abstract)
     
    772783     *
    773784     * @param  string  $abstract
    774      * @return \Closure|string|null
     785     *
     786     * @return Closure|string|null
    775787     */
    776788    protected function findInContextualBindings($abstract)
     
    786798     * @return bool
    787799     */
    788     protected function isBuildable($concrete, $abstract)
     800    protected function isBuildable($concrete, $abstract) : bool
    789801    {
    790802        return $concrete === $abstract || $concrete instanceof Closure;
     
    794806     * Instantiate a concrete instance of the given type.
    795807     *
    796      * @param  \Closure|string  $concrete
     808     * @param  Closure|string  $concrete
     809     *
    797810     * @return mixed
    798811     *
    799812     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    800813     */
    801     public function build($concrete)
     814    public function build($concrete) : mixed
    802815    {
    803816        // If the concrete type is actually a Closure, we will just execute it and
     
    860873     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    861874     */
    862     protected function resolveDependencies(array $dependencies)
     875    protected function resolveDependencies(array $dependencies) : array
    863876    {
    864877        $results = [];
     
    897910     * @return bool
    898911     */
    899     protected function hasParameterOverride($dependency)
     912    protected function hasParameterOverride($dependency) : bool
    900913    {
    901914        return array_key_exists(
     
    911924     * @return mixed
    912925     */
    913     protected function getParameterOverride($dependency)
     926    protected function getParameterOverride($dependency) : mixed
    914927    {
    915928        return $this->getLastParameterOverride()[$dependency->name];
     
    921934     * @return array
    922935     */
    923     protected function getLastParameterOverride()
     936    protected function getLastParameterOverride() : array
    924937    {
    925938        return count($this->with) ? end($this->with) : [];
     
    934947     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    935948     */
    936     protected function resolvePrimitive(ReflectionParameter $parameter)
     949    protected function resolvePrimitive(ReflectionParameter $parameter) : mixed
    937950    {
    938951        if (!is_null($concrete = $this->getContextualConcrete('$' . $parameter->getName()))) {
     
    955968     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    956969     */
    957     protected function resolveClass(ReflectionParameter $parameter)
     970    protected function resolveClass(ReflectionParameter $parameter) : mixed
    958971    {
    959972        try {
     
    985998     * @return mixed
    986999     */
    987     protected function resolveVariadicClass(ReflectionParameter $parameter)
     1000    protected function resolveVariadicClass(ReflectionParameter $parameter) : mixed
    9881001    {
    9891002        $className = Util::getParameterClassName($parameter);
     
    10081021     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    10091022     */
    1010     protected function notInstantiable($concrete)
     1023    protected function notInstantiable($concrete) : void
    10111024    {
    10121025        if (!empty($this->buildStack)) {
     
    10291042     * @throws \SmartPay\Framework\Contracts\Container\BindingResolutionException
    10301043     */
    1031     protected function unresolvablePrimitive(ReflectionParameter $parameter)
     1044    protected function unresolvablePrimitive(ReflectionParameter $parameter) : void
    10321045    {
    10331046        $message = "Unresolvable dependency resolving [$parameter] in class {$parameter->getDeclaringClass()->getName()}";
     
    10391052     * Register a new resolving callback.
    10401053     *
    1041      * @param  \Closure|string  $abstract
    1042      * @param  \Closure|null  $callback
    1043      * @return void
    1044      */
    1045     public function resolving($abstract, Closure $callback = null)
     1054     * @param  Closure|string  $abstract
     1055     * @param  Closure|null  $callback
     1056     *
     1057     * @return void
     1058     */
     1059    public function resolving($abstract, Closure $callback = null) : void
    10461060    {
    10471061        if (is_string($abstract)) {
     
    10591073     * Register a new after resolving callback for all types.
    10601074     *
    1061      * @param  \Closure|string  $abstract
    1062      * @param  \Closure|null  $callback
    1063      * @return void
    1064      */
    1065     public function afterResolving($abstract, Closure $callback = null)
     1075     * @param  Closure|string  $abstract
     1076     * @param  Closure|null  $callback
     1077     *
     1078     * @return void
     1079     */
     1080    public function afterResolving($abstract, Closure $callback = null) : void
    10661081    {
    10671082        if (is_string($abstract)) {
     
    10831098     * @return void
    10841099     */
    1085     protected function fireResolvingCallbacks($abstract, $object)
     1100    protected function fireResolvingCallbacks($abstract, $object) : void
    10861101    {
    10871102        $this->fireCallbackArray($object, $this->globalResolvingCallbacks);
     
    11021117     * @return void
    11031118     */
    1104     protected function fireAfterResolvingCallbacks($abstract, $object)
     1119    protected function fireAfterResolvingCallbacks($abstract, $object) : void
    11051120    {
    11061121        $this->fireCallbackArray($object, $this->globalAfterResolvingCallbacks);
     
    11211136     * @return array
    11221137     */
    1123     protected function getCallbacksForType($abstract, $object, array $callbacksPerType)
     1138    protected function getCallbacksForType($abstract, $object, array $callbacksPerType) : array
    11241139    {
    11251140        $results = [];
     
    11411156     * @return void
    11421157     */
    1143     protected function fireCallbackArray($object, array $callbacks)
     1158    protected function fireCallbackArray($object, array $callbacks) : void
    11441159    {
    11451160        foreach ($callbacks as $callback) {
     
    11531168     * @return array
    11541169     */
    1155     public function getBindings()
     1170    public function getBindings() : array
    11561171    {
    11571172        return $this->bindings;
     
    11641179     * @return string
    11651180     */
    1166     public function getAlias($abstract)
     1181    public function getAlias($abstract) : string
    11671182    {
    11681183        return isset($this->aliases[$abstract])
     
    11771192     * @return array
    11781193     */
    1179     protected function getExtenders($abstract)
     1194    protected function getExtenders($abstract) : array
    11801195    {
    11811196        return $this->extenders[$this->getAlias($abstract)] ?? [];
     
    11881203     * @return void
    11891204     */
    1190     public function forgetExtenders($abstract)
     1205    public function forgetExtenders($abstract) : void
    11911206    {
    11921207        unset($this->extenders[$this->getAlias($abstract)]);
     
    11991214     * @return void
    12001215     */
    1201     protected function dropStaleInstances($abstract)
     1216    protected function dropStaleInstances($abstract) : void
    12021217    {
    12031218        unset($this->instances[$abstract], $this->aliases[$abstract]);
     
    12101225     * @return void
    12111226     */
    1212     public function forgetInstance($abstract)
     1227    public function forgetInstance($abstract) : void
    12131228    {
    12141229        unset($this->instances[$abstract]);
     
    12201235     * @return void
    12211236     */
    1222     public function forgetInstances()
     1237    public function forgetInstances() : void
    12231238    {
    12241239        $this->instances = [];
     
    12301245     * @return void
    12311246     */
    1232     public function flush()
     1247    public function flush() : void
    12331248    {
    12341249        $this->aliases = [];
     
    12441259     * @return static
    12451260     */
    1246     public static function getInstance()
     1261    public static function getInstance() : static
    12471262    {
    12481263        if (is_null(static::$instance)) {
     
    12701285     * @return bool
    12711286     */
    1272     public function offsetExists($key)
     1287    public function offsetExists($key) : bool
    12731288    {
    12741289        return $this->bound($key);
     
    12811296     * @return mixed
    12821297     */
    1283     public function offsetGet($key)
     1298    public function offsetGet($key) : mixed
    12841299    {
    12851300        return $this->make($key);
     
    12931308     * @return void
    12941309     */
    1295     public function offsetSet($key, $value)
     1310    public function offsetSet($key, $value) : void
    12961311    {
    12971312        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
     
    13061321     * @return void
    13071322     */
    1308     public function offsetUnset($key)
     1323    public function offsetUnset($key) : void
    13091324    {
    13101325        unset($this->bindings[$key], $this->instances[$key], $this->resolved[$key]);
     
    13171332     * @return mixed
    13181333     */
    1319     public function __get($key)
     1334    public function __get($key) : mixed
    13201335    {
    13211336        return $this[$key];
     
    13291344     * @return void
    13301345     */
    1331     public function __set($key, $value)
     1346    public function __set($key, $value) : void
    13321347    {
    13331348        $this[$key] = $value;
  • smartpay/trunk/framework/Database/Eloquent/Model.php

    r2542354 r3205237  
    389389    }
    390390
    391     public function jsonSerialize()
     391    public function jsonSerialize(): array
    392392    {
    393393        return $this->toArray();
    394394    }
    395395
    396     public function toArray()
     396    public function toArray(): array
    397397    {
    398398        $attributes = $this->getAttributes();
     
    509509    public function push()
    510510    {
    511         if (!$this->save()) return false;
     511        if (!$this->save()) {
     512            return false;
     513        }
    512514
    513515        foreach ($this->relations as $models) {
    514516            $relations = ModelCollection::make($models);
    515517            foreach ($relations as $relation) {
    516                 if (!$relation->push()) return false;
     518                if (!$relation->push()) {
     519                    return false;
     520                }
    517521            }
    518522        }
     
    686690            if (!array_key_exists($key, $this->original)) {
    687691                $dirty[$key] = $value;
    688             } elseif (
    689                 $value !== $this->original[$key] &&
     692            } elseif ($value !== $this->original[$key] &&
    690693                !$this->originalIsNumericallyEquivalent($key)
    691694            ) {
     
    830833     * @return bool
    831834     */
    832     public function offsetExists($offset)
     835    public function offsetExists($offset): bool
    833836    {
    834837        return !is_null($this->getAttribute($offset));
     
    841844     * @return mixed
    842845     */
    843     public function offsetGet($offset)
     846    public function offsetGet($offset): mixed
    844847    {
    845848        return $this->getAttribute($offset);
     
    853856     * @return void
    854857     */
    855     public function offsetSet($offset, $value)
     858    public function offsetSet($offset, $value): void
    856859    {
    857860        $this->setAttribute($offset, $value);
     
    864867     * @return void
    865868     */
    866     public function offsetUnset($offset)
     869    public function offsetUnset($offset): void
    867870    {
    868871        unset($this->attributes[$offset], $this->relations[$offset]);
  • smartpay/trunk/framework/Database/Eloquent/ModelCollection.php

    r2446799 r3205237  
    2020    public static function make($items)
    2121    {
    22         if (is_null($items)) return new static;
    23 
    24         if ($items instanceof self) return $items;
     22        if (is_null($items)) {
     23            return new static;
     24        }
     25
     26        if ($items instanceof self) {
     27            return $items;
     28        }
    2529
    2630        return new static(is_array($items) ? $items : [$items]);
     
    3236    }
    3337
    34     public function count()
     38    public function count(): int
    3539    {
    3640        return count($this->models);
     
    289293    }
    290294
    291     public function jsonSerialize()
     295    public function jsonSerialize(): array
    292296    {
    293297        return $this->toArray();
    294298    }
    295299
    296     public function getIterator()
     300    public function getIterator(): ArrayIterator
    297301    {
    298302        return new ArrayIterator($this->models);
    299303    }
    300304
    301     public function offsetExists($offset)
     305    public function offsetExists($offset): bool
    302306    {
    303307        return isset($this->models[$offset]);
    304308    }
    305309
    306     public function offsetGet($offset)
     310    public function offsetGet($offset): mixed
    307311    {
    308312        if ($this->offsetExists($offset)) {
     
    311315    }
    312316
    313     public function offsetSet($offset, $value)
     317    public function offsetSet($offset, $value): void
    314318    {
    315319        $this->models[$offset] = $value;
    316320    }
    317321
    318     public function offsetUnset($offset)
     322    public function offsetUnset($offset): void
    319323    {
    320324        unset($this->models[$offset]);
  • smartpay/trunk/framework/Database/QueryBuilder/QueryBuilderHandler.php

    r2542354 r3205237  
    5050     */
    5151    protected $fetchParameters = array(\PDO::FETCH_OBJ);
     52    protected string $adapter;
     53    protected array $adapterConfig;
    5254
    5355    /**
  • smartpay/trunk/readme.txt

    r3205236 r3205237  
    55Tested up to: 6.6.2
    66Requires PHP: 7.4.0
    7 Stable Tag: 2.7.9
     7Stable Tag: 2.7.10
    88License: GNU Version 2 or later
    99
     
    113113
    114114== Changelog ==
     115= [2.7.10] =
     116* Fix - Errors due to return type declaration.
     117* Fix - Error due to early triggering text domain.
     118
    115119= [2.7.9] =
    116120* Fix - Form builder unaccessible due to overlapping styles.
  • smartpay/trunk/smartpay.php

    r3205236 r3205237  
    66 * Plugin URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
    8  * Version:     2.7.9
     8 * Version:     2.7.10
    99 * Author:      WPSmartPay
    1010 * Author URI:  https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2828defined('ABSPATH') || exit;
    2929
    30 define('SMARTPAY_VERSION', '2.7.9');
     30define('SMARTPAY_VERSION', '2.7.10');
    3131define('SMARTPAY_PLUGIN_FILE', __FILE__);
    3232define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
     
    4343    do_action('smartpay_loaded');
    4444
    45     load_plugin_textdomain('smartpay', false, dirname(plugin_basename(__FILE__)) . '/resources/languages');
    46 
    4745    // Run The Application
    4846    $app->boot();
     
    5149add_action('init', function () {
    5250    do_action('smartpay_init');
     51
     52    // Load translations
     53    load_plugin_textdomain('smartpay', false, dirname(plugin_basename(__FILE__)) . '/resources/languages');
    5354});
  • smartpay/trunk/vendor/composer/installed.php

    r3205236 r3205237  
    22    'root' => array(
    33        'name' => 'wp-smartpay/core',
    4         'pretty_version' => 'v2.7.9',
    5         'version' => '2.7.9.0',
    6         'reference' => '1e531f029adbdeef65469698ca6d1ebcd2b1791d',
     4        'pretty_version' => 'v2.7.10',
     5        'version' => '2.7.10.0',
     6        'reference' => '2987689bd103036669562bccabbcc3b9d4a1391c',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    108108        ),
    109109        'wp-smartpay/core' => array(
    110             'pretty_version' => 'v2.7.9',
    111             'version' => '2.7.9.0',
    112             'reference' => '1e531f029adbdeef65469698ca6d1ebcd2b1791d',
     110            'pretty_version' => 'v2.7.10',
     111            'version' => '2.7.10.0',
     112            'reference' => '2987689bd103036669562bccabbcc3b9d4a1391c',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.