Make WordPress Core

Ticket #26252: 26252.4.diff

File 26252.4.diff, 5.5 KB (added by stevenkword, 11 years ago)

Updates formatting

  • 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                 * Fires at the end of each row in the plugin updates table.
     290                 *
     291                 * The dynamic portion of the hook name, $file, refers to the filename of the plugin's primary file relative to the plugins folder (e.g., 'in_plugin_update_message-akismet/akismet.php').
     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 $plugin_uri   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 $author_uri   Path to the plugin author's web resources.
     305                 *     @type string $text_domain  Plugin's text domain for localization.
     306                 *     @type string $domain_path  Plugin's relative directory path to .mo files.
     307                 *     @type bool   $network      Whether the plugin can only be activated network wide.
     308                 *     @type string $title        The human-readable title of the plugin.
     309                 *     @type string $author_name  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         * Fires at the end of each row in the theme updates table.
     380         *
     381         * The dynamic portion of the hook name, $theme_key, refers to the theme slug as found in the WordPress.org themes repository (e.g., 'in_theme_update_message-twentyfourteen').
     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>';