Skip to content

Commit 3bbfc06

Browse files
committed
Docs: Miscellaneous fixes in wp-admin/includes/plugin-install.php and wp-admin/includes/plugin.php.
See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@52931 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e0c37a6 commit 3bbfc06

2 files changed

Lines changed: 23 additions & 21 deletions

File tree

src/wp-admin/includes/plugin-install.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function plugins_api( $action, $args = array() ) {
235235
}
236236

237237
/**
238-
* Retrieve popular WordPress plugin tags.
238+
* Retrieves popular WordPress plugin tags.
239239
*
240240
* @since 2.7.0
241241
*
@@ -261,6 +261,8 @@ function install_popular_tags( $args = array() ) {
261261
}
262262

263263
/**
264+
* Displays plugin install dashboard.
265+
*
264266
* @since 2.7.0
265267
*/
266268
function install_dashboard() {
@@ -342,7 +344,7 @@ function install_search_form( $deprecated = true ) {
342344
}
343345

344346
/**
345-
* Upload from zip
347+
* Displays a form to upload plugins from zip files.
346348
*
347349
* @since 2.8.0
348350
*/
@@ -361,7 +363,7 @@ function install_plugins_upload() {
361363
}
362364

363365
/**
364-
* Show a username form for the favorites page
366+
* Shows a username form for the favorites page.
365367
*
366368
* @since 3.5.0
367369
*/
@@ -383,7 +385,7 @@ function install_plugins_favorites_form() {
383385
}
384386

385387
/**
386-
* Display plugin content based on plugin list.
388+
* Displays plugin content based on plugin list.
387389
*
388390
* @since 2.7.0
389391
*
@@ -418,7 +420,7 @@ function display_plugins_table() {
418420
}
419421

420422
/**
421-
* Determine the status we can perform on a plugin.
423+
* Determines the status we can perform on a plugin.
422424
*
423425
* @since 3.0.0
424426
*
@@ -508,7 +510,7 @@ function install_plugin_install_status( $api, $loop = false ) {
508510
}
509511

510512
/**
511-
* Display plugin information in dialog box form.
513+
* Displays plugin information in dialog box form.
512514
*
513515
* @since 2.7.0
514516
*

src/wp-admin/includes/plugin.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup
215215
}
216216

217217
/**
218-
* Get a list of a plugin's files.
218+
* Gets a list of a plugin's files.
219219
*
220220
* @since 2.8.0
221221
*
@@ -250,7 +250,7 @@ function get_plugin_files( $plugin ) {
250250
}
251251

252252
/**
253-
* Check the plugins directory and retrieve all plugin files with plugin data.
253+
* Checks the plugins directory and retrieve all plugin files with plugin data.
254254
*
255255
* WordPress only supports plugin files in the base plugins directory
256256
* (wp-content/plugins) and in one directory above the plugins directory
@@ -350,7 +350,7 @@ function get_plugins( $plugin_folder = '' ) {
350350
}
351351

352352
/**
353-
* Check the mu-plugins directory and retrieve all mu-plugin files with any plugin data.
353+
* Checks the mu-plugins directory and retrieve all mu-plugin files with any plugin data.
354354
*
355355
* WordPress only includes mu-plugin files in the base mu-plugins directory (wp-content/mu-plugins).
356356
*
@@ -409,7 +409,7 @@ function get_mu_plugins() {
409409
}
410410

411411
/**
412-
* Callback to sort array by a 'Name' key.
412+
* Declares a callback to sort array by a 'Name' key.
413413
*
414414
* @since 3.1.0
415415
*
@@ -424,7 +424,7 @@ function _sort_uname_callback( $a, $b ) {
424424
}
425425

426426
/**
427-
* Check the wp-content directory and retrieve all drop-ins with any plugin data.
427+
* Checks the wp-content directory and retrieve all drop-ins with any plugin data.
428428
*
429429
* @since 3.0.0
430430
* @return array[] Array of arrays of dropin plugin data, keyed by plugin file name. See `get_plugin_data()`.
@@ -728,7 +728,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
728728
}
729729

730730
/**
731-
* Deactivate a single plugin or multiple plugins.
731+
* Deactivates a single plugin or multiple plugins.
732732
*
733733
* The deactivation hook is disabled by the plugin upgrader by using the $silent
734734
* parameter.
@@ -836,7 +836,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
836836
}
837837

838838
/**
839-
* Activate multiple plugins.
839+
* Activates multiple plugins.
840840
*
841841
* When WP_Error is returned, it does not mean that one of the plugins had
842842
* errors. It means that one or more of the plugin file paths were invalid.
@@ -876,7 +876,7 @@ function activate_plugins( $plugins, $redirect = '', $network_wide = false, $sil
876876
}
877877

878878
/**
879-
* Remove directory and files of a plugin for a list of plugins.
879+
* Removes directory and files of a plugin for a list of plugins.
880880
*
881881
* @since 2.6.0
882882
*
@@ -1041,7 +1041,7 @@ function delete_plugins( $plugins, $deprecated = '' ) {
10411041
}
10421042

10431043
/**
1044-
* Validate active plugins
1044+
* Validates active plugins.
10451045
*
10461046
* Validate all active plugins, deactivates invalid and
10471047
* returns an array of deactivated ones.
@@ -1080,7 +1080,7 @@ function validate_active_plugins() {
10801080
}
10811081

10821082
/**
1083-
* Validate the plugin path.
1083+
* Validates the plugin path.
10841084
*
10851085
* Checks that the main plugin file exists and is a valid plugin. See validate_file().
10861086
*
@@ -1182,7 +1182,7 @@ function validate_plugin_requirements( $plugin ) {
11821182
}
11831183

11841184
/**
1185-
* Whether the plugin can be uninstalled.
1185+
* Determines whether the plugin can be uninstalled.
11861186
*
11871187
* @since 2.7.0
11881188
*
@@ -1201,7 +1201,7 @@ function is_uninstallable_plugin( $plugin ) {
12011201
}
12021202

12031203
/**
1204-
* Uninstall a single plugin.
1204+
* Uninstalls a single plugin.
12051205
*
12061206
* Calls the uninstall hook, if it is available.
12071207
*
@@ -2259,7 +2259,7 @@ function remove_allowed_options( $del_options, $options = '' ) {
22592259
}
22602260

22612261
/**
2262-
* Output nonce, action, and option_page fields for a settings page.
2262+
* Outputs nonce, action, and option_page fields for a settings page.
22632263
*
22642264
* @since 2.7.0
22652265
*
@@ -2287,7 +2287,7 @@ function wp_clean_plugins_cache( $clear_update_cache = true ) {
22872287
}
22882288

22892289
/**
2290-
* Load a given plugin attempt to generate errors.
2290+
* Loads a given plugin attempt to generate errors.
22912291
*
22922292
* @since 3.0.0
22932293
* @since 4.4.0 Function was moved into the `wp-admin/includes/plugin.php` file.
@@ -2304,7 +2304,7 @@ function plugin_sandbox_scrape( $plugin ) {
23042304
}
23052305

23062306
/**
2307-
* Helper function for adding content to the Privacy Policy Guide.
2307+
* Declares an helper function for adding content to the Privacy Policy Guide.
23082308
*
23092309
* Plugins and themes should suggest text for inclusion in the site's privacy policy.
23102310
* The suggested text should contain information about any functionality that affects user privacy,

0 commit comments

Comments
 (0)