Changeset 3304543
- Timestamp:
- 06/02/2025 12:07:52 AM (10 months ago)
- Location:
- advanced-access-manager
- Files:
-
- 327 added
- 23 edited
-
tags/7.0.4 (added)
-
tags/7.0.4/aam.php (added)
-
tags/7.0.4/application (added)
-
tags/7.0.4/application/Addon (added)
-
tags/7.0.4/application/Addon/Repository.php (added)
-
tags/7.0.4/application/Audit (added)
-
tags/7.0.4/application/Audit/AuditCheckTrait.php (added)
-
tags/7.0.4/application/Audit/CoreUserRoleOptionIntegrityCheck.php (added)
-
tags/7.0.4/application/Audit/EditableFileSystemCheck.php (added)
-
tags/7.0.4/application/Audit/ElevatedCoreRoleCheck.php (added)
-
tags/7.0.4/application/Audit/EmptyUnusedRoleCheck.php (added)
-
tags/7.0.4/application/Audit/HighPrivilegeContentModeratorCheck.php (added)
-
tags/7.0.4/application/Audit/HighPrivilegeOrElevatedUserCheck.php (added)
-
tags/7.0.4/application/Audit/HighPrivilegeRoleCheck.php (added)
-
tags/7.0.4/application/Audit/HighPrivilegeUserCountCheck.php (added)
-
tags/7.0.4/application/Audit/RestfulAutoDiscoverEndpointCheck.php (added)
-
tags/7.0.4/application/Audit/RoleCapabilityNamingConventionCheck.php (added)
-
tags/7.0.4/application/Audit/RoleIntegrityCheck.php (added)
-
tags/7.0.4/application/Audit/RoleTransparencyCheck.php (added)
-
tags/7.0.4/application/Audit/XmlRpcEndpointCheck.php (added)
-
tags/7.0.4/application/Backend (added)
-
tags/7.0.4/application/Backend/AccessLevel.php (added)
-
tags/7.0.4/application/Backend/Feature (added)
-
tags/7.0.4/application/Backend/Feature.php (added)
-
tags/7.0.4/application/Backend/Feature/Abstract.php (added)
-
tags/7.0.4/application/Backend/Feature/Main (added)
-
tags/7.0.4/application/Backend/Feature/Main/AccessDeniedRedirect.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/AdminToolbar.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/ApiRoute.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/BackendMenu.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Capability.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Content.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Identity.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Jwt.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/LoginRedirect.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/LogoutRedirect.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Metabox.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/NotFoundRedirect.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Policy.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Url.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Welcome.php (added)
-
tags/7.0.4/application/Backend/Feature/Main/Widget.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings (added)
-
tags/7.0.4/application/Backend/Feature/Settings/ConfigPress.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Content.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Core.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Manager.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Multisite.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Security.php (added)
-
tags/7.0.4/application/Backend/Feature/Settings/Service.php (added)
-
tags/7.0.4/application/Backend/Manager.php (added)
-
tags/7.0.4/application/Backend/View (added)
-
tags/7.0.4/application/Backend/View.php (added)
-
tags/7.0.4/application/Backend/View/Helper.php (added)
-
tags/7.0.4/application/Backend/View/Localization.php (added)
-
tags/7.0.4/application/Backend/Widget (added)
-
tags/7.0.4/application/Backend/Widget/Login.php (added)
-
tags/7.0.4/application/Backend/tmpl (added)
-
tags/7.0.4/application/Backend/tmpl/index.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/iframe-footer.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/iframe-header.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/main-iframe.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/policy-metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/policy-parent-metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/policy-principal-metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/post-iframe.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/post-metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/principal-iframe.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/user-iframe.php (added)
-
tags/7.0.4/application/Backend/tmpl/metabox/user-metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/page (added)
-
tags/7.0.4/application/Backend/tmpl/page/addon-panel.php (added)
-
tags/7.0.4/application/Backend/tmpl/page/current-subject.php (added)
-
tags/7.0.4/application/Backend/tmpl/page/main-panel.php (added)
-
tags/7.0.4/application/Backend/tmpl/page/security-audit.php (added)
-
tags/7.0.4/application/Backend/tmpl/page/subject-panel-advanced.php (added)
-
tags/7.0.4/application/Backend/tmpl/page/subject-panel.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial (added)
-
tags/7.0.4/application/Backend/tmpl/partial/admin-toolbar-mode.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/api-route-mode.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/backend-menu-mode.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/content-access-form.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/content-service-tips.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/default-subject-tab.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/jwt-login-url.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/loading-content.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/login-form.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/multisite-sync-notification.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/post-list.php (added)
-
tags/7.0.4/application/Backend/tmpl/partial/visitor-subject-tab.php (added)
-
tags/7.0.4/application/Backend/tmpl/service (added)
-
tags/7.0.4/application/Backend/tmpl/service/access-denied-redirect.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/admin-toolbar.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/api-route.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/backend-menu.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/capability.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/content.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/identity.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/jwt.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/login-redirect.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/logout-redirect.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/metabox.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/not-found-redirect.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/policy.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/url.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/welcome.php (added)
-
tags/7.0.4/application/Backend/tmpl/service/widget.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings (added)
-
tags/7.0.4/application/Backend/tmpl/settings/configpress.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings/content.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings/core.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings/multisite.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings/security.php (added)
-
tags/7.0.4/application/Backend/tmpl/settings/service.php (added)
-
tags/7.0.4/application/Backend/tmpl/user (added)
-
tags/7.0.4/application/Backend/tmpl/user/multiple-roles.php (added)
-
tags/7.0.4/application/Backend/tmpl/widget (added)
-
tags/7.0.4/application/Backend/tmpl/widget/login-backend.php (added)
-
tags/7.0.4/application/Backend/tmpl/widget/login-frontend.php (added)
-
tags/7.0.4/application/Core (added)
-
tags/7.0.4/application/Core/Console.php (added)
-
tags/7.0.4/application/Core/Gateway.php (added)
-
tags/7.0.4/application/Core/Migration.php (added)
-
tags/7.0.4/application/Framework (added)
-
tags/7.0.4/application/Framework/AccessLevel (added)
-
tags/7.0.4/application/Framework/AccessLevel/BaseTrait.php (added)
-
tags/7.0.4/application/Framework/AccessLevel/Default.php (added)
-
tags/7.0.4/application/Framework/AccessLevel/Interface.php (added)
-
tags/7.0.4/application/Framework/AccessLevel/Role.php (added)
-
tags/7.0.4/application/Framework/AccessLevel/User.php (added)
-
tags/7.0.4/application/Framework/AccessLevel/Visitor.php (added)
-
tags/7.0.4/application/Framework/Manager.php (added)
-
tags/7.0.4/application/Framework/Policy (added)
-
tags/7.0.4/application/Framework/Policy/Condition.php (added)
-
tags/7.0.4/application/Framework/Policy/Marker.php (added)
-
tags/7.0.4/application/Framework/Policy/Typecast.php (added)
-
tags/7.0.4/application/Framework/Policy/Xpath.php (added)
-
tags/7.0.4/application/Framework/Preference (added)
-
tags/7.0.4/application/Framework/Preference/AccessDeniedRedirect.php (added)
-
tags/7.0.4/application/Framework/Preference/BaseTrait.php (added)
-
tags/7.0.4/application/Framework/Preference/Generic.php (added)
-
tags/7.0.4/application/Framework/Preference/Interface.php (added)
-
tags/7.0.4/application/Framework/Preference/LoginRedirect.php (added)
-
tags/7.0.4/application/Framework/Preference/LogoutRedirect.php (added)
-
tags/7.0.4/application/Framework/Preference/NotFoundRedirect.php (added)
-
tags/7.0.4/application/Framework/Proxy (added)
-
tags/7.0.4/application/Framework/Proxy/Interface.php (added)
-
tags/7.0.4/application/Framework/Proxy/Role.php (added)
-
tags/7.0.4/application/Framework/Proxy/User.php (added)
-
tags/7.0.4/application/Framework/Resource (added)
-
tags/7.0.4/application/Framework/Resource/AdminToolbar.php (added)
-
tags/7.0.4/application/Framework/Resource/ApiRoute.php (added)
-
tags/7.0.4/application/Framework/Resource/BackendMenu.php (added)
-
tags/7.0.4/application/Framework/Resource/BaseTrait.php (added)
-
tags/7.0.4/application/Framework/Resource/Capability.php (added)
-
tags/7.0.4/application/Framework/Resource/Generic.php (added)
-
tags/7.0.4/application/Framework/Resource/Hook.php (added)
-
tags/7.0.4/application/Framework/Resource/Interface.php (added)
-
tags/7.0.4/application/Framework/Resource/Metabox.php (added)
-
tags/7.0.4/application/Framework/Resource/Policy.php (added)
-
tags/7.0.4/application/Framework/Resource/Post.php (added)
-
tags/7.0.4/application/Framework/Resource/PostType.php (added)
-
tags/7.0.4/application/Framework/Resource/Role.php (added)
-
tags/7.0.4/application/Framework/Resource/Taxonomy.php (added)
-
tags/7.0.4/application/Framework/Resource/Term.php (added)
-
tags/7.0.4/application/Framework/Resource/Url.php (added)
-
tags/7.0.4/application/Framework/Resource/User.php (added)
-
tags/7.0.4/application/Framework/Resource/Widget.php (added)
-
tags/7.0.4/application/Framework/Service (added)
-
tags/7.0.4/application/Framework/Service/AccessDeniedRedirect.php (added)
-
tags/7.0.4/application/Framework/Service/AdminToolbar.php (added)
-
tags/7.0.4/application/Framework/Service/ApiRoutes.php (added)
-
tags/7.0.4/application/Framework/Service/BackendMenu.php (added)
-
tags/7.0.4/application/Framework/Service/BaseTrait.php (added)
-
tags/7.0.4/application/Framework/Service/Capabilities.php (added)
-
tags/7.0.4/application/Framework/Service/Hooks.php (added)
-
tags/7.0.4/application/Framework/Service/Interface.php (added)
-
tags/7.0.4/application/Framework/Service/Jwts.php (added)
-
tags/7.0.4/application/Framework/Service/LoginRedirect.php (added)
-
tags/7.0.4/application/Framework/Service/LogoutRedirect.php (added)
-
tags/7.0.4/application/Framework/Service/Metaboxes.php (added)
-
tags/7.0.4/application/Framework/Service/NotFoundRedirect.php (added)
-
tags/7.0.4/application/Framework/Service/Policies.php (added)
-
tags/7.0.4/application/Framework/Service/PostTypes.php (added)
-
tags/7.0.4/application/Framework/Service/Posts.php (added)
-
tags/7.0.4/application/Framework/Service/Roles.php (added)
-
tags/7.0.4/application/Framework/Service/Settings.php (added)
-
tags/7.0.4/application/Framework/Service/Taxonomies.php (added)
-
tags/7.0.4/application/Framework/Service/Terms.php (added)
-
tags/7.0.4/application/Framework/Service/Urls.php (added)
-
tags/7.0.4/application/Framework/Service/Users.php (added)
-
tags/7.0.4/application/Framework/Service/Widgets.php (added)
-
tags/7.0.4/application/Framework/Type (added)
-
tags/7.0.4/application/Framework/Type/AccessLevel.php (added)
-
tags/7.0.4/application/Framework/Type/Preference.php (added)
-
tags/7.0.4/application/Framework/Type/Resource.php (added)
-
tags/7.0.4/application/Framework/Utility (added)
-
tags/7.0.4/application/Framework/Utility/AccessLevels.php (added)
-
tags/7.0.4/application/Framework/Utility/BaseTrait.php (added)
-
tags/7.0.4/application/Framework/Utility/Cache.php (added)
-
tags/7.0.4/application/Framework/Utility/Capabilities.php (added)
-
tags/7.0.4/application/Framework/Utility/Config.php (added)
-
tags/7.0.4/application/Framework/Utility/Content.php (added)
-
tags/7.0.4/application/Framework/Utility/Db.php (added)
-
tags/7.0.4/application/Framework/Utility/Interface.php (added)
-
tags/7.0.4/application/Framework/Utility/Jwt.php (added)
-
tags/7.0.4/application/Framework/Utility/Misc.php (added)
-
tags/7.0.4/application/Framework/Utility/ObjectCache.php (added)
-
tags/7.0.4/application/Framework/Utility/Policy.php (added)
-
tags/7.0.4/application/Framework/Utility/Redirect.php (added)
-
tags/7.0.4/application/Framework/Utility/Rest.php (added)
-
tags/7.0.4/application/Framework/Utility/Roles.php (added)
-
tags/7.0.4/application/Framework/Utility/Users.php (added)
-
tags/7.0.4/application/Migration (added)
-
tags/7.0.4/application/Migration/Migration_700.php (added)
-
tags/7.0.4/application/Restful (added)
-
tags/7.0.4/application/Restful/AccessDeniedRedirect.php (added)
-
tags/7.0.4/application/Restful/AdminToolbar.php (added)
-
tags/7.0.4/application/Restful/ApiRoute.php (added)
-
tags/7.0.4/application/Restful/BackendMenu.php (added)
-
tags/7.0.4/application/Restful/BackwardCompatibility.php (added)
-
tags/7.0.4/application/Restful/Capability.php (added)
-
tags/7.0.4/application/Restful/Configs.php (added)
-
tags/7.0.4/application/Restful/Content.php (added)
-
tags/7.0.4/application/Restful/Identity.php (added)
-
tags/7.0.4/application/Restful/Jwt.php (added)
-
tags/7.0.4/application/Restful/LoginRedirect.php (added)
-
tags/7.0.4/application/Restful/LogoutRedirect.php (added)
-
tags/7.0.4/application/Restful/Metabox.php (added)
-
tags/7.0.4/application/Restful/Mu.php (added)
-
tags/7.0.4/application/Restful/NotFoundRedirect.php (added)
-
tags/7.0.4/application/Restful/Policies.php (added)
-
tags/7.0.4/application/Restful/Roles.php (added)
-
tags/7.0.4/application/Restful/SecureLogin.php (added)
-
tags/7.0.4/application/Restful/SecurityAudit.php (added)
-
tags/7.0.4/application/Restful/ServiceTrait.php (added)
-
tags/7.0.4/application/Restful/Settings.php (added)
-
tags/7.0.4/application/Restful/Urls.php (added)
-
tags/7.0.4/application/Restful/Users.php (added)
-
tags/7.0.4/application/Restful/Widgets.php (added)
-
tags/7.0.4/application/Service (added)
-
tags/7.0.4/application/Service/AccessDeniedRedirect.php (added)
-
tags/7.0.4/application/Service/AdminToolbar.php (added)
-
tags/7.0.4/application/Service/ApiRoute.php (added)
-
tags/7.0.4/application/Service/BackendMenu.php (added)
-
tags/7.0.4/application/Service/BaseTrait.php (added)
-
tags/7.0.4/application/Service/Capability.php (added)
-
tags/7.0.4/application/Service/Content.php (added)
-
tags/7.0.4/application/Service/Core.php (added)
-
tags/7.0.4/application/Service/Hooks.php (added)
-
tags/7.0.4/application/Service/Identity.php (added)
-
tags/7.0.4/application/Service/Jwt.php (added)
-
tags/7.0.4/application/Service/LoginRedirect.php (added)
-
tags/7.0.4/application/Service/LogoutRedirect.php (added)
-
tags/7.0.4/application/Service/Metaboxes.php (added)
-
tags/7.0.4/application/Service/NotFoundRedirect.php (added)
-
tags/7.0.4/application/Service/Policies.php (added)
-
tags/7.0.4/application/Service/SecureLogin.php (added)
-
tags/7.0.4/application/Service/SecurityAudit.php (added)
-
tags/7.0.4/application/Service/Shortcode (added)
-
tags/7.0.4/application/Service/Shortcode/Factory.php (added)
-
tags/7.0.4/application/Service/Shortcode/Handler (added)
-
tags/7.0.4/application/Service/Shortcode/Handler/Content.php (added)
-
tags/7.0.4/application/Service/Shortcode/Handler/LoginForm.php (added)
-
tags/7.0.4/application/Service/Shortcode/Handler/LoginRedirect.php (added)
-
tags/7.0.4/application/Service/Shortcode/Handler/PostList.php (added)
-
tags/7.0.4/application/Service/Shortcodes.php (added)
-
tags/7.0.4/application/Service/Urls.php (added)
-
tags/7.0.4/application/Service/Welcome.php (added)
-
tags/7.0.4/application/Service/Widgets.php (added)
-
tags/7.0.4/autoloader.php (added)
-
tags/7.0.4/index.php (added)
-
tags/7.0.4/lang (added)
-
tags/7.0.4/lang/advanced-access-manager-en_US.mo (added)
-
tags/7.0.4/lang/advanced-access-manager-en_US.po (added)
-
tags/7.0.4/license.txt (added)
-
tags/7.0.4/media (added)
-
tags/7.0.4/media/active-menu.data (added)
-
tags/7.0.4/media/css (added)
-
tags/7.0.4/media/css/aam.css (added)
-
tags/7.0.4/media/css/vendor.min.css (added)
-
tags/7.0.4/media/font (added)
-
tags/7.0.4/media/font/fontello.eot (added)
-
tags/7.0.4/media/font/fontello.svg (added)
-
tags/7.0.4/media/font/fontello.ttf (added)
-
tags/7.0.4/media/font/fontello.woff (added)
-
tags/7.0.4/media/font/fontello.woff2 (added)
-
tags/7.0.4/media/js (added)
-
tags/7.0.4/media/js/aam.js (added)
-
tags/7.0.4/media/js/iframe-content.js (added)
-
tags/7.0.4/media/js/iframe-resizer.js (added)
-
tags/7.0.4/media/js/vendor.js (added)
-
tags/7.0.4/readme.txt (added)
-
tags/7.0.4/vendor (added)
-
tags/7.0.4/vendor/autoload.php (added)
-
tags/7.0.4/vendor/composer (added)
-
tags/7.0.4/vendor/composer/Comparator.php (added)
-
tags/7.0.4/vendor/composer/Constraint (added)
-
tags/7.0.4/vendor/composer/Constraint/AbstractConstraint.php (added)
-
tags/7.0.4/vendor/composer/Constraint/Constraint.php (added)
-
tags/7.0.4/vendor/composer/Constraint/ConstraintInterface.php (added)
-
tags/7.0.4/vendor/composer/Constraint/EmptyConstraint.php (added)
-
tags/7.0.4/vendor/composer/Constraint/MultiConstraint.php (added)
-
tags/7.0.4/vendor/composer/Semver.php (added)
-
tags/7.0.4/vendor/composer/VersionParser.php (added)
-
tags/7.0.4/vendor/psr-http-message (added)
-
tags/7.0.4/vendor/psr-http-message/LICENSE (added)
-
tags/7.0.4/vendor/psr-http-message/MessageInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/RequestInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/ResponseInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/ServerRequestInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/StreamInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/UploadedFileInterface.php (added)
-
tags/7.0.4/vendor/psr-http-message/UriInterface.php (added)
-
tags/7.0.4/vendor/whip (added)
-
tags/7.0.4/vendor/whip/IpRange (added)
-
tags/7.0.4/vendor/whip/IpRange/IpRange.php (added)
-
tags/7.0.4/vendor/whip/IpRange/IpWhitelist.php (added)
-
tags/7.0.4/vendor/whip/IpRange/Ipv4Range.php (added)
-
tags/7.0.4/vendor/whip/IpRange/Ipv6Range.php (added)
-
tags/7.0.4/vendor/whip/LICENSE (added)
-
tags/7.0.4/vendor/whip/Request (added)
-
tags/7.0.4/vendor/whip/Request/Psr7RequestAdapter.php (added)
-
tags/7.0.4/vendor/whip/Request/RequestAdapter.php (added)
-
tags/7.0.4/vendor/whip/Request/SuperglobalRequestAdapter.php (added)
-
tags/7.0.4/vendor/whip/Whip.php (added)
-
trunk/aam.php (modified) (3 diffs)
-
trunk/application/Addon/Repository.php (modified) (1 diff)
-
trunk/application/Migration/Migration_700.php (modified) (1 diff)
-
trunk/application/Restful/SecurityAudit.php (modified) (1 diff)
-
trunk/application/Service/AccessDeniedRedirect.php (modified) (2 diffs)
-
trunk/application/Service/AdminToolbar.php (modified) (3 diffs)
-
trunk/application/Service/ApiRoute.php (modified) (2 diffs)
-
trunk/application/Service/BackendMenu.php (modified) (2 diffs)
-
trunk/application/Service/Capability.php (modified) (4 diffs)
-
trunk/application/Service/Content.php (modified) (7 diffs)
-
trunk/application/Service/Core.php (modified) (4 diffs)
-
trunk/application/Service/Identity.php (modified) (2 diffs)
-
trunk/application/Service/Jwt.php (modified) (11 diffs)
-
trunk/application/Service/LoginRedirect.php (modified) (4 diffs)
-
trunk/application/Service/LogoutRedirect.php (modified) (3 diffs)
-
trunk/application/Service/Metaboxes.php (modified) (2 diffs)
-
trunk/application/Service/NotFoundRedirect.php (modified) (3 diffs)
-
trunk/application/Service/Policies.php (modified) (2 diffs)
-
trunk/application/Service/SecureLogin.php (modified) (3 diffs)
-
trunk/application/Service/SecurityAudit.php (modified) (2 diffs)
-
trunk/application/Service/Urls.php (modified) (2 diffs)
-
trunk/application/Service/Widgets.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-access-manager/trunk/aam.php
r3296450 r3304543 4 4 * Plugin Name: Advanced Access Manager 5 5 * Description: Powerfully robust WordPress plugin designed to help you control every aspect of your website, your way. 6 * Version: 7.0. 36 * Version: 7.0.4 7 7 * Author: VasylTech LLC <support@aamplugin.com> 8 8 * Author URI: https://aamportal.com … … 288 288 define('AAM_MEDIA', plugins_url('/media', __FILE__)); 289 289 define('AAM_KEY', 'advanced-access-manager'); 290 define('AAM_VERSION', '7.0. 3');290 define('AAM_VERSION', '7.0.4'); 291 291 define('AAM_BASEDIR', __DIR__); 292 292 … … 298 298 AAM_Autoloader::register(); 299 299 300 // Keep this as the lowest priority 301 add_action('plugins_loaded', 'AAM::on_plugins_loaded', -999); 302 303 // The highest priority (higher the core) 304 // this is important to have to catch events like register core post types 305 add_action('init', 'AAM::on_init', -1); 300 // Load AAM service and register all the necessary initializations 301 add_action('plugins_loaded', 'AAM::on_plugins_loaded'); 302 add_action('init', 'AAM::on_init'); 306 303 307 304 // Activation & deactivation hooks -
advanced-access-manager/trunk/application/Addon/Repository.php
r3294227 r3304543 32 32 * Note! This is the latest version at the time of AAM publishing 33 33 * 34 * @version 7.0. 234 * @version 7.0.4 35 35 */ 36 const LATEST_PREMIUM_VERSION = '7.0. 2';36 const LATEST_PREMIUM_VERSION = '7.0.3'; 37 37 38 38 /** -
advanced-access-manager/trunk/application/Migration/Migration_700.php
r3290564 r3304543 917 917 918 918 $item = [ 919 'effect' => !empty($areas) && $this->_convert_to_effect( 920 $settings 921 ), 919 'effect' => !empty($areas) ? 920 $this->_convert_to_effect($settings) : 'allow', 922 921 'on' => $areas 923 922 ]; -
advanced-access-manager/trunk/application/Restful/SecurityAudit.php
r3286780 r3304543 170 170 ]); 171 171 172 // print_r($result);173 174 172 // Get HTTP code 175 173 $http_code = wp_remote_retrieve_response_code($result); -
advanced-access-manager/trunk/application/Service/AccessDeniedRedirect.php
r3286780 r3304543 25 25 * @access protected 26 26 * 27 * @version 7.0. 027 * @version 7.0.4 28 28 */ 29 29 protected function __construct() 30 { 31 // Register RESTful API endpoints 32 AAM_Restful_AccessDeniedRedirect::bootstrap(); 33 34 add_action('init', function() { 35 $this->initialize_hooks(); 36 }, PHP_INT_MAX); 37 } 38 39 /** 40 * Initialize Access Denied Redirect hooks 41 * 42 * @return void 43 * @access protected 44 * 45 * @version 7.0.4 46 */ 47 protected function initialize_hooks() 30 48 { 31 49 if (is_admin()) { … … 36 54 } 37 55 38 // Register RESTful API endpoints39 AAM_Restful_AccessDeniedRedirect::bootstrap();40 41 $this->initialize_hooks();42 }43 44 /**45 * Initialize Access Denied Redirect hooks46 *47 * @return void48 * @access protected49 *50 * @version 7.0.051 */52 protected function initialize_hooks()53 {54 56 add_action('aam_access_denied_redirect_handler_filter', function($handler) { 55 57 if (is_null($handler)) { -
advanced-access-manager/trunk/application/Service/AdminToolbar.php
r3286780 r3304543 25 25 * @access protected 26 26 * 27 * @version 7.0. 027 * @version 7.0.4 28 28 */ 29 29 protected function __construct() 30 { 31 // Register RESTful API endpoints 32 AAM_Restful_AdminToolbar::bootstrap(); 33 34 add_action('init', function() { 35 $this->initialize_hooks(); 36 }, PHP_INT_MAX); 37 } 38 39 /** 40 * Initialize Admin Toolbar hooks 41 * 42 * @return void 43 * @access protected 44 * 45 * @version 7.0.4 46 */ 47 protected function initialize_hooks() 30 48 { 31 49 if (is_admin()) { … … 34 52 }); 35 53 } 36 37 // Register RESTful API endpoints38 AAM_Restful_AdminToolbar::bootstrap();39 54 40 55 // Cache admin toolbar … … 45 60 } 46 61 47 $this->initialize_hooks();48 }49 50 /**51 * Initialize Admin Toolbar hooks52 *53 * @return void54 * @access protected55 *56 * @version 7.0.057 */58 protected function initialize_hooks()59 {60 62 add_action('wp_before_admin_bar_render', function () { 61 63 $this->_filter_admin_toolbar(); -
advanced-access-manager/trunk/application/Service/ApiRoute.php
r3286780 r3304543 24 24 * @access protected 25 25 * 26 * @version 7.0. 026 * @version 7.0.4 27 27 */ 28 28 protected function __construct() 29 { 30 // Register RESTful API endpoints 31 AAM_Restful_ApiRoute::bootstrap(); 32 33 add_action('init', function() { 34 $this->initialize_hooks(); 35 }, PHP_INT_MAX); 36 } 37 38 /** 39 * Initialize API Route hooks 40 * 41 * @return void 42 * @access protected 43 * 44 * @version 7.0.4 45 */ 46 protected function initialize_hooks() 29 47 { 30 48 if (is_admin()) { … … 35 53 } 36 54 37 // Register RESTful API endpoints38 AAM_Restful_ApiRoute::bootstrap();39 40 $this->initialize_hooks();41 }42 43 /**44 * Initialize API Route hooks45 *46 * @return void47 * @access protected48 *49 * @version 7.0.050 */51 protected function initialize_hooks()52 {53 55 // Register API manager is applicable 54 56 add_filter('rest_pre_dispatch', function($result, $_, $request) { -
advanced-access-manager/trunk/application/Service/BackendMenu.php
r3294227 r3304543 24 24 * @access protected 25 25 * 26 * @version 7.0. 026 * @version 7.0.4 27 27 */ 28 28 protected function __construct() 29 { 30 // Register RESTful API endpoints 31 AAM_Restful_BackendMenu::bootstrap(); 32 33 add_action('init', function() { 34 $this->initialize_hooks(); 35 }, PHP_INT_MAX); 36 } 37 38 /** 39 * Initialize Admin Menu hooks 40 * 41 * @return void 42 * @access protected 43 * 44 * @version 7.0.4 45 */ 46 protected function initialize_hooks() 29 47 { 30 48 if (is_admin()) { … … 33 51 AAM_Backend_Feature_Main_BackendMenu::register(); 34 52 }); 35 } 36 37 // Register RESTful API endpoints 38 AAM_Restful_BackendMenu::bootstrap(); 39 40 $this->initialize_hooks(); 41 } 42 43 /** 44 * Initialize Admin Menu hooks 45 * 46 * @return void 47 * @access protected 48 * 49 * @version 7.0.2 50 */ 51 protected function initialize_hooks() 52 { 53 if (is_admin()) { 53 54 54 // Filter the admin menu only when we are not on the AAM page and user 55 55 // does not have the ability to manage admin menu through AAM UI -
advanced-access-manager/trunk/application/Service/Capability.php
r3286780 r3304543 43 43 * @access protected 44 44 * 45 * @version 7.0. 045 * @version 7.0.4 46 46 */ 47 47 protected function __construct() 48 48 { 49 49 add_filter('aam_get_config_filter', function($result, $key) { 50 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {50 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 51 51 $result = self::DEFAULT_CONFIG[$key]; 52 52 } … … 55 55 }, 10, 2); 56 56 57 if (is_admin()) { 58 // Hook that initialize the AAM UI part of the service 59 add_action('aam_initialize_ui_action', function () { 60 AAM_Backend_Feature_Main_Capability::register(); 61 }); 62 } 57 // Register RESTful API endpoints 58 AAM_Restful_Capability::bootstrap(); 63 59 64 $this->initialize_hooks(); 60 add_action('init', function() { 61 $this->initialize_hooks(); 62 }, PHP_INT_MAX); 65 63 } 66 64 … … 71 69 * @access protected 72 70 * 73 * @version 7.0. 071 * @version 7.0.4 74 72 */ 75 73 protected function initialize_hooks() 76 74 { 77 // Register RESTful API endpoints 78 AAM_Restful_Capability::bootstrap(); 75 if (is_admin()) { 76 // Hook that initialize the AAM UI part of the service 77 add_action('aam_initialize_ui_action', function () { 78 AAM_Backend_Feature_Main_Capability::register(); 79 }); 80 } 79 81 80 82 // Capability descriptions hooks … … 87 89 88 90 // Initialize the list of capabilities with descriptions 89 add_action('init', function() { 90 $this->_capabilities = [ 91 'switch_themes' => __('Allows a user to change the active theme of a website, altering its overall design and layout.', 'advanced-access-manager'), 92 'edit_themes' => __('Enables a user to directly modify the code of theme files, allowing for customization and adjustments to the website\'s appearance and functionality.', 'advanced-access-manager'), 93 'edit_theme_options' => __('Permits a user to access and modify theme settings through the WordPress Customizer, enabling personalized adjustments to the site\'s appearance and functionality without altering code.', 'advanced-access-manager'), 94 'install_themes' => __('Allows a user to add new themes to a website from the WordPress Theme Directory or by uploading theme files directly.', 'advanced-access-manager'), 95 'activate_plugins' => __('Enables a user to activate or deactivate plugins, thereby controlling the addition or removal of specific functionalities on the website.', 'advanced-access-manager'), 96 'edit_plugins' => __('Allows a user to directly modify the code of installed plugin files, enabling custom changes and enhancements to the site\'s functionality.', 'advanced-access-manager'), 97 'install_plugins' => __('Allows a user to add new plugins to a website, expanding its functionality by integrating additional features and tools.', 'advanced-access-manager'), 98 'edit_users' => __('Allows a user to modify the profiles and settings of existing users, including their roles, personal information, and permissions.', 'advanced-access-manager'), 99 'edit_files' => __('Allows a user to edit files in the theme or plugin editor', 'advanced-access-manager'), 100 'manage_options' => __('Allows a user to manage all site options and settings', 'advanced-access-manager'), 101 'moderate_comments' => __('Allows a user to moderate comments and manage their status', 'advanced-access-manager'), 102 'manage_categories' => __('Allows a user to manage and edit categories for posts', 'advanced-access-manager'), 103 'manage_links' => __('Allows a user to manage and edit links in the blogroll', 'advanced-access-manager'), 104 'upload_files' => __('Allows a user to upload files to the media library', 'advanced-access-manager'), 105 'import' => __('Allows a user to import content from external sources', 'advanced-access-manager'), 106 'unfiltered_html' => __('Allows a user to post unfiltered HTML content', 'advanced-access-manager'), 107 'edit_posts' => __('Allows a user to edit posts created by the user', 'advanced-access-manager'), 108 'edit_others_posts' => __('Allows a user to edit posts created by other users', 'advanced-access-manager'), 109 'edit_published_posts' => __('Allows a user to edit posts that are already published', 'advanced-access-manager'), 110 'publish_posts' => __('Allows a user to publish new posts', 'advanced-access-manager'), 111 'edit_pages' => __('Allows a user to edit pages on the site', 'advanced-access-manager'), 112 'read' => __('Allows a user to read and view site content', 'advanced-access-manager'), 113 'publish_pages' => __('Publish pages on the site', 'advanced-access-manager'), 114 'edit_others_pages' => __('Edit pages created by other users', 'advanced-access-manager'), 115 'edit_published_pages' => __('Edit pages that are already published', 'advanced-access-manager'), 116 'delete_pages' => __('Delete pages', 'advanced-access-manager'), 117 'delete_others_pages' => __('Delete pages created by other users', 'advanced-access-manager'), 118 'delete_published_pages' => __('Delete pages that are already published', 'advanced-access-manager'), 119 'delete_posts' => __('Delete posts', 'advanced-access-manager'), 120 'delete_others_posts' => __('Delete posts created by other users', 'advanced-access-manager'), 121 'delete_published_posts' => __('Delete posts that are already published', 'advanced-access-manager'), 122 'delete_private_posts' => __('Delete private posts', 'advanced-access-manager'), 123 'edit_private_posts' => __('Edit private posts', 'advanced-access-manager'), 124 'read_private_posts' => __('Read private posts', 'advanced-access-manager'), 125 'delete_private_pages' => __('Delete private pages', 'advanced-access-manager'), 126 'edit_private_pages' => __('Edit private pages', 'advanced-access-manager'), 127 'read_private_pages' => __('Read private pages', 'advanced-access-manager'), 128 'delete_users' => __('Delete users', 'advanced-access-manager'), 129 'create_users' => __('Create new users', 'advanced-access-manager'), 130 'unfiltered_upload' => __('Upload files without filtering', 'advanced-access-manager'), 131 'edit_dashboard' => __('Access and edit the dashboard', 'advanced-access-manager'), 132 'customize' => __('Customize site appearance and options', 'advanced-access-manager'), 133 'delete_site' => __('Delete the entire site', 'advanced-access-manager'), 134 'update_plugins' => __('Update installed plugins', 'advanced-access-manager'), 135 'delete_plugins' => __('Delete installed plugins', 'advanced-access-manager'), 136 'update_themes' => __('Update installed themes', 'advanced-access-manager'), 137 'update_core' => __('Update WordPress core', 'advanced-access-manager'), 138 'list_users' => __('View list of all users', 'advanced-access-manager'), 139 'remove_users' => __('Remove users from the site', 'advanced-access-manager'), 140 'add_users' => __('Add new users to the site', 'advanced-access-manager'), 141 'promote_users' => __('Promote users to higher roles', 'advanced-access-manager'), 142 'delete_themes' => __('Delete installed themes', 'advanced-access-manager'), 143 'export' => __('Export data from the site', 'advanced-access-manager'), 144 'edit_comment' => __('Edit comments left on the site', 'advanced-access-manager'), 145 'create_sites' => __('Create new sites in a multisite network', 'advanced-access-manager'), 146 'delete_sites' => __('Delete sites in a multisite network', 'advanced-access-manager'), 147 'manage_network' => __('Manage the entire network of sites', 'advanced-access-manager'), 148 'manage_sites' => __('Manage individual sites in a multisite network', 'advanced-access-manager'), 149 'manage_network_users' => __('Manage users across the entire network', 'advanced-access-manager'), 150 'manage_network_themes' => __('Manage themes across the entire network', 'advanced-access-manager'), 151 'manage_network_options' => __('Manage network-wide options and settings', 'advanced-access-manager'), 152 'manage_network_plugins' => __('Manage plugins across the entire network', 'advanced-access-manager'), 153 'upload_plugins' => __('Upload plugins to the site', 'advanced-access-manager'), 154 'upload_themes' => __('Upload themes to the site', 'advanced-access-manager'), 155 'upgrade_network' => __('Upgrade the entire network of sites', 'advanced-access-manager'), 156 'setup_network' => __('Set up and configure a multisite network', 'advanced-access-manager'), 157 'level_0' => __('Read only user level. Typically the Subscriber role.', 'advanced-access-manager'), 158 'level_1' => __('Limited access level. Typically the Contributor role.', 'advanced-access-manager'), 159 'level_2' => __('Author role access level', 'advanced-access-manager'), 160 'level_3' => __('No specific meaning.', 'advanced-access-manager'), 161 'level_4' => __('No specific meaning.', 'advanced-access-manager'), 162 'level_5' => __('No specific meaning.', 'advanced-access-manager'), 163 'level_6' => __('No specific meaning.', 'advanced-access-manager'), 164 'level_7' => __('Editor access level.', 'advanced-access-manager'), 165 'level_8' => __('No specific meaning.', 'advanced-access-manager'), 166 'level_9' => __('No specific meaning.', 'advanced-access-manager'), 167 'level_10' => __('The highest level capabilities. Typically the Administrator role.', 'advanced-access-manager') 168 ]; 169 }); 91 $this->_capabilities = [ 92 'switch_themes' => __('Allows a user to change the active theme of a website, altering its overall design and layout.', 'advanced-access-manager'), 93 'edit_themes' => __('Enables a user to directly modify the code of theme files, allowing for customization and adjustments to the website\'s appearance and functionality.', 'advanced-access-manager'), 94 'edit_theme_options' => __('Permits a user to access and modify theme settings through the WordPress Customizer, enabling personalized adjustments to the site\'s appearance and functionality without altering code.', 'advanced-access-manager'), 95 'install_themes' => __('Allows a user to add new themes to a website from the WordPress Theme Directory or by uploading theme files directly.', 'advanced-access-manager'), 96 'activate_plugins' => __('Enables a user to activate or deactivate plugins, thereby controlling the addition or removal of specific functionalities on the website.', 'advanced-access-manager'), 97 'edit_plugins' => __('Allows a user to directly modify the code of installed plugin files, enabling custom changes and enhancements to the site\'s functionality.', 'advanced-access-manager'), 98 'install_plugins' => __('Allows a user to add new plugins to a website, expanding its functionality by integrating additional features and tools.', 'advanced-access-manager'), 99 'edit_users' => __('Allows a user to modify the profiles and settings of existing users, including their roles, personal information, and permissions.', 'advanced-access-manager'), 100 'edit_files' => __('Allows a user to edit files in the theme or plugin editor', 'advanced-access-manager'), 101 'manage_options' => __('Allows a user to manage all site options and settings', 'advanced-access-manager'), 102 'moderate_comments' => __('Allows a user to moderate comments and manage their status', 'advanced-access-manager'), 103 'manage_categories' => __('Allows a user to manage and edit categories for posts', 'advanced-access-manager'), 104 'manage_links' => __('Allows a user to manage and edit links in the blogroll', 'advanced-access-manager'), 105 'upload_files' => __('Allows a user to upload files to the media library', 'advanced-access-manager'), 106 'import' => __('Allows a user to import content from external sources', 'advanced-access-manager'), 107 'unfiltered_html' => __('Allows a user to post unfiltered HTML content', 'advanced-access-manager'), 108 'edit_posts' => __('Allows a user to edit posts created by the user', 'advanced-access-manager'), 109 'edit_others_posts' => __('Allows a user to edit posts created by other users', 'advanced-access-manager'), 110 'edit_published_posts' => __('Allows a user to edit posts that are already published', 'advanced-access-manager'), 111 'publish_posts' => __('Allows a user to publish new posts', 'advanced-access-manager'), 112 'edit_pages' => __('Allows a user to edit pages on the site', 'advanced-access-manager'), 113 'read' => __('Allows a user to read and view site content', 'advanced-access-manager'), 114 'publish_pages' => __('Publish pages on the site', 'advanced-access-manager'), 115 'edit_others_pages' => __('Edit pages created by other users', 'advanced-access-manager'), 116 'edit_published_pages' => __('Edit pages that are already published', 'advanced-access-manager'), 117 'delete_pages' => __('Delete pages', 'advanced-access-manager'), 118 'delete_others_pages' => __('Delete pages created by other users', 'advanced-access-manager'), 119 'delete_published_pages' => __('Delete pages that are already published', 'advanced-access-manager'), 120 'delete_posts' => __('Delete posts', 'advanced-access-manager'), 121 'delete_others_posts' => __('Delete posts created by other users', 'advanced-access-manager'), 122 'delete_published_posts' => __('Delete posts that are already published', 'advanced-access-manager'), 123 'delete_private_posts' => __('Delete private posts', 'advanced-access-manager'), 124 'edit_private_posts' => __('Edit private posts', 'advanced-access-manager'), 125 'read_private_posts' => __('Read private posts', 'advanced-access-manager'), 126 'delete_private_pages' => __('Delete private pages', 'advanced-access-manager'), 127 'edit_private_pages' => __('Edit private pages', 'advanced-access-manager'), 128 'read_private_pages' => __('Read private pages', 'advanced-access-manager'), 129 'delete_users' => __('Delete users', 'advanced-access-manager'), 130 'create_users' => __('Create new users', 'advanced-access-manager'), 131 'unfiltered_upload' => __('Upload files without filtering', 'advanced-access-manager'), 132 'edit_dashboard' => __('Access and edit the dashboard', 'advanced-access-manager'), 133 'customize' => __('Customize site appearance and options', 'advanced-access-manager'), 134 'delete_site' => __('Delete the entire site', 'advanced-access-manager'), 135 'update_plugins' => __('Update installed plugins', 'advanced-access-manager'), 136 'delete_plugins' => __('Delete installed plugins', 'advanced-access-manager'), 137 'update_themes' => __('Update installed themes', 'advanced-access-manager'), 138 'update_core' => __('Update WordPress core', 'advanced-access-manager'), 139 'list_users' => __('View list of all users', 'advanced-access-manager'), 140 'remove_users' => __('Remove users from the site', 'advanced-access-manager'), 141 'add_users' => __('Add new users to the site', 'advanced-access-manager'), 142 'promote_users' => __('Promote users to higher roles', 'advanced-access-manager'), 143 'delete_themes' => __('Delete installed themes', 'advanced-access-manager'), 144 'export' => __('Export data from the site', 'advanced-access-manager'), 145 'edit_comment' => __('Edit comments left on the site', 'advanced-access-manager'), 146 'create_sites' => __('Create new sites in a multisite network', 'advanced-access-manager'), 147 'delete_sites' => __('Delete sites in a multisite network', 'advanced-access-manager'), 148 'manage_network' => __('Manage the entire network of sites', 'advanced-access-manager'), 149 'manage_sites' => __('Manage individual sites in a multisite network', 'advanced-access-manager'), 150 'manage_network_users' => __('Manage users across the entire network', 'advanced-access-manager'), 151 'manage_network_themes' => __('Manage themes across the entire network', 'advanced-access-manager'), 152 'manage_network_options' => __('Manage network-wide options and settings', 'advanced-access-manager'), 153 'manage_network_plugins' => __('Manage plugins across the entire network', 'advanced-access-manager'), 154 'upload_plugins' => __('Upload plugins to the site', 'advanced-access-manager'), 155 'upload_themes' => __('Upload themes to the site', 'advanced-access-manager'), 156 'upgrade_network' => __('Upgrade the entire network of sites', 'advanced-access-manager'), 157 'setup_network' => __('Set up and configure a multisite network', 'advanced-access-manager'), 158 'level_0' => __('Read only user level. Typically the Subscriber role.', 'advanced-access-manager'), 159 'level_1' => __('Limited access level. Typically the Contributor role.', 'advanced-access-manager'), 160 'level_2' => __('Author role access level', 'advanced-access-manager'), 161 'level_3' => __('No specific meaning.', 'advanced-access-manager'), 162 'level_4' => __('No specific meaning.', 'advanced-access-manager'), 163 'level_5' => __('No specific meaning.', 'advanced-access-manager'), 164 'level_6' => __('No specific meaning.', 'advanced-access-manager'), 165 'level_7' => __('Editor access level.', 'advanced-access-manager'), 166 'level_8' => __('No specific meaning.', 'advanced-access-manager'), 167 'level_9' => __('No specific meaning.', 'advanced-access-manager'), 168 'level_10' => __('The highest level capabilities. Typically the Administrator role.', 'advanced-access-manager') 169 ]; 170 170 } 171 171 -
advanced-access-manager/trunk/application/Service/Content.php
r3296450 r3304543 51 51 * @access protected 52 52 * 53 * @version 7.0. 053 * @version 7.0.4 54 54 */ 55 55 protected function __construct() 56 56 { 57 57 add_filter('aam_get_config_filter', function($result, $key) { 58 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {58 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 59 59 $result = self::DEFAULT_CONFIG[$key]; 60 60 } … … 63 63 }, 10, 2); 64 64 65 65 // Register RESTful API 66 AAM_Restful_Content::bootstrap(); 67 68 add_action('init', function() { 69 $this->initialize_hooks(); 70 }, PHP_INT_MAX); 71 } 72 73 /** 74 * Initialize Content service hooks 75 * 76 * @return void 77 * @access protected 78 * 79 * @version 7.0.4 80 */ 81 protected function initialize_hooks() 82 { 66 83 if (is_admin()) { 67 84 // Hook that initialize the AAM UI part of the service … … 86 103 } 87 104 88 // Register RESTful API89 AAM_Restful_Content::bootstrap();90 91 $this->initialize_hooks();92 }93 94 /**95 * Initialize Content service hooks96 *97 * @return void98 * @access protected99 *100 * @version 7.0.0101 */102 protected function initialize_hooks()103 {104 105 if (!is_admin()) { 105 106 // Password protected filter … … 171 172 172 173 // Audit all registered post types and adjust access controls accordingly 173 add_action('registered_post_type', function ($post_type, $obj) {174 foreach(get_post_types([], 'objects') as $post_type) { 174 175 // REST API. Control if user is allowed to publish content 175 add_filter("rest_pre_insert_{$post_type }", function ($post, $request) {176 add_filter("rest_pre_insert_{$post_type->name}", function ($post, $request) { 176 177 $status = (isset($request['status']) ? $request['status'] : null); 177 178 … … 182 183 $post = new WP_Error( 183 184 'rest_cannot_publish', 184 __('You are not allowed to publish this content', 'advanced-access-manager'),185 array('status' => rest_authorization_required_code())185 'You are not allowed to publish this content', 186 [ 'status' => rest_authorization_required_code() ] 186 187 ); 187 188 } … … 193 194 // Populate the collection of post type caps 194 195 foreach ([ 'edit_post', 'read_post', 'delete_post', 'publish_posts' ] as $cap) { 195 $meta_cap = $ obj->cap->{$cap};196 $meta_cap = $post_type->cap->{$cap}; 196 197 197 198 if (!empty($meta_cap) … … 202 203 } 203 204 } 204 } , 10, 2);205 } 205 206 } 206 207 -
advanced-access-manager/trunk/application/Service/Core.php
r3296450 r3304543 68 68 * @return void 69 69 * 70 * @version 7.0. 370 * @version 7.0.4 71 71 */ 72 72 protected function __construct() 73 73 { 74 74 add_filter('aam_get_config_filter', function($result, $key) { 75 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {75 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 76 76 $result = self::DEFAULT_CONFIG[$key]; 77 77 } … … 80 80 }, 10, 2); 81 81 82 // Control user's status 83 add_action('set_current_user', function() { 84 $this->_control_user_account(); 85 }); 86 87 // Bootstrap RESTful API 88 AAM_Restful_Mu::bootstrap(); 89 AAM_Restful_Roles::bootstrap(); 90 AAM_Restful_Users::bootstrap(); 91 AAM_Restful_Configs::bootstrap(); 92 AAM_Restful_Settings::bootstrap(); 93 AAM_Restful_BackwardCompatibility::bootstrap(); 94 95 add_action('init', function() { 96 $this->initialize_hooks(); 97 }, PHP_INT_MAX); 98 } 99 100 /** 101 * Initialize service hooks 102 * 103 * @return void 104 * @access protected 105 * 106 * @version 7.0.4 107 */ 108 protected function initialize_hooks() 109 { 82 110 // Hook into AAM config initialization and enrich it with ConfigPress 83 111 // settings … … 224 252 return $response; 225 253 }, PHP_INT_MAX); 226 227 // Control user's status228 add_action('set_current_user', function() {229 $this->_control_user_account();230 });231 254 232 255 // Control admin notifications … … 270 293 271 294 // Control access to the backend area 272 add_action('init', function() { 273 $this->_control_admin_area_access(); 274 $this->_control_admin_toolbar(); 275 276 // Run upgrades if available 277 AAM_Core_Migration::run(); 278 }, 1); 279 280 // Bootstrap RESTful API 281 AAM_Restful_Mu::bootstrap(); 282 AAM_Restful_Roles::bootstrap(); 283 AAM_Restful_Users::bootstrap(); 284 AAM_Restful_Configs::bootstrap(); 285 AAM_Restful_Settings::bootstrap(); 286 AAM_Restful_BackwardCompatibility::bootstrap(); 295 $this->_control_admin_area_access(); 296 $this->_control_admin_toolbar(); 297 298 // Run upgrades if available 299 AAM_Core_Migration::run(); 287 300 } 288 301 -
advanced-access-manager/trunk/application/Service/Identity.php
r3294227 r3304543 43 43 * @access protected 44 44 * 45 * @version 7.0. 045 * @version 7.0.4 46 46 */ 47 47 protected function __construct() 48 { 49 // Register RESTful API endpoints 50 AAM_Restful_Identity::bootstrap(); 51 52 add_action('init', function() { 53 $this->initialize_hooks(); 54 }, PHP_INT_MAX); 55 } 56 57 /** 58 * Initialize service hooks 59 * 60 * @return void 61 * @access protected 62 * 63 * @version 7.0.4 64 */ 65 protected function initialize_hooks() 48 66 { 49 67 if (is_admin()) { … … 54 72 } 55 73 56 // Register RESTful API endpoints57 AAM_Restful_Identity::bootstrap();58 59 $this->initialize_hooks();60 }61 62 /**63 * Initialize service hooks64 *65 * @return void66 * @access protected67 *68 * @version 7.0.269 */70 protected function initialize_hooks()71 {72 74 // Control the list of editable roles 73 75 add_filter('editable_roles', function($roles) { -
advanced-access-manager/trunk/application/Service/Jwt.php
r3290564 r3304543 44 44 * @access protected 45 45 * 46 * @version 7.0. 046 * @version 7.0.4 47 47 */ 48 48 protected function __construct() 49 49 { 50 50 add_filter('aam_get_config_filter', function($result, $key) { 51 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {51 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 52 52 $result = self::DEFAULT_CONFIG[$key]; 53 53 } … … 56 56 }, 10, 2); 57 57 58 // WP Core current user definition 59 add_filter('determine_current_user', function($user_id){ 60 return $this->_determine_current_user($user_id); 61 }, PHP_INT_MAX); 62 63 // Register RESTful API 64 AAM_Restful_Jwt::bootstrap(); 65 66 add_action('init', function() { 67 $this->initialize_hooks(); 68 }, PHP_INT_MAX); 69 } 70 71 /** 72 * Initialize service hooks 73 * 74 * @return void 75 * @access protected 76 * 77 * @version 7.0.4 78 */ 79 protected function initialize_hooks() 80 { 58 81 if (is_admin()) { 59 82 // Hook that initialize the AAM UI part of the service … … 71 94 } 72 95 73 $this->initialize_hooks();74 }75 76 /**77 * Initialize service hooks78 *79 * @return void80 * @access protected81 *82 * @version 7.0.083 */84 protected function initialize_hooks()85 {86 96 add_action('aam_reset_action', function() { 87 97 global $wpdb; … … 92 102 ]); 93 103 }); 94 95 // Register RESTful API96 AAM_Restful_Jwt::bootstrap();97 104 98 105 add_filter( … … 102 109 }, 10, 3 103 110 ); 104 105 // WP Core current user definition106 add_filter('determine_current_user', function($user_id){107 return $this->_determine_current_user($user_id);108 }, PHP_INT_MAX);109 111 110 112 // Allow other implementations to work with JWT token … … 205 207 * @access private 206 208 * 207 * @version 7.0. 0209 * @version 7.0.4 208 210 */ 209 211 private function _determine_current_user($user_id) … … 214 216 if (!empty($token)) { 215 217 $claims = AAM::api()->jwt->decode($token->jwt); 216 217 218 218 219 if (!is_wp_error($claims)) { … … 234 235 235 236 if ($is_valid === true) { 236 $is_active = $this->_verify_user_status($cuid); 237 238 if ($is_active === true) { 239 if (in_array( 240 $token->method, 241 [ 'get', 'query', 'query_param' ], 242 true 243 )) { 244 // Also authenticate user if token comes from query 245 // param 246 add_action('init', function() use ($cuid, $claims) { 247 $this->_authenticate_user($cuid, $claims); 248 }, 1); 249 } 237 if ($this->_is_user_active($cuid)) { 238 $this->_maybe_authenticate($cuid, $token, $claims); 250 239 251 240 $user_id = $cuid; … … 258 247 259 248 return $user_id; 249 } 250 251 /** 252 * Determine if JWT token is used in password-less URL and if so - authenticate 253 * 254 * @param int $user_id 255 * @param object $token 256 * @param array $claims 257 * 258 * @return void 259 * @access private 260 * 261 * @version 7.0.4 262 */ 263 private function _maybe_authenticate($user_id, $token, $claims) 264 { 265 if (in_array($token->method, [ 'get', 'query', 'query_param' ], true)) { 266 $this->_authenticate_user($user_id, $claims); 267 } 260 268 } 261 269 … … 320 328 * @access protected 321 329 * 322 * @version 7.0. 0330 * @version 7.0.4 323 331 */ 324 332 private function _extract_token() 325 333 { 326 334 $configs = AAM::api()->config; 327 $container = wp_parse_list($configs->get('service.jwt.bearer' ));335 $container = wp_parse_list($configs->get('service.jwt.bearer', '')); 328 336 329 337 foreach ($container as $method) { … … 394 402 * @param int $user_id 395 403 * 396 * @return bool |WP_Error404 * @return bool 397 405 * @access private 398 406 * 399 * @version 7.0.0 400 */ 401 private function _verify_user_status($user_id) 402 { 403 $result = true; 404 $user = AAM::api()->user($user_id); 405 406 // Step #1. Verify that user is active 407 if (!$user->is_user_active()) { 408 $result = new WP_Error( 409 'inactive_user', 410 '[ERROR]: User is inactive. Contact the administrator.' 411 ); 412 } 413 414 // Step #2. Verify that user is not expired 415 if ($user->is_user_access_expired()) { 416 $result = new WP_Error( 417 'inactive_user', 418 '[ERROR]: User access is expired. Contact the administrator.' 419 ); 420 } 421 422 return $result; 407 * @version 7.0.4 408 */ 409 private function _is_user_active($user_id) 410 { 411 $user = AAM::api()->user($user_id); 412 413 // Verify that user is active and is not expired 414 return $user->is_user_active() && !$user->is_user_access_expired(); 423 415 } 424 416 -
advanced-access-manager/trunk/application/Service/LoginRedirect.php
r3286780 r3304543 35 35 * @access protected 36 36 * 37 * @version 7.0. 037 * @version 7.0.4 38 38 */ 39 39 protected function __construct() 40 40 { 41 41 add_filter('aam_get_config_filter', function($result, $key) { 42 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {42 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 43 43 $result = self::DEFAULT_CONFIG[$key]; 44 44 } … … 47 47 }, 10, 2); 48 48 49 if (is_admin()) { 50 // Hook that initialize the AAM UI part of the service 51 add_action('aam_initialize_ui_action', function () { 52 AAM_Backend_Feature_Main_LoginRedirect::register(); 53 }); 54 } 49 // Register RESTful API 50 AAM_Restful_LoginRedirect::bootstrap(); 55 51 56 $this->initialize_hooks(); 52 add_action('init', function() { 53 $this->initialize_hooks(); 54 }, PHP_INT_MAX); 57 55 } 58 56 … … 63 61 * @access protected 64 62 * 65 * @version 7.0. 063 * @version 7.0.4 66 64 */ 67 65 protected function initialize_hooks() 68 66 { 67 if (is_admin()) { 68 // Hook that initialize the AAM UI part of the service 69 add_action('aam_initialize_ui_action', function () { 70 AAM_Backend_Feature_Main_LoginRedirect::register(); 71 }); 72 } 73 69 74 // AAM Secure Login hooking 70 75 add_filter( … … 77 82 // WP Core login redirect hook 78 83 add_filter('login_redirect', [ $this, 'get_login_redirect' ], 10, 3); 79 80 // Register RESTful API81 AAM_Restful_LoginRedirect::bootstrap();82 84 } 83 85 -
advanced-access-manager/trunk/application/Service/LogoutRedirect.php
r3290564 r3304543 36 36 * @access protected 37 37 * 38 * @version 7.0. 038 * @version 7.0.4 39 39 */ 40 40 protected function __construct() 41 { 42 // Register RESTful API 43 AAM_Restful_LogoutRedirect::bootstrap(); 44 45 add_action('init', function() { 46 $this->initialize_hooks(); 47 }, PHP_INT_MAX); 48 } 49 50 /** 51 * Initialize Logout redirect hooks 52 * 53 * @return void 54 * @access protected 55 * 56 * @version 7.0.4 57 */ 58 protected function initialize_hooks() 41 59 { 42 60 if (is_admin()) { … … 47 65 } 48 66 49 $this->initialize_hooks();50 }51 52 /**53 * Initialize Logout redirect hooks54 *55 * @return void56 * @access protected57 *58 * @version 7.0.159 */60 protected function initialize_hooks()61 {62 67 // Capture currently logging out user settings 63 68 add_action('clear_auth_cookie', function() { … … 75 80 } 76 81 }, PHP_INT_MAX); 77 78 // Register RESTful API79 AAM_Restful_LogoutRedirect::bootstrap();80 82 } 81 83 -
advanced-access-manager/trunk/application/Service/Metaboxes.php
r3296450 r3304543 25 25 * @access protected 26 26 * 27 * @version 7.0. 027 * @version 7.0.4 28 28 */ 29 29 protected function __construct() 30 { 31 // Register RESTful API endpoints 32 AAM_Restful_Metabox::bootstrap(); 33 34 add_action('init', function() { 35 $this->initialize_hooks(); 36 }, PHP_INT_MAX); 37 } 38 39 /** 40 * Initialize hooks 41 * 42 * @return void 43 * @access protected 44 * 45 * @version 7.0.4 46 */ 47 protected function initialize_hooks() 30 48 { 31 49 if (is_admin()) { … … 36 54 } 37 55 38 // Register RESTful API endpoints39 AAM_Restful_Metabox::bootstrap();40 41 $this->initialize_hooks();42 }43 44 /**45 * Initialize hooks46 *47 * @return void48 * @access protected49 *50 * @version 7.0.051 */52 protected function initialize_hooks()53 {54 56 // Manager WordPress metaboxes 55 57 add_action('in_admin_header', function () { -
advanced-access-manager/trunk/application/Service/NotFoundRedirect.php
r3286780 r3304543 24 24 * @access protected 25 25 * 26 * @version 7.0. 026 * @version 7.0.4 27 27 */ 28 28 protected function __construct() 29 { 30 // Register the RESTful API 31 AAM_Restful_NotFoundRedirect::bootstrap(); 32 33 add_action('init', function() { 34 $this->initialize_hooks(); 35 }, PHP_INT_MAX); 36 } 37 38 /** 39 * Initialize the service hooks 40 * 41 * @return void 42 * @access protected 43 * 44 * @version 7.0.4 45 */ 46 protected function initialize_hooks() 29 47 { 30 48 if (is_admin()) { … … 35 53 } 36 54 37 $this->initialize_hooks();38 }39 40 /**41 * Initialize the service hooks42 *43 * @return void44 * @access protected45 *46 * @version 7.0.047 */48 protected function initialize_hooks()49 {50 55 add_action('wp', function() { 51 56 global $wp_query; … … 59 64 } 60 65 }); 61 62 // Register the RESTful API63 AAM_Restful_NotFoundRedirect::bootstrap();64 66 } 65 67 -
advanced-access-manager/trunk/application/Service/Policies.php
r3286780 r3304543 24 24 * @access protected 25 25 * 26 * @version 7.0. 026 * @version 7.0.4 27 27 */ 28 28 protected function __construct() 29 29 { 30 if (is_admin()) { 31 // Hook that initialize the AAM UI part of the service 32 add_action('aam_initialize_ui_action', function () { 33 AAM_Backend_Feature_Main_Policy::register(); 34 }); 35 36 // Register custom access control metabox 37 add_action('add_meta_boxes', function() { 38 $this->_add_meta_boxes(); 39 }); 40 41 // Access policy save 42 add_filter('wp_insert_post_data', function($data) { 43 return $this->_wp_insert_post_data($data); 44 }); 45 } 46 47 $this->initialize_hooks(); 30 // Register RESTful API 31 AAM_Restful_Policies::bootstrap(); 32 33 add_action('init', function() { 34 $this->initialize_hooks(); 35 }, PHP_INT_MAX); 48 36 } 49 37 … … 79 67 * 80 68 * @return void 81 *82 69 * @access protected 83 * @version 7.0.0 70 * 71 * @version 7.0.4 84 72 */ 85 73 protected function initialize_hooks() 86 74 { 87 // Register RESTful API 88 AAM_Restful_Policies::bootstrap(); 75 if (is_admin()) { 76 // Hook that initialize the AAM UI part of the service 77 add_action('aam_initialize_ui_action', function () { 78 AAM_Backend_Feature_Main_Policy::register(); 79 }); 80 81 // Register custom access control metabox 82 add_action('add_meta_boxes', function() { 83 $this->_add_meta_boxes(); 84 }); 85 86 // Access policy save 87 add_filter('wp_insert_post_data', function($data) { 88 return $this->_wp_insert_post_data($data); 89 }); 90 } 89 91 90 92 // Override role list permissions -
advanced-access-manager/trunk/application/Service/SecureLogin.php
r3286780 r3304543 39 39 * @access protected 40 40 * 41 * @version 7.0. 041 * @version 7.0.4 42 42 */ 43 43 protected function __construct() 44 44 { 45 45 add_filter('aam_get_config_filter', function($result, $key) { 46 if ( is_null($result) && array_key_exists($key, self::DEFAULT_CONFIG)) {46 if (empty($result) && array_key_exists($key, self::DEFAULT_CONFIG)) { 47 47 $result = self::DEFAULT_CONFIG[$key]; 48 48 } … … 51 51 }, 10, 2); 52 52 53 // Register custom RESTful API endpoint for login 54 AAM_Restful_SecureLogin::bootstrap(); 55 56 add_action('init', function() { 57 $this->initialize_hooks(); 58 }, PHP_INT_MAX); 59 } 60 61 /** 62 * Initialize core hooks 63 * 64 * @return void 65 * @access protected 66 * 67 * @version 7.0.4 68 */ 69 protected function initialize_hooks() 70 { 53 71 if (is_admin()) { 54 72 // Register additional tab for the Settings … … 58 76 } 59 77 60 $this->initialize_hooks();61 }62 63 /**64 * Initialize core hooks65 *66 * @return void67 * @access protected68 *69 * @version 7.0.070 */71 protected function initialize_hooks()72 {73 78 // Register custom frontend Login widget 74 79 add_action('widgets_init', function () { 75 80 register_widget('AAM_Backend_Widget_Login'); 76 81 }); 77 78 // Register custom RESTful API endpoint for login79 AAM_Restful_SecureLogin::bootstrap();80 82 81 83 // Redefine the wp-login.php header message -
advanced-access-manager/trunk/application/Service/SecurityAudit.php
r3286780 r3304543 56 56 * @access protected 57 57 * 58 * @version 7.0. 058 * @version 7.0.4 59 59 */ 60 60 protected function __construct() 61 { 62 // Keep the support RESTful service enabled at all times because it is used 63 // by issue reporting feature as well 64 AAM_Restful_SecurityAudit::bootstrap(); 65 66 add_action('init', function() { 67 $this->initialize_hooks(); 68 }, PHP_INT_MAX); 69 } 70 71 /** 72 * Initialize service hooks 73 * 74 * @return void 75 * @access protected 76 * 77 * @version 7.0.4 78 */ 79 protected function initialize_hooks() 61 80 { 62 81 add_filter('aam_security_scan_enabled_filter', function() { 63 82 return AAM::api()->config->get(AAM::SERVICES[__CLASS__], true); 64 83 }); 65 66 84 67 85 // Register cron-job … … 80 98 ); 81 99 }); 82 83 // Keep the support RESTful service enabled at all times because it is used84 // by issue reporting feature as well85 AAM_Restful_SecurityAudit::bootstrap();86 100 } 87 101 -
advanced-access-manager/trunk/application/Service/Urls.php
r3286780 r3304543 25 25 * @access protected 26 26 * 27 * @version 7.0. 027 * @version 7.0.4 28 28 */ 29 29 protected function __construct() 30 30 { 31 32 if (is_admin()) {33 // Hook that initialize the AAM UI part of the service34 add_action('aam_initialize_ui_action', function () {35 AAM_Backend_Feature_Main_Url::register();36 });37 }38 39 31 // Register RESTful API endpoints 40 32 AAM_Restful_Urls::bootstrap(); 41 33 42 $this->initialize_hooks(); 34 add_action('init', function() { 35 $this->initialize_hooks(); 36 }, PHP_INT_MAX); 43 37 } 44 38 … … 49 43 * @access protected 50 44 * 51 * @version 7.0. 045 * @version 7.0.4 52 46 */ 53 47 protected function initialize_hooks() 54 48 { 49 if (is_admin()) { 50 // Hook that initialize the AAM UI part of the service 51 add_action('aam_initialize_ui_action', function () { 52 AAM_Backend_Feature_Main_Url::register(); 53 }); 54 } 55 55 56 // Authorize request 56 add_action('init', function() { 57 $this->authorize(); 58 }); 57 $this->authorize(); 59 58 } 60 59 -
advanced-access-manager/trunk/application/Service/Widgets.php
r3294227 r3304543 32 32 * @access protected 33 33 * 34 * @version 7.0. 034 * @version 7.0.4 35 35 */ 36 36 protected function __construct() 37 37 { 38 if (is_admin()) {39 // Hook that initialize the AAM UI part of the service40 add_action('aam_initialize_ui_action', function () {41 AAM_Backend_Feature_Main_Widget::register();42 });43 }44 45 38 // Register RESTful API endpoints 46 39 AAM_Restful_Widgets::bootstrap(); 47 40 48 $this->initialize_hooks(); 41 add_action('init', function() { 42 $this->initialize_hooks(); 43 }, PHP_INT_MAX); 49 44 } 50 45 … … 85 80 * @access protected 86 81 * 87 * @version 7.0. 082 * @version 7.0.4 88 83 */ 89 84 protected function initialize_hooks() 90 85 { 91 86 if (is_admin()) { 87 // Hook that initialize the AAM UI part of the service 88 add_action('aam_initialize_ui_action', function () { 89 AAM_Backend_Feature_Main_Widget::register(); 90 }); 91 92 92 // Manager WordPress metaboxes 93 93 add_action('in_admin_header', function () { -
advanced-access-manager/trunk/readme.txt
r3296450 r3304543 5 5 Requires PHP: 5.6.0 6 6 Tested up to: 6.8.0 7 Stable tag: 7.0. 37 Stable tag: 7.0.4 8 8 9 9 Your WordPress security starts within — with AAM. Take control of your WordPress website and solve security gaps today. … … 60 60 61 61 == Changelog == 62 63 = 7.0.4 = 64 * Change: Making sure that all AAM hooks are triggered only after init [https://github.com/aamplugin/advanced-access-manager/issues/465](https://github.com/aamplugin/advanced-access-manager/issues/465) 62 65 63 66 = 7.0.3 =
Note: See TracChangeset
for help on using the changeset viewer.