Ticket #22704: 22704_r25650.diff
| File 22704_r25650.diff, 2.2 KB (added by , 12 years ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
1485 1485 } 1486 1486 1487 1487 /** 1488 * Check for GIT/SVNcheckouts.1488 * Check for version-controlled checkouts. 1489 1489 */ 1490 1490 static function is_vcs_checkout( $context ) { 1491 1491 $stop_dirs = array( … … 1495 1495 if ( ! file_exists( ABSPATH . '/wp-config.php' ) ) // wp-config.php up one folder in a deployment situation 1496 1496 $stop_dirs[] = dirname( ABSPATH ); 1497 1497 1498 $vcs_dirs = array( 1499 '.bzr', // Bazaar 1500 '.git', // Git 1501 '.hg', // Mercurial 1502 '.svn', // Subversion 1503 ); 1504 1498 1505 $checkout = false; 1499 1506 foreach ( array_unique( $stop_dirs ) as $dir ) { 1500 if ( file_exists( $dir . '/.svn' ) || file_exists( $dir . '/.git' ) || file_exists( $dir . '/.hg' ) || file_exists( $dir . '/.bzr' ) ) { 1501 $checkout = true; 1502 break; 1507 foreach( $vcs_dirs as $vcs_dir ) { 1508 if ( file_exists( $dir . '/' . $vcs_dir ) ) { 1509 $checkout = true; 1510 break; 1511 } 1503 1512 } 1504 1513 } 1505 1514 return apply_filters( 'auto_upgrade_is_vcs_checkout', $checkout, $context ); … … 1640 1649 $item->language 1641 1650 ); 1642 1651 } 1643 1652 1644 1653 break; 1645 1654 } 1646 1655 … … 1688 1697 return; 1689 1698 1690 1699 // Don't automatically run these thins, as we'll handle it ourselves 1691 remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20, 3 ); 1692 remove_action( 'upgrader_process_complete', 'wp_version_check' ); 1693 remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); 1694 remove_action( 'upgrader_process_complete', 'wp_update_themes' ); 1700 remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20, 3 ); 1701 remove_action( 'upgrader_process_complete', 'wp_version_check' ); 1702 remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); 1703 remove_action( 'upgrader_process_complete', 'wp_update_themes' ); 1695 1704 1696 1705 // Next, Plugins 1697 1706 wp_update_plugins(); // Check for Plugin updates … … 1850 1859 1851 1860 wp_mail( get_site_option( 'admin_email' ), $subject, implode( "\n", $body ) ); 1852 1861 } 1853 } 1854 No newline at end of file 1862 }