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

Fix: Update the documentation of wp_get_active_and_valid_plugins() #7632

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/wp-includes/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ function wp_get_mu_plugins() {
* @since 3.0.0
* @access private
*
* @return string[] Array of paths to plugin files relative to the plugins directory.
* @return string[] Array of absolute paths to plugin files.
* Each path is an absolute path to the plugin file,
* not relative to the plugins directory.
Comment on lines +982 to +984
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return string[] Array of absolute paths to plugin files.
* Each path is an absolute path to the plugin file,
* not relative to the plugins directory.
* @return string[] Array of absolute paths including WP_PLUGIN_DIR to all active and valid plugin files.

While I get your point to stress the difference to the previously wrong doc, this is trippled up information. Imho this change is enough.

*/
function wp_get_active_and_valid_plugins() {
$plugins = array();
Expand Down
Loading