wp-context

A single-class utility to check the current request context in WordPress sites.

GPL-2.0 License

Downloads
204.3K
Stars
31
Committers
2

Bot releases are visible (Hide)

wp-context - v1.5.0 Latest Release

Published by gmazzap almost 2 years ago

Changed

  • WordPress changed is_login_screen() to is_login()
  • In case is_login() is not available, use a 1:1 fallback for it
wp-context - v1.3.1

Published by gmazzap about 2 years ago

Fixed

  • REST request determined correctly when using 'rest_route' URL query var
wp-context - v1.4.0

Published by gmazzap about 2 years ago

Added

  • Support for new (WP 6.1) is_login_screen() function

Changed

  • Refreshed QA workflow: updated dependencies, made use of reusable workflows. Test all PHP versions from 7.1 to 8.1.
wp-context - v1.3.0

Published by gmazzap about 3 years ago

Added

  • WpContext::isWpActivate() / WpContext::WP_ACTIVATE to check for /wp-activate.php in multisite installations.
wp-context - v1.2.0

Published by gmazzap about 3 years ago

Changed

  • WpContext class is not final anymore, but most of its methods are now final.
wp-context - v1.1.1

Published by gmazzap over 3 years ago

Changed

  • Switch from roots/wordpress to johnpbloch/wordpress-core
  • Update Psalm
  • Improve PHPCS checks (fix testVersion, run for tests, check PSR-4)
  • Remove hook callbacks when not needed anymore
wp-context - v1.1.0

Published by gmazzap over 3 years ago

Added

  • Tests for PHP 8.0

Changed

  • Improved early detection of login requests
  • Improved early detection of REST requests, adding support for sites without pretty permalinks
  • Improved CI

Fixed

  • Nothing
wp-context - v1.0.0

Published by gmazzap about 4 years ago

First release