Ticket #11377: add_plugins_page.patch
File add_plugins_page.patch, 1.3 KB (added by , 15 years ago) |
---|
-
plugin.php
67 67 */ 68 68 function get_plugin_data( $plugin_file, $markup = true, $translate = true ) { 69 69 70 $default_headers = array( 71 'Name' => 'Plugin Name', 72 'PluginURI' => 'Plugin URI', 73 'Version' => 'Version', 74 'Description' => 'Description', 75 'Author' => 'Author', 76 'AuthorURI' => 'Author URI', 77 'TextDomain' => 'Text Domain', 78 'DomainPath' => 'Domain Path' 70 $default_headers = array( 71 'Name' => 'Plugin Name', 72 'PluginURI' => 'Plugin URI', 73 'Version' => 'Version', 74 'Description' => 'Description', 75 'Author' => 'Author', 76 'AuthorURI' => 'Author URI', 77 'TextDomain' => 'Text Domain', 78 'DomainPath' => 'Domain Path' 79 79 ); 80 80 81 81 $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); … … 726 726 return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $access_level, $file, $function ); 727 727 } 728 728 729 function add_plugins_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 730 return add_submenu_page( 'plugins.php', $page_title, $menu_title, $access_level, $file, $function ); 731 } 732 729 733 // 730 734 // Pluggable Menu Support -- Private 731 735 //