<!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>[42631] trunk/src/wp-admin: Plugins: Use `api.wordpress.org/plugins/info/1.2/` for querying plugins & plugin information.</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 { 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/42631">42631</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/42631","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-02-01 05:16:15 +0000 (Thu, 01 Feb 2018)</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'>Plugins: Use `api.wordpress.org/plugins/info/1.2/` for querying plugins & plugin information.

See <a href="https://core.trac.wordpress.org/ticket/43192">#43192</a>.
Fixes <a href="https://core.trac.wordpress.org/ticket/29274">#29274</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswpplugininstalllisttablephp">trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesplugininstallphp">trunk/src/wp-admin/includes/plugin-install.php</a></li>
<li><a href="#trunksrcwpadminupdatecorephp">trunk/src/wp-admin/update-core.php</a></li>
<li><a href="#trunksrcwpadminupdatephp">trunk/src/wp-admin/update.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswpplugininstalllisttablephp"></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-plugin-install-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-plugin-install-list-table.php        2018-02-01 01:19:50 UTC (rev 42630)
+++ trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php  2018-02-01 05:16:15 UTC (rev 42631)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,14 +145,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $args = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'page'              => $paged,
</span><span class="cx" style="display: block; padding: 0 10px">                        'per_page'          => $per_page,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'fields'            => array(
-                               'last_updated'    => true,
-                               'icons'           => true,
-                               'active_installs' => true,
-                       ),
-                       // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Send the locale to the API so it can provide context-sensitive results.
</ins><span class="cx" style="display: block; padding: 0 10px">                         'locale'            => get_user_locale(),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'installed_plugins' => array_keys( $installed_plugins ),
</del><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">                switch ( $tab ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -175,14 +169,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                break;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'featured':
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $args['fields']['group'] = true;
-                               $this->orderby           = 'group';
-                               // No break!
</del><span class="cx" style="display: block; padding: 0 10px">                         case 'popular':
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'new':
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'beta':
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                $args['browse'] = $tab;
+                               break;
</ins><span class="cx" style="display: block; padding: 0 10px">                         case 'recommended':
</span><span class="cx" style="display: block; padding: 0 10px">                                $args['browse'] = $tab;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                // Include the list of installed plugins so we can get relevant results.
+                               $args['installed_plugins'] = array_keys( $installed_plugins );
</ins><span class="cx" style="display: block; padding: 0 10px">                                 break;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'favorites':
</span></span></pre></div>
<a id="trunksrcwpadminincludesplugininstallphp"></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-install.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/plugin-install.php    2018-02-01 01:19:50 UTC (rev 42630)
+++ trunk/src/wp-admin/includes/plugin-install.php      2018-02-01 05:16:15 UTC (rev 42631)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,19 +99,27 @@
</span><span class="cx" style="display: block; padding: 0 10px">  *         for more information on the make-up of possible return values depending on the value of `$action`.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function plugins_api( $action, $args = array() ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        // include an unmodified $wp_version
+       include( ABSPATH . WPINC . '/version.php' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( is_array( $args ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $args = (object) $args;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        if ( ! isset( $args->per_page ) ) {
-               $args->per_page = 24;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( 'query_plugins' == $action ) {
+               if ( ! isset( $args->per_page ) ) {
+                       $args->per_page = 24;
+               }
</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">        if ( ! isset( $args->locale ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $args->locale = get_user_locale();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        if ( ! isset( $args->wp_version ) ) {
+               $args->wp_version = substr( $wp_version, 0, 3 ); // X.y
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Filters the WordPress.org Plugin Installation API arguments.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -141,10 +149,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $res = apply_filters( 'plugins_api', false, $action, $args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( false === $res ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // include an unmodified $wp_version
-               include( ABSPATH . WPINC . '/version.php' );
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $url = $http_url = 'http://api.wordpress.org/plugins/info/1.0/';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $url = 'http://api.wordpress.org/plugins/info/1.2/';
+               $url = add_query_arg(
+                       array(
+                               'action'  => $action,
+                               'request' => $args,
+                       ),
+                       $url
+               );
+
+               $http_url = $url;
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $url = set_url_scheme( $url, 'https' );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,12 +167,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $http_args = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'timeout'    => 15,
</span><span class="cx" style="display: block; padding: 0 10px">                        'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url( '/' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'body'       => array(
-                               'action'  => $action,
-                               'request' => serialize( $args ),
-                       ),
</del><span class="cx" style="display: block; padding: 0 10px">                 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request   = wp_remote_post( $url, $http_args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request   = wp_remote_get( $url, $http_args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $ssl && is_wp_error( $request ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        trigger_error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -168,7 +179,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
</span><span class="cx" style="display: block; padding: 0 10px">                                headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $request = wp_remote_post( $http_url, $http_args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $request = wp_remote_get( $http_url, $http_args );
</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">                if ( is_wp_error( $request ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -182,8 +193,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $request->get_error_message()
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $res = maybe_unserialize( wp_remote_retrieve_body( $request ) );
-                       if ( ! is_object( $res ) && ! is_array( $res ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $res = json_decode( wp_remote_retrieve_body( $request ), true );
+                       if ( is_array( $res ) ) {
+                               // Object casting is required in order to match the info/1.0 format.
+                               $res = (object) $res;
+                       } elseif ( null === $res ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $res = new WP_Error(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'plugins_api_failed',
</span><span class="cx" style="display: block; padding: 0 10px">                                        sprintf(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -194,6 +208,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        wp_remote_retrieve_body( $request )
</span><span class="cx" style="display: block; padding: 0 10px">                                );
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                       if ( isset( $res->error ) ) {
+                               $res = new WP_Error( 'plugins_api_failed', $res->error );
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px">        } elseif ( ! is_wp_error( $res ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $res->external = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -485,13 +503,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $api = plugins_api(
</span><span class="cx" style="display: block; padding: 0 10px">                'plugin_information', array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'slug'   => wp_unslash( $_REQUEST['plugin'] ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'is_ssl' => is_ssl(),
-                       'fields' => array(
-                               'banners'         => true,
-                               'reviews'         => true,
-                               'downloaded'      => false,
-                               'active_installs' => true,
-                       ),
</del><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"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -707,19 +718,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        <h3><?php _e( 'Contributors' ); ?></h3>
</span><span class="cx" style="display: block; padding: 0 10px">                        <ul class="contributors">
</span><span class="cx" style="display: block; padding: 0 10px">                                <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                foreach ( (array) $api->contributors as $contrib_username => $contrib_profile ) {
-                                       if ( empty( $contrib_username ) && empty( $contrib_profile ) ) {
-                                               continue;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         foreach ( (array) $api->contributors as $contrib_username => $contrib_details ) {
+                                       $contrib_name = $contrib_details['display_name'];
+                                       if ( ! $contrib_name ) {
+                                               $contrin_name = $contrib_username;
</ins><span class="cx" style="display: block; padding: 0 10px">                                         }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        if ( empty( $contrib_username ) ) {
-                                               $contrib_username = preg_replace( '/^.+\/(.+)\/?$/', '\1', $contrib_profile );
-                                       }
-                                       $contrib_username = sanitize_user( $contrib_username );
-                                       if ( empty( $contrib_profile ) ) {
-                                               echo "<li><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&amp;s=36' width='18' height='18' alt='' />{$contrib_username}</li>";
-                                       } else {
-                                               echo "<li><a href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&amp;s=36' width='18' height='18' alt='' />{$contrib_username}</a></li>";
-                                       }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 $contrib_name = esc_html( $contrib_name );
+
+                                       $contrib_profile = esc_url( $contrib_details['profile'] );
+                                       $contrib_avatar = esc_url( add_query_arg( 's', '36', $contrib_details['avatar'] ) );
+
+                                       echo "<li><a href='{$contrib_profile}' target='_blank'><img src='{$contrib_avatar}' width='18' height='18' alt='' />{$contrib_name}</a></li>";
</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">                        </ul>
</span></span></pre></div>
<a id="trunksrcwpadminupdatecorephp"></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/update-core.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/update-core.php        2018-02-01 01:19:50 UTC (rev 42630)
+++ trunk/src/wp-admin/update-core.php  2018-02-01 05:16:15 UTC (rev 42631)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -277,9 +277,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        // Get plugin compat for running version of WordPress.
</span><span class="cx" style="display: block; padding: 0 10px">        if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        } elseif ( isset( $plugin_data->update->compatibility->{$cur_wp_version} ) ) {
-               $compat = $plugin_data->update->compatibility->{$cur_wp_version};
-               $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes );
</del><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -287,9 +284,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $core_update_version ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $core_update_version );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                } elseif ( isset( $plugin_data->update->compatibility->{$core_update_version} ) ) {
-                       $update_compat = $plugin_data->update->compatibility->{$core_update_version};
-                       $compat       .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes );
</del><span class="cx" style="display: block; padding: 0 10px">                 } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunksrcwpadminupdatephp"></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/update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/update.php     2018-02-01 01:19:50 UTC (rev 42630)
+++ trunk/src/wp-admin/update.php       2018-02-01 05:16:15 UTC (rev 42631)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -109,18 +109,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'plugin_information', array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'slug'   => $plugin,
</span><span class="cx" style="display: block; padding: 0 10px">                                'fields' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'short_description' => false,
-                                       'sections'          => false,
-                                       'requires'          => false,
-                                       'rating'            => false,
-                                       'ratings'           => false,
-                                       'downloaded'        => false,
-                                       'last_updated'      => false,
-                                       'added'             => false,
-                                       'tags'              => false,
-                                       'compatibility'     => false,
-                                       'homepage'          => false,
-                                       'donate_link'       => false,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'sections' => false,
</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">                );
</span></span></pre>
</div>
</div>

</body>
</html>