Make WordPress Core

Ticket #26252: 26252.diff

File 26252.diff, 5.0 KB (added by stevenkword, 11 years ago)
  • wp-admin/includes/update.php

     
    285285                else
    286286                        printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file, 'upgrade-plugin_' . $file) );
    287287
     288                /**
     289                 * Appends output to the plugin update notification message.
     290                 *
     291                 * Output additional markup in the Network Admin plugins overview page after the plugin's table row.
     292                 *
     293                 * @since 2.8.0
     294                 *
     295                 * @param string $file The location of the main plugin PHP file relative to the plugins folder.
     296                 * @param array $plugin_data {
     297                 *              An array containing all of the plugin metadata.
     298                 *
     299                 *              @type string $Name The human-readable name of the plugin.
     300                 *              @type string $PluginURI Path to the plugin's web resources.
     301                 *              @type string $Version The version number for the current plugin.
     302                 *              @type string $Description A short description of the plugin.
     303                 *              @type string $Author Plugin author's username.
     304                 *              @type string $AuthorURI Path to the plugin author's web resources.
     305                 *              @type string $TextDomain Plugin's text domain for localization.
     306                 *              @type string $DomainPath Plugin's relative directory path to .mo files.
     307                 *              @type bool $Network Boolean. Whether the plugin can only be activated network wide.
     308                 *              @type string $Title The human-readable title of the plugin.
     309                 *              @type string $AuthorName Plugin author's name.
     310                 * }
     311                 * @param array $r {
     312                 *              An array containing metadata about the latest available plugin update.
     313                 *
     314                 *              @type int $id The plugins numeric identifier.
     315                 *              @type string $slug Unique name of this plugin as found in the plugins repository.
     316                 *              @type string $new_version The version of the plugin to be updated.
     317                 *              @type string $url The home web page for this plugin.
     318                 *              @type string $package The source location of the package that contains the plugin files to be updated.
     319                 * }
     320                 */
    288321                do_action( "in_plugin_update_message-$file", $plugin_data, $r );
    289322
    290323                echo '</div></td></tr>';
     
    342375        else
    343376                printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );
    344377
     378        /**
     379         * Appends output to the theme update notification message.
     380         *
     381         * Output additional markup in the Network Admin themes overview page after the theme's table row.
     382         *
     383         * @since 3.1.0
     384         *
     385         * @param string $theme_key The unique name of the theme as found in the themes repository.
     386         * @param array $theme {
     387         *              An array containing all of the theme metadata.
     388         *
     389         *              @type string $Name The human-readable name of the theme.
     390         *              @type string $Title The human-readable title of the theme.
     391         *              @type string $Description A short description of the theme.
     392         *              @type string $Author Theme author's username.
     393         *              @type string $Author Name Theme author's name.
     394         *              @type string $Author URI Path to the theme author's web resources.
     395         *              @type string $Version The version number for the current theme.
     396         *              @type string $Template Unique name of this theme as found in the themes repository.
     397         *              @type string $Stylesheet Unique name of the parent theme as found in the themes repository if available.
     398         *              @type array $Template Files An array of all PHP files included in the theme.
     399         *              @type array $Stylesheet Files An array of all CSS files included in the theme.
     400         *              @type string $Template Dir Local path to the theme.
     401         *              @type string $Stylesheet Dir Local path to the directory containing style.css.
     402         *              @type string $Status The theme's availablity in the current WordPress installation.
     403         *              @type string $Screenshot The filename of the theme thumbnail.
     404         *              @type array $Tags An array of all tags used to describe the theme.
     405         *              @type string $Theme Root Local path to the WordPress installations themes directory.
     406         *              @type string $Theme Root URI Path to the WordPress installations theme directory.
     407         *              @type string $Parent Theme The name of the parent theme if applicable.
     408         *              @type bool $enabled. Whether the theme is enabled.
     409         * }
     410         * @param array $r {
     411         *              An array containing metadata about the latest available theme update.
     412         *
     413         *              @type string $new_version The version of the theme to be updated.
     414         *              @type string $url The home web page for this theme.
     415         *              @type string $package The source location of the package that contains the theme files to be updated.
     416         * }
     417         */
    345418        do_action( "in_theme_update_message-$theme_key", $theme, $r );
    346419
    347420        echo '</div></td></tr>';