Ticket #12130: 12130.diff
File 12130.diff, 2.3 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/plugin.php
21 21 * Description: Plugin Description 22 22 * Author: Plugin author's name 23 23 * Author URI: Link to the author's web site 24 * Donate URI: Link to the donate to the plugin author 24 25 * Version: Must be set in the plugin for WordPress 2.3+ 25 26 * Text Domain: Optional. Unique identifier, should be same as the one used in 26 27 * plugin_text_domain() … … 39 40 * from the author. 40 41 * 'Author' - The author's name 41 42 * 'AuthorURI' - The authors web site address. 43 * 'DonateURI' - Web address to donate to the plugin author. 42 44 * 'Version' - The plugin version number. 43 45 * 'PluginURI' - Plugin web site address. 44 46 * 'TextDomain' - Plugin's text domain for localization. … … 75 77 'Author' => 'Author', 76 78 'AuthorURI' => 'Author URI', 77 79 'TextDomain' => 'Text Domain', 78 'DomainPath' => 'Domain Path' 80 'DomainPath' => 'Domain Path', 81 'DonateURI' => 'Donate URI' 79 82 ); 80 83 81 84 $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); … … 98 101 else 99 102 load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file)); 100 103 101 foreach ( array('Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field )104 foreach ( array('Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version', 'DonateURI') as $field ) 102 105 $plugin_data[ $field ] = translate($plugin_data[ $field ], $plugin_data['TextDomain']); 103 106 } 104 107 -
wp-admin/plugins.php
533 533 } 534 534 if ( ! empty($plugin_data['PluginURI']) ) 535 535 $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . __( 'Visit plugin site' ) . '">' . __('Visit plugin site') . '</a>'; 536 536 if ( ! empty($plugin_data['DonateURI']) ) 537 $plugin_meta[] = '<a href="' . $plugin_data['DonateURI'] . '" title="' . __( 'Donate' ) . '">' . __('Donate') . '</a>'; 538 537 539 $plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context); 538 540 echo implode(' | ', $plugin_meta); 539 541 echo "</td>