Andrew Nacin
58c18f0c32
Show the nag we show for a stuck .maintenance file when an auto update failed.
...
see #25654 .
Built from https://develop.svn.wordpress.org/trunk@25872
git-svn-id: http://core.svn.wordpress.org/trunk@25784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 21:15:09 +00:00
Andrew Nacin
13dd29126a
"some files" instead of "certain files". Less stuffy.
...
props markjaquith.
see #25652 .
Built from https://develop.svn.wordpress.org/trunk@25871
git-svn-id: http://core.svn.wordpress.org/trunk@25783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 18:41:10 +00:00
Andrew Nacin
fabf119cf3
New, better error message when we realize we won't be able to copy a file and continue with the update.
...
fixes #25652 .
Built from https://develop.svn.wordpress.org/trunk@25870
git-svn-id: http://core.svn.wordpress.org/trunk@25782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 18:21:10 +00:00
Andrew Nacin
d5fdd66f9d
Only enforce disk free space checks when doing background updates.
...
see #25652 .
Built from https://develop.svn.wordpress.org/trunk@25869
git-svn-id: http://core.svn.wordpress.org/trunk@25781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 18:18:09 +00:00
Andrew Nacin
74488bdcb0
Spell out duplicate hook locations.
...
props DrewAPicture.
fixes #25658 .
Built from https://develop.svn.wordpress.org/trunk@25868
git-svn-id: http://core.svn.wordpress.org/trunk@25780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 17:22:11 +00:00
Andrew Nacin
a160441c81
Updates: Disable maintenance mode once we've finished copying files, to minimize disruption.
...
props dd32.
fixes #25655 .
Built from https://develop.svn.wordpress.org/trunk@25866
git-svn-id: http://core.svn.wordpress.org/trunk@25778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 17:20:10 +00:00
Andrew Nacin
097c0fd0b6
Updates: Saner stats and rollback handling. WP.org now collects basic stats on non-auto updates as they have been hugely informative.
...
props dd32 for initial patch.
fixes #25657 .
Built from https://develop.svn.wordpress.org/trunk@25863
git-svn-id: http://core.svn.wordpress.org/trunk@25775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 09:49:09 +00:00
Andrew Nacin
64bd5aa564
Move upgrader_process_complete for core to its proper place in Core_Upgrader.
...
This means it will be firing as a JS redirect is taking place if the update is from pre-3.4. Acceptable.
props dd32.
fixes #25659 .
Built from https://develop.svn.wordpress.org/trunk@25861
git-svn-id: http://core.svn.wordpress.org/trunk@25773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-22 04:37:09 +00:00
Andrew Nacin
5a0b227316
Rename the automatic_updates_send_email filter to auto_core_update_send_email. (Final name change.)
...
fixes #25653 . Also:
* Fully document all new hooks, methods, and classes in the upgrader.
* Rename 'language' to 'translation' inside the upgrader.
* Improve the readability of the crazy do-while loop in the is_vcs_checkout() method.
Built from https://develop.svn.wordpress.org/trunk@25859
git-svn-id: http://core.svn.wordpress.org/trunk@25771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-21 22:29:09 +00:00
Drew Jaynes
564596c03f
Improve inline documentation for hooks in wp-admin/customize.php.
...
Props kpdesign.
Fixes #25444 .
Built from https://develop.svn.wordpress.org/trunk@25858
git-svn-id: http://core.svn.wordpress.org/trunk@25770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-21 21:17:09 +00:00
Andrew Nacin
ee489a2e81
Commit [25823] should not have renamed AUTOMATIC_UPDATER_DISABLED to AUTOMATIC_UPDATES_DISABLED.
...
The proper constant is AUTOMATIC_UPDATER_DISABLED. Keep the filter in line with that too.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25851
git-svn-id: http://core.svn.wordpress.org/trunk@25763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 21:24:10 +00:00
Dominik Schilling
3d8706e96a
Vendor-prefixes for [25845]. props jorbin. see #25603 .
...
Built from https://develop.svn.wordpress.org/trunk@25849
git-svn-id: http://core.svn.wordpress.org/trunk@25761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 19:25:10 +00:00
Andrew Nacin
23759bf469
About page: Prevent the meter from briefly sticking on 'Strong' when the animation resets.
...
props jorbin.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25848
git-svn-id: http://core.svn.wordpress.org/trunk@25760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 18:50:09 +00:00
Andrew Nacin
b301bb108e
Since we're dealing with a huge password meter, don't bold half of the result strings unnecessarily. see #25603 .
...
Built from https://develop.svn.wordpress.org/trunk@25847
git-svn-id: http://core.svn.wordpress.org/trunk@25759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 18:36:10 +00:00
Dominik Schilling
72dd603010
IE7: Fix width of the password input field on the about page. see #25603 .
...
Built from https://develop.svn.wordpress.org/trunk@25846
git-svn-id: http://core.svn.wordpress.org/trunk@25758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 17:58:10 +00:00
Andrew Nacin
ed5f85cdc8
About page: Use box-sizing: border-box on the password meter so pixels line up.
...
Also eliminates a duplicate width: 100% property.
fixes #25603 .
Built from https://develop.svn.wordpress.org/trunk@25845
git-svn-id: http://core.svn.wordpress.org/trunk@25757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 17:47:10 +00:00
Dominik Schilling
3cb61fd4a5
CSS cleanup for the about page.
...
Also fixes for IE and support for RTL.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25844
git-svn-id: http://core.svn.wordpress.org/trunk@25756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 17:36:09 +00:00
Andrew Nacin
c00bba9e8b
Use correct variable. fixes #10787 .
...
Built from https://develop.svn.wordpress.org/trunk@25843
git-svn-id: http://core.svn.wordpress.org/trunk@25755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 17:16:10 +00:00
Andrew Nacin
beb95e4167
Use full paths to images so they work on wp-admin/network/about.php and user/about.php. see #25603 .
...
Built from https://develop.svn.wordpress.org/trunk@25842
git-svn-id: http://core.svn.wordpress.org/trunk@25754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 16:50:10 +00:00
Andrew Nacin
ee20af1fad
Notify administrators of successful, failed, and pending core updates.
...
Blocks future background updates after critical failures, but allow retries in certain situations. More in the ticket.
fixes #10787 .
Built from https://develop.svn.wordpress.org/trunk@25841
git-svn-id: http://core.svn.wordpress.org/trunk@25753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 16:30:11 +00:00
Andrew Nacin
6342b01d3d
Remove rarr from about page text. Use a subtle background instead.
...
props markjaquith.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25840
git-svn-id: http://core.svn.wordpress.org/trunk@25752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 08:42:10 +00:00
Andrew Nacin
328a847bc1
Awesome about page design for WordPress 3.7.
...
The page includes a giant password meter that serves as both an animated example and a working demo. How cool is that?
props jorbin, melchoyce.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25839
git-svn-id: http://core.svn.wordpress.org/trunk@25751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 08:11:09 +00:00
Andrew Nacin
859da01c4a
Delete expired transients on database upgrades.
...
Reverts [25416], which had all transients being cleared. This leaves much to be desired, but we don't want a core update to be blamed for breaking a site that incorrectly assumes transients aren't transient.
props dartiss, pento.
fixes #20316 .
Built from https://develop.svn.wordpress.org/trunk@25838
git-svn-id: http://core.svn.wordpress.org/trunk@25750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 07:48:09 +00:00
Andrew Nacin
5f3e90a112
Introduce email templates for automatic background updates.
...
The four templates are:
1. We successfully updated their site. If any of their themes or plugins are out of date, it also mentions that. ('success')
2. We are not configured to update their site, so we notify them of the new release. ('notify')
3. We tried but failed to update their site. The error was early in the process, so no harm, no foul. This is the same as template #2 , plus one sentence. ('fail')
4. We tried to update their site, and failed while copying files. ('critical')
With assistance from markjaquith.
see #10787 .
Built from https://develop.svn.wordpress.org/trunk@25837
git-svn-id: http://core.svn.wordpress.org/trunk@25749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-18 06:33:10 +00:00
Andrew Nacin
325ccd0a14
set_current_screen() is now unnecessary in Automatic_Upgrader_Skin, which is good because it breaks things in the network admin.
...
fixes #25622 .
Built from https://develop.svn.wordpress.org/trunk@25836
git-svn-id: http://core.svn.wordpress.org/trunk@25748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 23:24:09 +00:00
Andrew Nacin
a65661abee
In automatic background updates, standardize on 'update'.
...
New, final filter names:
* auto_update_{$type} (plugin, theme, core, language)
* automatic_updates_is_vcs_checkout
* automatic_updates_disabled
New class name is WP_Automatic_Updater. Method names include update() and should_update().
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25835
git-svn-id: http://core.svn.wordpress.org/trunk@25747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 23:21:10 +00:00
Andrew Nacin
de21e296ce
Remove redundant code. see #25603 , #22704 , [25833].
...
Built from https://develop.svn.wordpress.org/trunk@25834
git-svn-id: http://core.svn.wordpress.org/trunk@25746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 20:30:10 +00:00
Andrew Nacin
c3a27493e6
Check if background core updates are supported on about.php.
...
see #25603 , #22704 .
Built from https://develop.svn.wordpress.org/trunk@25833
git-svn-id: http://core.svn.wordpress.org/trunk@25745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 20:29:09 +00:00
Andrew Nacin
5343c74b4a
Update the text for the about page, so translators can get started. Design is in flux.
...
props nacin, markjaquith, jorbin, jenmylo.
see #25603 .
Built from https://develop.svn.wordpress.org/trunk@25832
git-svn-id: http://core.svn.wordpress.org/trunk@25744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 20:17:09 +00:00
Dion Hulse
924e35d66a
Silence PHP warnings from disk_free_space(). disk_free_space() will produce a warning in error conditions in addition to returning false, this includes a case where the bytes free is greater than PHP_INT_MAX (which is a error condition we don't need to check).
...
See #25576 , #22704
Built from https://develop.svn.wordpress.org/trunk@25831
git-svn-id: http://core.svn.wordpress.org/trunk@25743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 18:40:10 +00:00
Drew Jaynes
73f3f80a1d
Inline documentation for hooks in wp-admin/options-general.php.
...
Props siobhyb for the initial patch.
Fixes #25454 .
Built from https://develop.svn.wordpress.org/trunk@25830
git-svn-id: http://core.svn.wordpress.org/trunk@25742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 06:18:10 +00:00
Drew Jaynes
21b24c1fba
Inline documentation for hooks in wp-admin/options-discussion.php.
...
Props siobhyb, ericlewis.
Fixes #25453 .
Built from https://develop.svn.wordpress.org/trunk@25829
git-svn-id: http://core.svn.wordpress.org/trunk@25741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 06:00:09 +00:00
Dion Hulse
1c8d882e13
For Background updates, ensure that only one update process runs at the same time by using the options table as a lock.
...
This prevents multiple cron spawns and/or long-running updates from causing multiple update processes to spin up.
This also fixes a case where the upgrader might kick in for ( ! is_main_network() || ! is_main_site() ) in mulisite installs.
See #22704
Built from https://develop.svn.wordpress.org/trunk@25828
git-svn-id: http://core.svn.wordpress.org/trunk@25740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 05:24:09 +00:00
Drew Jaynes
1ac5a51c18
Inline documentation for hooks in wp-admin/customize.php.
...
Props andg, rzen.
Fixes #25444 .
Built from https://develop.svn.wordpress.org/trunk@25826
git-svn-id: http://core.svn.wordpress.org/trunk@25738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 04:53:09 +00:00
Andrew Nacin
9432acde4e
Remove the old wp_auto_updates_maybe_update cron event. Schedule the new wp_maybe_auto_update event at 7 a.m. and 7 p.m. in the site's timezone.
...
see #27704 .
Built from https://develop.svn.wordpress.org/trunk@25825
git-svn-id: http://core.svn.wordpress.org/trunk@25737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 04:02:09 +00:00
Andrew Nacin
191efaef61
Make WP_Automatic_Upgrader a proper object that gets instantiated. Renames nearly all of its methods.
...
Also renames wp_auto_updates_maybe_update() to wp_maybe_auto_update().
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25823
git-svn-id: http://core.svn.wordpress.org/trunk@25735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 00:55:09 +00:00
Dion Hulse
640f73ecd2
Remove a duplicate semicolon that snuck in. Props JustinSainton. See #18200
...
Built from https://develop.svn.wordpress.org/trunk@25822
git-svn-id: http://core.svn.wordpress.org/trunk@25734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-17 00:12:10 +00:00
Drew Jaynes
bd09d15a2c
Inline documentation for hooks in wp-admin/custom-header.php.
...
Props gizburdt for the initial patch.
Fixes #25443 .
Built from https://develop.svn.wordpress.org/trunk@25821
git-svn-id: http://core.svn.wordpress.org/trunk@25733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 23:26:10 +00:00
Andrew Nacin
55b0b79179
"Future security updates will be applied automatically." see #22704 .
...
Built from https://develop.svn.wordpress.org/trunk@25820
git-svn-id: http://core.svn.wordpress.org/trunk@25732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 23:06:09 +00:00
Drew Jaynes
359a2ce779
Inline documentation for hooks in wp-admin/edit-form-advanced.php.
...
Props ericlewis.
Fixes #25434 .
Built from https://develop.svn.wordpress.org/trunk@25819
git-svn-id: http://core.svn.wordpress.org/trunk@25731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 22:59:09 +00:00
Dion Hulse
376a0a55c7
Allow the WordPress.org Language update API to disallow automated background updates for a specific language pack. See #18200
...
Built from https://develop.svn.wordpress.org/trunk@25818
git-svn-id: http://core.svn.wordpress.org/trunk@25730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 22:27:09 +00:00
Dion Hulse
ed07bab4b4
When a plugin enables Background Plugin updates, don't deactivate the plugin during update as we require a browser to reactivate it afterwards. See #22704
...
Built from https://develop.svn.wordpress.org/trunk@25817
git-svn-id: http://core.svn.wordpress.org/trunk@25729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 19:48:10 +00:00
Andrew Nacin
766b6d3842
Update the banner for update-core.php that tells users they are set up for security updates to happen in the background.
...
"This site is set up to install security updates of WordPress automatically. Cool!"
Checkmark is a placeholder; we'll tinker with this further today.
see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25816
git-svn-id: http://core.svn.wordpress.org/trunk@25728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 19:41:09 +00:00
Andrew Nacin
bccefbbd83
Merge the should_auto_update() and can_auto_update() methods. see #22704 .
...
Built from https://develop.svn.wordpress.org/trunk@25815
git-svn-id: http://core.svn.wordpress.org/trunk@25727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 19:35:09 +00:00
Dion Hulse
085f5c5fb9
Fix a issue where the translation name isn't showing up in the Background Update emails, caused by a PHP Warning/missing variable in [25806]. See #18200
...
Built from https://develop.svn.wordpress.org/trunk@25812
git-svn-id: http://core.svn.wordpress.org/trunk@25724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 17:07:08 +00:00
Dion Hulse
8c35982ae8
Avoid a few PHP Warnings when files don't exist and use a better method to locate the local filepath.
...
See #18201
Built from https://develop.svn.wordpress.org/trunk@25811
git-svn-id: http://core.svn.wordpress.org/trunk@25723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 15:20:10 +00:00
Andrew Nacin
ba0ebf3736
Include translations in the update bubbles (as +1 if there are any). see #18200 .
...
Built from https://develop.svn.wordpress.org/trunk@25810
git-svn-id: http://core.svn.wordpress.org/trunk@25722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 14:34:10 +00:00
Dion Hulse
84cec7b526
Remove the no longer used Headerless_Upgrader_Skin class, it's been replaced by Language_Pack_Upgrader_Skin.
...
See #18200 , [25806]
Built from https://develop.svn.wordpress.org/trunk@25807
git-svn-id: http://core.svn.wordpress.org/trunk@25719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 04:19:09 +00:00
Dion Hulse
1c8e79353a
Language Packs: Many many fixes such as:
...
- Add a "Update Translations" stand-alone button to the updates page
- Shift Language feedback to before update process completion action links & limit the verbosity of output (name + success/errors)
- Simplify/combine the language update descriptive string to only include a plugin/theme name
- Properly handle cache clearing after language updates to prevent langs being repeditively updated
- Display a "All items up to date" string when there's nothing to do
- Reduce the 'Connection Information' from a <h2> to a <h3> to remove duplicate h2's and screen icons from update screens
- Fix the Direct filesystem method not being used for Language updates because WP_LANG_DIR doesn't exist (check it's parent for writable instead)
See #18200 , #22704
Built from https://develop.svn.wordpress.org/trunk@25806
git-svn-id: http://core.svn.wordpress.org/trunk@25718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 04:15:09 +00:00
Andrew Nacin
9fe39c464a
Avoid numerous potential PHP warnings when dealing with the pre-r25801 get_core_checksums() return value.
...
Warnings included current(), filestat(), and md5_file().
see #18201 . see #22704 .
Built from https://develop.svn.wordpress.org/trunk@25805
git-svn-id: http://core.svn.wordpress.org/trunk@25717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-16 04:02:09 +00:00