Skip to content
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

42670 plugin_basename returns wrong basename when in subdir of symlinked plugin #5336

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

BrianHenryIE
Copy link

Continuing from #3412 (@ironprogrammer)

The latest change removes the conditional if ( $plugin_path !== $plugin_realpath ) { from inside wp_register_plugin_realpath() so all plugin paths are registered.

The existing test in this PR, test_should_return_correct_basename_for_plugin_when_wp_plugins_dir_is_subdir_of_symlinked_plugin() assumed $wp_plugin_paths would always contain the plugin path, which was not correct, due to the conditional now removed.

Test instructions with wp-env and pictures: https://github.com/BrianHenryIE/a-wp-trac-42670

Trac ticket: https://core.trac.wordpress.org/ticket/42670


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants