diff --git a/src/WpStarter/Http/Concerns/InteractsWithInput.php b/src/WpStarter/Http/Concerns/InteractsWithInput.php index c3f1644..0a777b8 100644 --- a/src/WpStarter/Http/Concerns/InteractsWithInput.php +++ b/src/WpStarter/Http/Concerns/InteractsWithInput.php @@ -7,6 +7,7 @@ use WpStarter\Support\Facades\Date; use SplFileInfo; use stdClass; +use Symfony\Component\HttpFoundation\InputBag; use Symfony\Component\VarDumper\VarDumper; trait InteractsWithInput @@ -507,6 +508,10 @@ protected function retrieveItem($source, $key, $default) return $this->$source->all(); } + if ($this->$source instanceof InputBag) { + return $this->$source->all()[$key] ?? $default; + } + return $this->$source->get($key, $default); } diff --git a/src/WpStarter/Wordpress/Application.php b/src/WpStarter/Wordpress/Application.php index 87f5481..ad73de5 100644 --- a/src/WpStarter/Wordpress/Application.php +++ b/src/WpStarter/Wordpress/Application.php @@ -11,7 +11,7 @@ class Application extends \WpStarter\Foundation\Application * * @var string */ - const VERSION = '1.9.3'; + const VERSION = '1.9.4'; protected $bootstrappedList = [];