Repository navigation
Fix: Misleading Message When Accessing Admin Menu Page #7613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
nirajgiriXD
wants to merge
47
commits into
WordPress:trunk
from
nirajgiriXD:fix/misleading-permissions-message
Closed
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
13ec380
fix: misleading message when accessing admin menu page
c169041
fix phpcs: remove empty line
b55ed49
fix phpcs: add space
061fc20
Update comment
nirajgiriXD 261dbd4
Update src/wp-admin/includes/menu.php
nirajgiriXD dd3aca5
Update src/wp-admin/includes/menu.php
nirajgiriXD cfdb1d4
Merge branch 'trunk' into fix/misleading-permissions-message
nirajgiriXD c3c6ba5
Update src/wp-admin/includes/menu.php
nirajgiriXD d03c40e
Update src/wp-admin/includes/plugin.php
nirajgiriXD 9a7a02f
Update src/wp-admin/includes/plugin.php
nirajgiriXD 24606e8
Update src/wp-admin/includes/plugin.php
nirajgiriXD 23fd2b8
Update src/wp-admin/includes/plugin.php
nirajgiriXD 2f2a4a4
Update src/wp-admin/includes/plugin.php
nirajgiriXD a95d739
Update src/wp-admin/includes/menu.php
nirajgiriXD ad8e1df
Update src/wp-admin/includes/plugin.php
nirajgiriXD e5e363d
Update src/wp-admin/includes/plugin.php
nirajgiriXD c71ac8d
Update src/wp-admin/includes/plugin.php
nirajgiriXD c03dfd5
Merge branch 'trunk' into fix/misleading-permissions-message
nirajgiriXD b90dbb8
Merge branch 'trunk' into fix/misleading-permissions-message
nirajgiriXD ab14ebe
Merge branch 'trunk' into fix/misleading-permissions-message
t-hamano 0697636
Update src/wp-admin/includes/menu.php
nirajgiriXD e7244f7
Update src/wp-admin/includes/plugin.php
nirajgiriXD b5f9663
fix: rename admin_page_exists() to wp_admin_page_exists() and fix doc…
nirajgiriXD 89b1fd1
fix: add PHPUnit tests for wp_admin_page_exists()
nirajgiriXD 2754548
Merge branch 'fix/misleading-permissions-message' of https://github.c…
nirajgiriXD 97aa9b6
Merge branch 'trunk' into fix/misleading-permissions-message
t-hamano 26c620e
fix: treat capability-restricted admin pages as existing in wp_admin_…
nirajgiriXD afd6920
test: remove duplicate tear_down() and cover capability-restricted ad…
nirajgiriXD e488c9e
Merge branch 'WordPress:trunk' into fix/misleading-permissions-message
nirajgiriXD ed27b8b
Merge branch 'trunk' into fix/misleading-permissions-message
t-hamano ecbf577
Merge branch 'trunk' into fix/misleading-permissions-message
westonruter 7cabe0c
Docs: Type the admin menu no-privilege globals.
westonruter 4e5ca9a
Add native return type hints
westonruter 8616ec7
Docs: Describe the globals imported by `user_can_access_admin_page()`.
westonruter c2f649f
Merge branch 'trunk' into fix/misleading-permissions-message
t-hamano 7ffa3e2
Merge branch 'trunk' into fix/misleading-permissions-message
nirajgiriXD 4505ed6
Merge branch 'trunk' into fix/misleading-permissions-message
nirajgiriXD 5a321a7
Remove the `$admin_page_parent` global and look up the parent each time.
t-hamano 45e85f0
Keep a persistent registry of pages the current user cannot access.
t-hamano ff77174
Unset the `$plugin_page` global itself in the test.
t-hamano 3da2ec5
Register a real page in the registered page test.
t-hamano abd809f
Add a `wp_` prefix to the `admin_page_not_found` hook.
t-hamano f8c7092
Remove unnecessary current user restoration from the new tests.
t-hamano 4b081fe
Add `@ticket` annotations to the new tests.
t-hamano 369fb0d
Use richer types for the admin page `@global` annotations.
t-hamano f3b6128
Remove the PHPStan baseline entry fixed by the `$_wp_submenu_nopriv` …
t-hamano 0b87cf5
Merge branch 'trunk' into fix/misleading-permissions-message
peterwilsoncc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.