Ticket #42228: 42228_updated_1.patch
File 42228_updated_1.patch, 2.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/plugin.php
113 113 /** 114 114 * Sanitizes plugin data, optionally adds markup, optionally translates. 115 115 * 116 * @since 2.7.0116 * @since 2.7.0 117 117 * @access private 118 * @see get_plugin_data() 118 * 119 * @param string $plugin_file Path to the main plugin file. 120 * @param array $plugin_data An array of plugin data. See `get_plugin_data()`. 121 * @param bool $markup Optional. If the returned data should have HTML markup applied. 122 * Default true. 123 * @param bool $translate Optional. If the returned data should be translated. Default true. 124 * 125 * @see get_plugin_data() 126 * 127 * @return array { 128 * Plugin data. Values will be empty if not supplied by the plugin. 129 * 130 * @type string $Name Name of the plugin. Should be unique. 131 * @type string $Title Title of the plugin and link to the plugin's site (if set). 132 * @type string $Description Plugin description. 133 * @type string $Author Author's name. 134 * @type string $AuthorURI Author's website address (if set). 135 * @type string $Version Plugin version. 136 * @type string $TextDomain Plugin textdomain. 137 * @type string $DomainPath Plugins relative directory path to .mo files. 138 * @type bool $Network Whether the plugin can only be activated network-wide. 139 * } 119 140 */ 120 141 function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) { 121 142 … … 364 385 /** 365 386 * Callback to sort array by a 'Name' key. 366 387 * 367 * @since 3.1.0388 * @since 3.1.0 368 389 * @access private 390 * 391 * @param array $a array with 'Name' key. 392 * @param array $b array with 'Name' key. 393 * 394 * @return int Return 0 or 1 based on two string comparison. 369 395 */ 370 396 function _sort_uname_callback( $a, $b ) { 371 397 return strnatcasecmp( $a['Name'], $b['Name'] ); … … 1461 1487 * 1462 1488 * @param string $menu_slug The slug for the parent menu. 1463 1489 * @param string $submenu_slug The slug of the submenu. 1490 * 1464 1491 * @return array|bool The removed submenu on success, false if not found. 1465 1492 */ 1466 1493 function remove_submenu_page( $menu_slug, $submenu_slug ) {