WordPress.org

Make WordPress Core

Ticket #7479: 7479_plugin_data_title_field.diff

File 7479_plugin_data_title_field.diff, 926 bytes (added by strider72, 13 years ago)

Adds title back to get_plugin_data

  • wp-admin/includes/plugin.php

     
    8989                        ${$field} = '';
    9090        }
    9191
     92        if ('' != trim($uri) && '' != $name ) {
     93                $title = '<a href="' . trim( $uri ) . '" title="'. __( 'Visit plugin homepage' ) . '">' . $name . '</a>';
     94        } else {
     95                $title = $name;
     96        }
     97
    9298        return array(
    93                                 'Name' => $name, 'PluginURI' => $uri, 'Description' => $description,
    94                                 'Author' => $author_name, 'AuthorURI' => $author_uri, 'Version' => $version,
    95                                 'TextDomain' => $text_domain, 'DomainPath' => $domain_path
     99                                'Name' => $name, 'PluginURI' => $uri, 'Title' => $title,
     100                                'Description' => $description, 'Author' => $author_name, 'AuthorURI' => $author_uri,
     101                                'Version' => $version, 'TextDomain' => $text_domain, 'DomainPath' => $domain_path
    96102                                );
    97103}
    98104