Commit Graph

78 Commits

Author SHA1 Message Date
ryan e3b46b25d3 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
dd32 3686bc4b6e use maybe_unserialize() in update and API checks, Tighten up the checks on expected return data to avoid processing invalid responses after change. See #19617
git-svn-id: http://svn.automattic.com/wordpress/trunk@19707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 03:48:05 +00:00
ryan 5849122174 Don't fire update checks for ajax requests. Props mitchoyoshitaka. fixes #13732
git-svn-id: http://svn.automattic.com/wordpress/trunk@19693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-05 22:46:32 +00:00
ryan fafe61b247 Check for plugin and theme updates more often when visitng update-core.php. Props kurtpayne. fixes #18876
git-svn-id: http://svn.automattic.com/wordpress/trunk@19683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-05 19:49:47 +00:00
nacin 8085f7d529 Revert update changes that snuck in with [19311]. see #19255, see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-16 07:23:15 +00:00
nacin cd33a2118d Fix typo in filler text cause we all know it'll slip through accidentally. props paulhastings0, fixes #19255.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-16 01:58:13 +00:00
ryan 62afab8db3 Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@19054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 19:13:23 +00:00
nacin 0f1b959ae5 Check for plugin/theme updates every hour when hitting update-core.php, not just themes.php/plugins.php. see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:23:35 +00:00
nacin 6a4ddffe0f Attach update hooks in the network admin. Accounts for the rare situation where the network admin is not the main site. props johnbillion, see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:15:21 +00:00
dd32 b7080959f6 Use http_build_query in the Core Update check to encode version numbers. Props kurtpayne. Fixes #18051
git-svn-id: http://svn.automattic.com/wordpress/trunk@18697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-17 09:14:27 +00:00
ryan c2d37a3d65 Consolidate update count code into wp_get_update_data(). Props mitchoyoshitaka. fixes #17694
git-svn-id: http://svn.automattic.com/wordpress/trunk@18468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-07-26 18:39:57 +00:00
nacin 13b17ec4b8 Bump core/version-check endpoint. see #17759.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-07-04 12:42:19 +00:00
nacin bf9c99e1fa Extra check for partial updates: Make sure the API response matches the current version of WP. see #10611.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 06:22:33 +00:00
nacin 75cfc9afc1 Bump.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 05:50:23 +00:00
nacin 493ac83f33 Core support for partial updates. see #10611.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 05:47:44 +00:00
nacin da2732c7de Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-14 19:45:07 +00:00
dd32 619d4d2dba Ensure that the Update API's are always using a non-modified $wp_version. Props nacin. Fixes #14384
git-svn-id: http://svn.automattic.com/wordpress/trunk@17619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-07 10:04:45 +00:00
dd32 197e081e19 Prevent update API requests on every load of themes.php when no updates are available. Fixes #16362
git-svn-id: http://svn.automattic.com/wordpress/trunk@17618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-07 09:56:20 +00:00
nacin 9c688c637d Fix typo in phpdoc. props PeteMall, fixes #16120.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-06 09:06:55 +00:00
nacin e466bb9d65 Use get_user_count() if multisite in wp_version_check. props PeteMall, fixes #15599.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-29 05:27:01 +00:00
ryan 6130324d14 Schedule update checks from an init hook. see #15148
git-svn-id: http://svn.automattic.com/wordpress/trunk@15872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-20 16:50:57 +00:00
nacin 806f2d56a1 Only run update checks on the main site. fixes #14554.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 13:43:32 +00:00
ryan a0289e8ce8 Clean up wp_update_themes(). Fix reporting of active theme. Props josephscott. fixes #14381 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@15455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-22 13:24:41 +00:00
josephscott 19e2b4e4b7 Update stats provided to api.wordpress.org see #12672
git-svn-id: http://svn.automattic.com/wordpress/trunk@14010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-05 20:19:07 +00:00
dd32 4ca0960178 Force Theme update check on GUU. See #12528
git-svn-id: http://svn.automattic.com/wordpress/trunk@13687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-13 04:05:54 +00:00
ryan 4e9de8d231 Code style cleanups
git-svn-id: http://svn.automattic.com/wordpress/trunk@12899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-29 18:53:32 +00:00
ryan 5d2365a499 Remove fix_actve_plugins(). Props hakre. fixes #11750
git-svn-id: http://svn.automattic.com/wordpress/trunk@12848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 18:39:12 +00:00
ryan 166435891c Convert update_themes, update_plugins, update_core, and dismissed_update_core into site transients/plugins. Remove no longer need compat code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 20:49:55 +00:00
ryan 810bf31f83 Check required php and mysql versions in the update response and notify if the server environment does not meet those requirements. fixes #11562
git-svn-id: http://svn.automattic.com/wordpress/trunk@12523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 18:35:12 +00:00
westi ab2d609404 Remove passing of spurious argument to wpdb->db_version().
git-svn-id: http://svn.automattic.com/wordpress/trunk@12348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-09 12:00:55 +00:00
ryan 2bf341d5d5 Put site into maintenance mode during bulk plugin upgrade. Skip plugin deactivate/activate. Add compatibility info. see #10973
git-svn-id: http://svn.automattic.com/wordpress/trunk@12157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-09 18:53:21 +00:00
westi e27b8078dd Make the operator precedence obvious by using parenthesis.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-16 06:30:52 +00:00
azaozz 326befa4ed Increase timeout on cron-based requests when checking for upgrades, props dd32, fixes #10349
git-svn-id: http://svn.automattic.com/wordpress/trunk@11826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-16 04:59:38 +00:00
azaozz e032847e3e Hide update notification for themes that are updated manually, props Denis-de-Bernardy, fixes #10220
git-svn-id: http://svn.automattic.com/wordpress/trunk@11714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-14 08:34:39 +00:00
ryan c0752626de Plugin install fixes. Props Denis-de-Bernardy. see #10192
git-svn-id: http://svn.automattic.com/wordpress/trunk@11585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-16 19:36:48 +00:00
ryan 1a939b81bd Use Stylesheet instead of Template to key theme data when doing theme update check. Props josephscott. fixes #9897
git-svn-id: http://svn.automattic.com/wordpress/trunk@11424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-21 18:17:20 +00:00
azaozz db1d0c4ed5 Include the current theme in theme update check, props josephscott, fixes #9880
git-svn-id: http://svn.automattic.com/wordpress/trunk@11404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-19 20:12:37 +00:00
markjaquith 3ebf837ced Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: http://svn.automattic.com/wordpress/trunk@11383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 16:00:33 +00:00
ryan 83925773d0 Don't do core version check from front page loads. Props Denis-de-Bernardy. fixes #8590
git-svn-id: http://svn.automattic.com/wordpress/trunk@11209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 21:51:48 +00:00
markjaquith 6c2ffddf31 _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 19:43:53 +00:00
ryan 2d489767bb s/attribute_escape/attr/. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 05:58:45 +00:00
azaozz 1e31cc81a0 Disable PHP error reporting in gears-manifest.php, load-scripts.php and load-styles.php since they don't load wp-settings, fix some notices
git-svn-id: http://svn.automattic.com/wordpress/trunk@10939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-15 19:55:41 +00:00
ryan 8b11ce3acb Add core_version_check_locale filter. Props nbachiyski. see #8729
git-svn-id: http://svn.automattic.com/wordpress/trunk@10772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-11 23:37:33 +00:00
ryan f05146c34f Check for new version when visiting Tools->Upgrade. fixes #9108
git-svn-id: http://svn.automattic.com/wordpress/trunk@10583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-17 00:13:25 +00:00
ryan 7aec230e33 Use transient for update_core, update_plugins, update_themes. see #9048
git-svn-id: http://svn.automattic.com/wordpress/trunk@10515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-06 18:06:20 +00:00
westi c55feaddbf Set the user-agent like we did before. See #8660
git-svn-id: http://svn.automattic.com/wordpress/trunk@10238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-21 21:52:15 +00:00
ryan b4654848fc Plugin and theme udpdate check fixes. Props DD32. fixes #8660 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-18 17:23:20 +00:00
ryan e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
ryan ba7c715d8e Fix notices. see #8347
git-svn-id: http://svn.automattic.com/wordpress/trunk@9902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-26 12:04:29 +00:00
ryan f91d22aadb If api.wp.org request blocks, make sure another requests isn't scheduled for 12 hours. see #8347
git-svn-id: http://svn.automattic.com/wordpress/trunk@9901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-26 11:48:05 +00:00