Changeset 33684
- Timestamp:
- 08/21/2015 04:04:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r33683 r33684 27 27 * 28 28 * @since 2.8.0 29 * @access public 29 30 * @var string $strings 30 31 */ … … 35 36 * 36 37 * @since 2.8.0 38 * @access public 37 39 * @var WP_Upgrader_Skin $skin 38 40 */ … … 48 50 * 49 51 * @since 2.8.0 52 * @access public 53 * 50 54 * @var WP_Error|array $result { 51 55 * @type string $source The full path to the source the files were installed from. … … 69 73 * 70 74 * @since 3.0.0 75 * @access public 71 76 * @var int $update_count 72 77 */ … … 79 84 * 80 85 * @since 3.0.0 86 * @access public 81 87 * @var int 82 88 */ … … 87 93 * 88 94 * @since 2.8.0 95 * @access public 89 96 * 90 97 * @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a {@see WP_Upgrader_Skin} … … 105 112 * 106 113 * @since 2.8.0 114 * @access public 107 115 */ 108 116 public function init() { … … 115 123 * 116 124 * @since 2.8.0 125 * @access public 117 126 */ 118 127 public function generic_strings() { … … 143 152 * 144 153 * @since 2.8.0 154 * @access public 145 155 * 146 156 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 206 216 * 207 217 * @since 2.8.0 218 * @access public 208 219 * 209 220 * @param string $package The URI of the package. If this is the full path to an … … 217 228 * 218 229 * @since 3.7.0 230 * @access public 219 231 * 220 232 * @param bool $reply Whether to bail without returning the package. … … 247 259 * 248 260 * @since 2.8.0 261 * @access public 249 262 * 250 263 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 298 311 * 299 312 * @since 4.3.0 313 * @access public 300 314 * 301 315 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 361 375 * 362 376 * @since 2.8.0 377 * @access public 363 378 * 364 379 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 562 577 * 563 578 * @since 2.8.0 579 * @access public 564 580 * 565 581 * @param array $options { … … 708 724 * 709 725 * @since 2.8.0 726 * @access public 710 727 * 711 728 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 743 760 * 744 761 * @since 2.8.0 762 * @access public 745 763 * @var array|WP_Error $result 746 764 * @see WP_Upgrader::$result … … 752 770 * 753 771 * @since 2.9.0 772 * @access public 754 773 * @var bool $bulk 755 774 */ … … 760 779 * 761 780 * @since 2.8.0 781 * @access public 762 782 */ 763 783 public function upgrade_strings() { … … 777 797 * 778 798 * @since 2.8.0 799 * @access public 779 800 */ 780 801 public function install_strings() { … … 793 814 * @since 2.8.0 794 815 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. 816 * @access public 795 817 * 796 818 * @param string $package The full local path or URI of the package. … … 843 865 * @since 2.8.0 844 866 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. 867 * @access public 845 868 * 846 869 * @param string $plugin The basename path to the main plugin file. … … 909 932 * @since 2.8.0 910 933 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. 934 * @access public 911 935 * 912 936 * @param array $plugins Array of the basename paths of the plugins' main files. … … 1041 1065 * 1042 1066 * @since 3.3.0 1067 * @access public 1043 1068 * 1044 1069 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 1082 1107 * 1083 1108 * @since 2.8.0 1109 * @access public 1084 1110 * 1085 1111 * @return string|false The full path to the main plugin file, or false. … … 1107 1133 * @since 2.8.0 1108 1134 * @since 4.1.0 Added a return value. 1135 * @access public 1109 1136 * 1110 1137 * @param bool|WP_Error $return Upgrade offer return. … … 1140 1167 * 1141 1168 * @since 2.8.0 1169 * @access public 1142 1170 * 1143 1171 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 1210 1238 * 1211 1239 * @since 2.8.0 1240 * @access public 1212 1241 */ 1213 1242 public function upgrade_strings() { … … 1226 1255 * 1227 1256 * @since 2.8.0 1257 * @access public 1228 1258 */ 1229 1259 public function install_strings() { … … 1253 1283 * 1254 1284 * @since 3.4.0 1285 * @access public 1255 1286 * 1256 1287 * @param bool $install_result … … 1326 1357 * 1327 1358 * @since 3.4.0 1359 * @access public 1328 1360 * 1329 1361 * @param array $actions Preview actions. … … 1340 1372 * @since 2.8.0 1341 1373 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. 1374 * @access public 1342 1375 * 1343 1376 * @param string $package The full local path or URI of the package. … … 1392 1425 * @since 2.8.0 1393 1426 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. 1427 * @access public 1394 1428 * 1395 1429 * @param string $theme The theme slug. … … 1457 1491 * @since 3.0.0 1458 1492 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. 1493 * @access public 1459 1494 * 1460 1495 * @param array $themes The theme slugs. … … 1577 1612 * 1578 1613 * @since 3.3.0 1614 * @access public 1579 1615 * 1580 1616 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 1617 1653 * 1618 1654 * @since 2.8.0 1655 * @access public 1619 1656 * 1620 1657 * @param bool|WP_Error $return … … 1644 1681 * 1645 1682 * @since 2.8.0 1683 * @access public 1646 1684 * 1647 1685 * @param bool|WP_Error $return … … 1678 1716 * 1679 1717 * @since 2.8.0 1718 * @access public 1680 1719 * 1681 1720 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 1711 1750 * @since 2.8.0 1712 1751 * @since 3.0.0 The `$theme` argument was added. 1752 * @access public 1713 1753 * 1714 1754 * @param string $theme The directory name of the theme. This is optional, and if not supplied, … … 1743 1783 * 1744 1784 * @since 3.7.0 1785 * @access public 1745 1786 * @var array|WP_Error $result 1746 1787 * @see WP_Upgrader::$result … … 1752 1793 * 1753 1794 * @since 3.7.0 1795 * @access public 1754 1796 * @var bool $bulk 1755 1797 */ … … 1762 1804 * 1763 1805 * @since 3.7.0 1806 * @access public 1764 1807 * 1765 1808 * @static … … 1820 1863 * 1821 1864 * @since 3.7.0 1865 * @access public 1822 1866 */ 1823 1867 public function upgrade_strings() { … … 1835 1879 * 1836 1880 * @since 3.7.0 1881 * @access public 1837 1882 * 1838 1883 * @param string|false $update Optional. Whether an update offer is available. Default false. … … 1859 1904 * 1860 1905 * @since 3.7.0 1906 * @access public 1861 1907 * 1862 1908 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 1986 2032 * 1987 2033 * @since 3.7.0 2034 * @access public 1988 2035 * 1989 2036 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 2021 2068 * 2022 2069 * @since 3.7.0 2070 * @access public 2023 2071 * 2024 2072 * @param object $update The data for an update. … … 2060 2108 * 2061 2109 * @since 2.8.0 2110 * @access public 2062 2111 */ 2063 2112 public function upgrade_strings() { … … 2076 2125 * 2077 2126 * @since 2.8.0 2127 * @access public 2078 2128 * 2079 2129 * @global WP_Filesystem_Base $wp_filesystem Subclass … … 2246 2296 * 2247 2297 * @since 3.7.0 2298 * @access public 2248 2299 * 2249 2300 * @static … … 2354 2405 * 2355 2406 * @since 3.7.0 2407 * @access public 2356 2408 * 2357 2409 * @global string $wp_version … … 2393 2445 * 2394 2446 * @since 2.8.0 2447 * @access public 2395 2448 * @var string $package 2396 2449 */ … … 2401 2454 * 2402 2455 * @since 2.8.0 2456 * @access public 2403 2457 * @var string $filename 2404 2458 */ … … 2409 2463 * 2410 2464 * @since 3.3.0 2465 * @access public 2411 2466 * @var int $id 2412 2467 */ … … 2417 2472 * 2418 2473 * @since 2.8.0 2474 * @access public 2419 2475 * 2420 2476 * @param string $form The name of the form the file was uploaded from. … … 2476 2532 * 2477 2533 * @since 3.2.2 2534 * @access public 2478 2535 * 2479 2536 * @return bool Whether the cleanup was successful. … … 2503 2560 * 2504 2561 * @var array 2562 * @access protected 2505 2563 */ 2506 2564 protected $update_results = array(); … … 2510 2568 * 2511 2569 * @since 3.7.0 2570 * @access public 2512 2571 */ 2513 2572 public function is_disabled() { … … 2550 2609 * 2551 2610 * @since 3.7.0 2611 * @access public 2552 2612 * 2553 2613 * @param string $context The filesystem path to check, in addition to ABSPATH. … … 2602 2662 * 2603 2663 * @since 3.7.0 2664 * @access public 2604 2665 * 2605 2666 * @global wpdb $wpdb … … 2685 2746 * 2686 2747 * @since 3.7.0 2748 * @access protected 2687 2749 * 2688 2750 * @param object $item The update offer. … … 2728 2790 * 2729 2791 * @since 3.7.0 2792 * @access public 2730 2793 * 2731 2794 * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'. … … 2831 2894 * 2832 2895 * @since 3.7.0 2896 * @access public 2833 2897 * 2834 2898 * @global wpdb $wpdb … … 2968 3032 * If we tried to perform a core update, check if we should send an email, 2969 3033 * and if we need to avoid processing future updates. 3034 * 3035 * @since Unknown 3036 * @access protected 2970 3037 * 2971 3038 * @global string $wp_version … … 3057 3124 * 3058 3125 * @since 3.7.0 3126 * @access protected 3059 3127 * 3060 3128 * @global string $wp_version … … 3256 3324 * 3257 3325 * @since 3.7.0 3326 * @access protected 3258 3327 */ 3259 3328 protected function send_debug_email() {
Note: See TracChangeset
for help on using the changeset viewer.