<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[52227] trunk/src/wp-admin/includes: Docs: Update documentation for the `$plugin_data` parameter of various hooks:</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/52227">52227</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/52227","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-11-20 02:21:15 +0000 (Sat, 20 Nov 2021)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Docs: Update documentation for the `$plugin_data` parameter of various hooks:
* Document the structure of the `$plugin_data` array passed to the `plugin_row_meta` filter.
* Document some missing values returned by `get_plugin_data()`:
* `PluginURI`
* `AuthorName`
* Link to `get_plugin_data()` and the `plugin_row_meta` filter as the canonical sources in other various filters and actions which receive the `$plugin_data` parameter:
* `network_admin_plugin_action_links`
* `network_admin_plugin_action_links_{$plugin_file}`
* `plugin_action_links`
* `plugin_action_links_{$plugin_file}`
* `plugin_auto_update_setting_html`
* `manage_plugins_custom_column`
* `after_plugin_row`
* `after_plugin_row_{$plugin_file}`
* `in_plugin_update_message-{$file}`
* Update documentation for the `$response` parameter of the `in_plugin_update_message-{$file}` filter:
* Correct type for the `id` value. It contains a string like `w.org/plugins/[plugin-name]`, not a numeric ID.
* Update `$icons`, `$banners`, and `$banners_rtl` values to use typed array notation.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/8367">[8367]</a>, <a href="https://core.trac.wordpress.org/changeset/8402">[8402]</a>, <a href="https://core.trac.wordpress.org/changeset/12976">[12976]</a>, <a href="https://core.trac.wordpress.org/changeset/16758">[16758]</a>, <a href="https://core.trac.wordpress.org/changeset/26540">[26540]</a>, <a href="https://core.trac.wordpress.org/changeset/30544">[30544]</a>, <a href="https://core.trac.wordpress.org/changeset/34818">[34818]</a>, <a href="https://core.trac.wordpress.org/changeset/51733">[51733]</a>, <a href="https://core.trac.wordpress.org/changeset/52212">[52212]</a>, <a href="https://core.trac.wordpress.org/changeset/52224">[52224]</a>.
See <a href="https://core.trac.wordpress.org/ticket/53399">#53399</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswppluginslisttablephp">trunk/src/wp-admin/includes/class-wp-plugins-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludespluginphp">trunk/src/wp-admin/includes/plugin.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatephp">trunk/src/wp-admin/includes/update.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswppluginslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-plugins-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-plugins-list-table.php 2021-11-20 00:06:06 UTC (rev 52226)
+++ trunk/src/wp-admin/includes/class-wp-plugins-list-table.php 2021-11-20 02:21:15 UTC (rev 52227)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -899,12 +899,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string[] $actions An array of plugin action links. By default this can include 'activate',
- * 'deactivate', and 'delete'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $actions An array of plugin action links. By default this can include
+ * 'activate', 'deactivate', and 'delete'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data. See `get_plugin_data()`.
- * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive',
- * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $context The plugin context. By default this can include 'all',
+ * 'active', 'inactive', 'recently_activated', 'upgrade',
+ * 'mustuse', 'dropins', and 'search'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -916,12 +919,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string[] $actions An array of plugin action links. By default this can include 'activate',
- * 'deactivate', and 'delete'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $actions An array of plugin action links. By default this can include
+ * 'activate', 'deactivate', and 'delete'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data. See `get_plugin_data()`.
- * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive',
- * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $context The plugin context. By default this can include 'all',
+ * 'active', 'inactive', 'recently_activated', 'upgrade',
+ * 'mustuse', 'dropins', and 'search'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -934,13 +940,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0 The `$context` parameter was added.
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.9.0 The 'Edit' link was removed from the list of action links.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string[] $actions An array of plugin action links. By default this can include 'activate',
- * 'deactivate', and 'delete'. With Multisite active this can also include
- * 'network_active' and 'network_only' items.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $actions An array of plugin action links. By default this can include
+ * 'activate', 'deactivate', and 'delete'. With Multisite active
+ * this can also include 'network_active' and 'network_only' items.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data. See `get_plugin_data()`.
- * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive',
- * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $context The plugin context. By default this can include 'all',
+ * 'active', 'inactive', 'recently_activated', 'upgrade',
+ * 'mustuse', 'dropins', and 'search'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -953,13 +962,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.9.0 The 'Edit' link was removed from the list of action links.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string[] $actions An array of plugin action links. By default this can include 'activate',
- * 'deactivate', and 'delete'. With Multisite active this can also include
- * 'network_active' and 'network_only' items.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $actions An array of plugin action links. By default this can include
+ * 'activate', 'deactivate', and 'delete'. With Multisite active
+ * this can also include 'network_active' and 'network_only' items.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data. See `get_plugin_data()`.
- * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive',
- * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $context The plugin context. By default this can include 'all',
+ * 'active', 'inactive', 'recently_activated', 'upgrade',
+ * 'mustuse', 'dropins', and 'search'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = apply_filters( "plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1085,7 +1097,39 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string[] $plugin_meta An array of the plugin's metadata, including
</span><span class="cx" style="display: block; padding: 0 10px"> * the version, author, author URI, and plugin URI.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data {
+ * An array of plugin data.
+ *
+ * @type string $id Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
+ * @type string $slug Plugin slug.
+ * @type string $plugin Plugin basename.
+ * @type string $new_version New plugin version.
+ * @type string $url Plugin URL.
+ * @type string $package Plugin update package URL.
+ * @type string[] $icons An array of plugin icon URLs.
+ * @type string[] $banners An array of plugin banner URLs.
+ * @type string[] $banners_rtl An array of plugin RTL banner URLs.
+ * @type string $requires The version of WordPress which the plugin requires.
+ * @type string $tested The version of WordPress the plugin is tested against.
+ * @type string $requires_php The version of PHP which the plugin requires.
+ * @type string $upgrade_notice The upgrade notice for the new plugin version.
+ * @type bool $update-supported Whether the plugin supports updates.
+ * @type string $Name The human-readable name of the plugin.
+ * @type string $PluginURI Plugin URI.
+ * @type string $Version Plugin version.
+ * @type string $Description Plugin description.
+ * @type string $Author Plugin author.
+ * @type string $AuthorURI Plugin author URI.
+ * @type string $TextDomain Plugin textdomain.
+ * @type string $DomainPath Relative path to the plugin's .mo file(s).
+ * @type bool $Network Whether the plugin can only be activated network-wide.
+ * @type string $RequiresWP The version of WordPress which the plugin requires.
+ * @type string $RequiresPHP The version of PHP which the plugin requires.
+ * @type string $UpdateURI ID of the plugin for update purposes, should be a URI.
+ * @type string $Title The human-readable title of the plugin.
+ * @type string $AuthorName Plugin author's name.
+ * @type bool $update Whether there's an available update. Default null.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $status Status filter currently applied to the plugin list. Possible
</span><span class="cx" style="display: block; padding: 0 10px"> * values are: 'all', 'active', 'inactive', 'recently_activated',
</span><span class="cx" style="display: block; padding: 0 10px"> * 'upgrade', 'mustuse', 'dropins', 'search', 'paused',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1181,10 +1225,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $html The HTML of the plugin's auto-update column content, including
- * toggle auto-update action links and time to next update.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $html The HTML of the plugin's auto-update column content,
+ * including toggle auto-update action links and
+ * time to next update.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1204,7 +1251,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Name of the column.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1274,14 +1323,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Fires after each row in the Plugins list table.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.3.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for `$status`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled'
+ * to possible values for `$status`.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data.
- * @param string $status Status filter currently applied to the plugin list. Possible
- * values are: 'all', 'active', 'inactive', 'recently_activated',
- * 'upgrade', 'mustuse', 'dropins', 'search', 'paused',
- * 'auto-update-enabled', 'auto-update-disabled'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $status Status filter currently applied to the plugin list.
+ * Possible values are: 'all', 'active', 'inactive',
+ * 'recently_activated', 'upgrade', 'mustuse', 'dropins',
+ * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1292,14 +1344,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to the plugin file, relative to the plugins directory.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for `$status`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled'
+ * to possible values for `$status`.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin_file Path to the plugin file relative to the plugins directory.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data An array of plugin data.
- * @param string $status Status filter currently applied to the plugin list. Possible
- * values are: 'all', 'active', 'inactive', 'recently_activated',
- * 'upgrade', 'mustuse', 'dropins', 'search', 'paused',
- * 'auto-update-enabled', 'auto-update-disabled'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin data. See `get_plugin_data()`
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
+ * @param string $status Status filter currently applied to the plugin list.
+ * Possible values are: 'all', 'active', 'inactive',
+ * 'recently_activated', 'upgrade', 'mustuse', 'dropins',
+ * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadminincludespluginphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/plugin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/plugin.php 2021-11-20 00:06:06 UTC (rev 52226)
+++ trunk/src/wp-admin/includes/plugin.php 2021-11-20 02:21:15 UTC (rev 52227)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,17 +54,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Plugin data. Values will be empty if not supplied by the plugin.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $Name Name of the plugin. Should be unique.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $Title Title of the plugin and link to the plugin's site (if set).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $PluginURI Plugin URI.
+ * @type string $Version Plugin version.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $Description Plugin description.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $Author Author's name.
- * @type string $AuthorURI Author's website address (if set).
- * @type string $Version Plugin version.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $Author Plugin author's name.
+ * @type string $AuthorURI Plugin author's website address (if set).
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $TextDomain Plugin textdomain.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $DomainPath Plugins relative directory path to .mo files.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $DomainPath Plugin's relative directory path to .mo files.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type bool $Network Whether the plugin can only be activated network-wide.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $RequiresWP Minimum required version of WordPress.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $RequiresPHP Minimum required version of PHP.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $UpdateURI ID of the plugin for update purposes, should be a URI.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $Title Title of the plugin and link to the plugin's site (if set).
+ * @type string $AuthorName Plugin author's name.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -129,19 +131,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $markup Optional. If the returned data should have HTML markup applied.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $translate Optional. If the returned data should be translated. Default true.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array {
- * Plugin data. Values will be empty if not supplied by the plugin.
- *
- * @type string $Name Name of the plugin. Should be unique.
- * @type string $Title Title of the plugin and link to the plugin's site (if set).
- * @type string $Description Plugin description.
- * @type string $Author Author's name.
- * @type string $AuthorURI Author's website address (if set).
- * @type string $Version Plugin version.
- * @type string $TextDomain Plugin textdomain.
- * @type string $DomainPath Plugins relative directory path to .mo files.
- * @type bool $Network Whether the plugin can only be activated network-wide.
- * }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array Plugin data. Values will be empty if not supplied by the plugin.
+ * See get_plugin_data() for the list of possible values.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update.php 2021-11-20 00:06:06 UTC (rev 52226)
+++ trunk/src/wp-admin/includes/update.php 2021-11-20 02:21:15 UTC (rev 52227)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -558,37 +558,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $plugin_data {
- * An array of plugin metadata.
- *
- * @type string $name The human-readable name of the plugin.
- * @type string $plugin_uri Plugin URI.
- * @type string $version Plugin version.
- * @type string $description Plugin description.
- * @type string $author Plugin author.
- * @type string $author_uri Plugin author URI.
- * @type string $text_domain Plugin text domain.
- * @type string $domain_path Relative path to the plugin's .mo file(s).
- * @type bool $network Whether the plugin can only be activated network wide.
- * @type string $title The human-readable title of the plugin.
- * @type string $author_name Plugin author's name.
- * @type bool $update Whether there's an available update. Default null.
- * }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $plugin_data An array of plugin metadata. See get_plugin_data()
+ * and the {@see 'plugin_row_meta'} filter for the list
+ * of possible values.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param object $response {
</span><span class="cx" style="display: block; padding: 0 10px"> * An object of metadata about the available plugin update.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type int $id Plugin ID.
- * @type string $slug Plugin slug.
- * @type string $plugin Plugin basename.
- * @type string $new_version New plugin version.
- * @type string $url Plugin URL.
- * @type string $package Plugin update package URL.
- * @type array $icons An array of plugin icon URLs.
- * @type array $banners An array of plugin banner URLs.
- * @type array $banners_rtl An array of plugin RTL banner URLs.
- * @type string $requires The version of WordPress which the plugin requires.
- * @type string $tested The version of WordPress the plugin is tested against.
- * @type string $requires_php The version of PHP which the plugin requires.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $id Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
+ * @type string $slug Plugin slug.
+ * @type string $plugin Plugin basename.
+ * @type string $new_version New plugin version.
+ * @type string $url Plugin URL.
+ * @type string $package Plugin update package URL.
+ * @type string[] $icons An array of plugin icon URLs.
+ * @type string[] $banners An array of plugin banner URLs.
+ * @type string[] $banners_rtl An array of plugin RTL banner URLs.
+ * @type string $requires The version of WordPress which the plugin requires.
+ * @type string $tested The version of WordPress the plugin is tested against.
+ * @type string $requires_php The version of PHP which the plugin requires.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
</span></span></pre>
</div>
</div>
</body>
</html>