Commit Graph

908 Commits

Author SHA1 Message Date
Andrew Nacin
b10ef05fb1 Trunk is now 3.8-alpha
git-svn-id: https://develop.svn.wordpress.org/trunk@25879 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 23:58:08 +00:00
Andrew Nacin
c773d253ec 3.7-RC2
git-svn-id: https://develop.svn.wordpress.org/trunk@25875 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 22:09:18 +00:00
Andrew Nacin
46302236ae Have heartbeat's connection lost notice handle 503 errors send by the upgrader's maintenance mode.
fixes #25660 for 3.7.


git-svn-id: https://develop.svn.wordpress.org/trunk@25874 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:26:04 +00:00
Andrew Nacin
ff69fb4b8f Make some changes to the email templates to account for the fact that an auto update offer might not be to the latest version.
For example, 3.7.2 install is served a 3.7.3 update, but the current version is 3.8.1.

This commit also allows for core update notification emails to be sent even when we are unable to run an auto update due to filesystem configuration (VCS checkout or file permissions). But, since these emails go through WP_Automatic_Updater, they will not be sent if the updater is outright disabled.

fixes #25654.


git-svn-id: https://develop.svn.wordpress.org/trunk@25873 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:18:09 +00:00
Andrew Nacin
aab4ffb29d Show the nag we show for a stuck .maintenance file when an auto update failed.
see #25654.


git-svn-id: https://develop.svn.wordpress.org/trunk@25872 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 21:14:06 +00:00
Andrew Nacin
ddbc271329 "some files" instead of "certain files". Less stuffy.
props markjaquith.
see #25652.


git-svn-id: https://develop.svn.wordpress.org/trunk@25871 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:40:20 +00:00
Andrew Nacin
f36fbb550c New, better error message when we realize we won't be able to copy a file and continue with the update.
fixes #25652.


git-svn-id: https://develop.svn.wordpress.org/trunk@25870 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:20:51 +00:00
Andrew Nacin
1a7bfffd0b Only enforce disk free space checks when doing background updates.
see #25652.


git-svn-id: https://develop.svn.wordpress.org/trunk@25869 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 18:17:13 +00:00
Andrew Nacin
c87ad6023d Spell out duplicate hook locations.
props DrewAPicture.
fixes #25658.


git-svn-id: https://develop.svn.wordpress.org/trunk@25868 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:21:32 +00:00
Andrew Nacin
d3981e2793 Always apply the posts_search filter. Restores 3.6 behavior.
props SergeyBiryukov.
fixes #25664.


git-svn-id: https://develop.svn.wordpress.org/trunk@25867 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:20:17 +00:00
Andrew Nacin
ea7d0de723 Updates: Disable maintenance mode once we've finished copying files, to minimize disruption.
props dd32.
fixes #25655.


git-svn-id: https://develop.svn.wordpress.org/trunk@25866 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 17:19:48 +00:00
Lance Willett
c6b0970356 Twenty Fourteen: use SVG images instead of CSS3 gradients for featured image background pattern. Props iamtakashi.
* Fixes laggy loading in Firefox, see #25600.
 * Significantly reduces CPU usage.
 * Scalable and crisp on HiDPI/retina screens.
 * SVG is support in IE9 which doesn't support CSS gradients.

git-svn-id: https://develop.svn.wordpress.org/trunk@25865 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 16:59:59 +00:00
Lance Willett
ea64c830f4 Twenty Fourteen: further revise primary navigation functionality, simplify mobile navigation, and clean up the main JS file. Props obenland, iamtakashi. See #25554.
git-svn-id: https://develop.svn.wordpress.org/trunk@25864 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 16:36:26 +00:00
Andrew Nacin
d0d07cf614 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25863 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 09:48:36 +00:00
Drew Jaynes
af6c888f7c Improve inline documentation for the wp_get_sites() return value.
Fixes #25645.


git-svn-id: https://develop.svn.wordpress.org/trunk@25862 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 05:47:15 +00:00
Andrew Nacin
bce2656e6d 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25861 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-22 04:36:54 +00:00
Drew Jaynes
258e4afcb2 Inline documentation for the WP_Date_Query class in wp-includes/date.php.
- Adds a complete hash notation for the `WP_Date_Query` arguments array.
- Adds missing documentation for the `date_query_valid_columns` and `get_date_sql` filter hooks.

Props aeg0125 for the incremental patches.
Fixes #25552.


git-svn-id: https://develop.svn.wordpress.org/trunk@25860 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 23:16:31 +00:00
Andrew Nacin
597e82e94c 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25859 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 22:28:07 +00:00
Drew Jaynes
a6d9b5e57a Improve inline documentation for hooks in wp-admin/customize.php.
Props kpdesign.
Fixes #25444.


git-svn-id: https://develop.svn.wordpress.org/trunk@25858 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 21:17:00 +00:00
Lance Willett
04ca72fd9c Twenty Fourteen: revise link colors. Props iamtakashi, see #25640.
git-svn-id: https://develop.svn.wordpress.org/trunk@25857 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 16:39:53 +00:00
Lance Willett
2240365438 Twenty Fourteen: fix non-image attachment page layout, props iamtakashi. Fixes #25624.
git-svn-id: https://develop.svn.wordpress.org/trunk@25856 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 16:34:56 +00:00
Lance Willett
ae9a30b7cf Twenty Fourteen: fix typo that prevented author name display in Ephemera widget. Props iamtakashi, fixes #25641.
git-svn-id: https://develop.svn.wordpress.org/trunk@25855 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 16:33:10 +00:00
Lance Willett
0b915b616c Twenty Fourteen: improved responsive styles for featured content and minor layout fixes. Props iamtakashi, see #25592.
git-svn-id: https://develop.svn.wordpress.org/trunk@25854 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 16:32:10 +00:00
Lance Willett
cb0ed1fcec Twenty Fourteen: fix a typo introduced in r25808, props kovshenin. See #25549.
git-svn-id: https://develop.svn.wordpress.org/trunk@25853 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-21 16:30:12 +00:00
Andrew Ozz
9381d2f3a6 TinyMCE: fix detection of IE11 in compatibility mode, fixes #25634.
git-svn-id: https://develop.svn.wordpress.org/trunk@25852 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 22:58:25 +00:00
Andrew Nacin
d96b64c116 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25851 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 21:23:43 +00:00
Andrew Nacin
a33d3a38e6 3.7-RC1
git-svn-id: https://develop.svn.wordpress.org/trunk@25850 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 19:47:47 +00:00
Dominik Schilling (ocean90)
5d7ee6ce93 Vendor-prefixes for [25845]. props jorbin. see #25603.
git-svn-id: https://develop.svn.wordpress.org/trunk@25849 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 19:24:18 +00:00
Andrew Nacin
278b180b2f About page: Prevent the meter from briefly sticking on 'Strong' when the animation resets.
props jorbin.
see #25603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25848 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 18:49:47 +00:00
Andrew Nacin
c85914b57e Since we're dealing with a huge password meter, don't bold half of the result strings unnecessarily. see #25603.
git-svn-id: https://develop.svn.wordpress.org/trunk@25847 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 18:36:01 +00:00
Dominik Schilling (ocean90)
476e4a4778 IE7: Fix width of the password input field on the about page. see #25603.
git-svn-id: https://develop.svn.wordpress.org/trunk@25846 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 17:57:08 +00:00
Andrew Nacin
f4bf16102d About page: Use box-sizing: border-box on the password meter so pixels line up.
Also eliminates a duplicate width: 100% property.

fixes #25603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25845 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 17:46:54 +00:00
Dominik Schilling (ocean90)
3b56df670e CSS cleanup for the about page.
Also fixes for IE and support for RTL.

see #25603.

git-svn-id: https://develop.svn.wordpress.org/trunk@25844 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 17:35:39 +00:00
Andrew Nacin
fda5b39db2 Use correct variable. fixes #10787.
git-svn-id: https://develop.svn.wordpress.org/trunk@25843 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 17:15:36 +00:00
Andrew Nacin
a028b8f2dc Use full paths to images so they work on wp-admin/network/about.php and user/about.php. see #25603.
git-svn-id: https://develop.svn.wordpress.org/trunk@25842 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 16:50:00 +00:00
Andrew Nacin
0b22aae62d 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25841 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 16:29:16 +00:00
Andrew Nacin
77730d6377 Remove rarr from about page text. Use a subtle background instead.
props markjaquith.
see #25603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25840 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 08:41:40 +00:00
Andrew Nacin
6810bc9069 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25839 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 08:10:43 +00:00
Andrew Nacin
142d8c3d30 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25838 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 07:47:44 +00:00
Andrew Nacin
92c2bc7797 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25837 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-18 06:32:27 +00:00
Andrew Nacin
aa4635548d set_current_screen() is now unnecessary in Automatic_Upgrader_Skin, which is good because it breaks things in the network admin.
fixes #25622.


git-svn-id: https://develop.svn.wordpress.org/trunk@25836 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 23:23:42 +00:00
Andrew Nacin
8cb344e237 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25835 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 23:20:56 +00:00
Andrew Nacin
ba10ec2cba Remove redundant code. see #25603, #22704, [25833].
git-svn-id: https://develop.svn.wordpress.org/trunk@25834 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 20:29:12 +00:00
Andrew Nacin
ab77984329 Check if background core updates are supported on about.php.
see #25603, #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25833 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 20:28:38 +00:00
Andrew Nacin
f555490bee Update the text for the about page, so translators can get started. Design is in flux.
props nacin, markjaquith, jorbin, jenmylo.
see #25603.


git-svn-id: https://develop.svn.wordpress.org/trunk@25832 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 20:16:36 +00:00
Dion Hulse
3ce626a96b 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


git-svn-id: https://develop.svn.wordpress.org/trunk@25831 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 18:39:04 +00:00
Drew Jaynes
8166a14066 Inline documentation for hooks in wp-admin/options-general.php.
Props siobhyb for the initial patch.
Fixes #25454.


git-svn-id: https://develop.svn.wordpress.org/trunk@25830 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 06:17:20 +00:00
Drew Jaynes
eb3d658b7e Inline documentation for hooks in wp-admin/options-discussion.php.
Props siobhyb, ericlewis.
Fixes #25453.


git-svn-id: https://develop.svn.wordpress.org/trunk@25829 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 05:59:54 +00:00
Dion Hulse
d2d9b963a2 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


git-svn-id: https://develop.svn.wordpress.org/trunk@25828 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 05:23:35 +00:00
Andrew Nacin
3c067c1ec2 Avoid a notice in is_main_network() when called in single site. see #25030.
git-svn-id: https://develop.svn.wordpress.org/trunk@25827 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 05:16:41 +00:00
Drew Jaynes
5de9864891 Inline documentation for hooks in wp-admin/customize.php.
Props andg, rzen.
Fixes #25444.


git-svn-id: https://develop.svn.wordpress.org/trunk@25826 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 04:52:38 +00:00
Andrew Nacin
4644bb87f6 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25825 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 04:01:06 +00:00
Lance Willett
21da24227f Bundled Themes: pinking shears, fix a trailing period.
git-svn-id: https://develop.svn.wordpress.org/trunk@25824 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 03:29:11 +00:00
Andrew Nacin
c39143fd2e 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25823 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 00:54:15 +00:00
Dion Hulse
d0bd68cf5f Remove a duplicate semicolon that snuck in. Props JustinSainton. See #18200
git-svn-id: https://develop.svn.wordpress.org/trunk@25822 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-17 00:11:25 +00:00
Drew Jaynes
0edc7a4087 Inline documentation for hooks in wp-admin/custom-header.php.
Props gizburdt for the initial patch.
Fixes #25443.


git-svn-id: https://develop.svn.wordpress.org/trunk@25821 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 23:25:30 +00:00
Andrew Nacin
c471399eee "Future security updates will be applied automatically." see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25820 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 23:05:23 +00:00
Drew Jaynes
ff4c82bd7b Inline documentation for hooks in wp-admin/edit-form-advanced.php.
Props ericlewis.
Fixes #25434.


git-svn-id: https://develop.svn.wordpress.org/trunk@25819 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 22:58:21 +00:00
Dion Hulse
d5aba84213 Allow the WordPress.org Language update API to disallow automated background updates for a specific language pack. See #18200
git-svn-id: https://develop.svn.wordpress.org/trunk@25818 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 22:26:47 +00:00
Dion Hulse
853c9a50bd 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
git-svn-id: https://develop.svn.wordpress.org/trunk@25817 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 19:47:21 +00:00
Andrew Nacin
4bcad55280 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25816 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 19:40:02 +00:00
Andrew Nacin
977ca48a58 Merge the should_auto_update() and can_auto_update() methods. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25815 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 19:34:05 +00:00
Lance Willett
f8bd337fdb Twenty Fourteen: cleanup, props iamtakashi. Fixes #25613.
* With the ephemera widget in place, `content-recent-formatted-post.php` is unused, see #25028.
* We're no longe filtering formatted posts from the main query, see #25330.
 * Fix a typo.

git-svn-id: https://develop.svn.wordpress.org/trunk@25814 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 18:28:11 +00:00
Lance Willett
324ac5177f Twenty Fourteen: implement tag auto-complete for featured content settings, and uppercase __CLASS__ for consistency. Props kovshenin, see #25549.
git-svn-id: https://develop.svn.wordpress.org/trunk@25813 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 18:26:04 +00:00
Dion Hulse
aa5c907e40 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
git-svn-id: https://develop.svn.wordpress.org/trunk@25812 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 17:06:58 +00:00
Dion Hulse
549029393f Avoid a few PHP Warnings when files don't exist and use a better method to locate the local filepath.
See #18201


git-svn-id: https://develop.svn.wordpress.org/trunk@25811 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 15:19:59 +00:00
Andrew Nacin
e192eb396e Include translations in the update bubbles (as +1 if there are any). see #18200.
git-svn-id: https://develop.svn.wordpress.org/trunk@25810 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 14:33:21 +00:00
Andrew Nacin
d1e1139956 Avoid printing a possible HTML element. fixes #24813.
git-svn-id: https://develop.svn.wordpress.org/trunk@25809 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 04:45:08 +00:00
Lance Willett
0fe9b7468d Twenty Fourteen: first pass at implementing Featured Content settings, props obenland. See #25549.
git-svn-id: https://develop.svn.wordpress.org/trunk@25808 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 04:21:10 +00:00
Dion Hulse
96aa66a924 Remove the no longer used Headerless_Upgrader_Skin class, it's been replaced by Language_Pack_Upgrader_Skin.
See #18200, [25806]


git-svn-id: https://develop.svn.wordpress.org/trunk@25807 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 04:18:12 +00:00
Dion Hulse
ddaaa6d88a 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



git-svn-id: https://develop.svn.wordpress.org/trunk@25806 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 04:14:29 +00:00
Andrew Nacin
4f7112000f 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@25805 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 04:01:12 +00:00
Lance Willett
b89ea9ea66 Twenty Fourteen: remove excerpts from featured posts, and display full titles instead. Props iamtakashi, closes #25581.
git-svn-id: https://develop.svn.wordpress.org/trunk@25804 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-16 03:46:29 +00:00
Lance Willett
a88661e498 Twenty Fourteen: link hover improvements, props sabreuse. See #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25803 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 23:36:38 +00:00
Lance Willett
2c88403c32 Twenty Fourteen: better logic for featured image HTML output, and add fallback message for focusable anchor elements, for accessibility. Fixes #25325.
git-svn-id: https://develop.svn.wordpress.org/trunk@25802 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 23:23:08 +00:00
Andrew Nacin
867f084ca0 Significantly simplify get_core_checksums(), as the caching and chunking was causing too much grief.
Make sure we only do our pre-flight is_writable check when the file exists.

see #18201. see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25801 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 23:02:28 +00:00
Andrew Nacin
14b83f44f1 Use correct variable. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25800 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 22:06:08 +00:00
Andrew Nacin
3b724d5082 Remove accidental debug cruft in [25780]. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25799 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 21:24:01 +00:00
Andrew Nacin
1e8729b5c1 Avoid our pre-flight writable checks if get_core_checksums() doesn't exist yet.
Thus, it will not work for 3.6 => 3.7, only 3.7+.

see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25798 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 20:34:02 +00:00
Andrew Nacin
0a284a4d5c Only add error data to the files_not_writable WP_Error if the install already has [25775] and [25796] applied.
see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25797 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 20:00:01 +00:00
Andrew Nacin
55d176020b In show_message(), only print error data if it is a string.
see #25576, [25775].


git-svn-id: https://develop.svn.wordpress.org/trunk@25796 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 19:50:48 +00:00
Andrew Nacin
0d72238343 3.7-beta2-25795
git-svn-id: https://develop.svn.wordpress.org/trunk@25795 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 19:19:14 +00:00
Andrew Nacin
204ca72a66 Core Updates: Verify that all files we're about to copy are actually writable, when using the direct transport.
Once we begin to copy core files, all bets are off. This allows us to fail early when we'll otherwise need to stop midway through due to permissions issues, which is a particularly bad problem when only some files have permissions issues.

see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25794 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 19:17:56 +00:00
Andrew Nacin
c72ba036cf Use FS_CHMOD_FILE rather than an explicit 0644 in copy_dir() and _copy_dir().
This occurs when we can't copy a file. We chmod it and try again.

see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25793 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 19:13:33 +00:00
Lance Willett
77f48b5d8b Twenty Fourteen: minor fixes to docs, props celloexpressions. See #25257
git-svn-id: https://develop.svn.wordpress.org/trunk@25792 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 18:00:28 +00:00
Lance Willett
bc64bbb1ef Twenty Thirteen: fix description layout on attachment outputs, props obenland. Fixes #25578.
git-svn-id: https://develop.svn.wordpress.org/trunk@25791 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 17:58:12 +00:00
Lance Willett
0d51ae78cc Twenty Fourteen: remove style tags from accent color output, following r25786. Fixes #25599, props celloexpressions.
git-svn-id: https://develop.svn.wordpress.org/trunk@25790 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 17:56:00 +00:00
Lance Willett
58ad40a695 Twenty Thirteen: use correct font name in comment docs, props tenpura. Fixes #25593.
git-svn-id: https://develop.svn.wordpress.org/trunk@25789 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 16:46:44 +00:00
Lance Willett
6e1c7ec0bc Twenty Fourteen: first pass at CSS revamp, props iamtakashi. See #25592.
git-svn-id: https://develop.svn.wordpress.org/trunk@25788 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 16:45:42 +00:00
Dion Hulse
fa79184a7d Fix a misspelling of the filter we're checking for, s/fs_method/filesystem_method/.
My bad. See #22704, [25781].


git-svn-id: https://develop.svn.wordpress.org/trunk@25787 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 14:54:29 +00:00
Andrew Nacin
5e119ca3b4 Revert [25202] and enforce that wp_add_inline_style() does not want <style> tags.
Prior to 3.7, these tags were not printed (and thus needed to be provided), but only in the admin and when concatenation was enabled. They should never be required. Strip them when we find them and issue a notice for incorrect usage.

props atimmer, georgestephanis.
fixes #24813.


git-svn-id: https://develop.svn.wordpress.org/trunk@25786 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 14:34:33 +00:00
Andrew Nacin
772316ecc7 Hide language-specific warnings/labels on update-core.php when we are dealing with a point release partial build.
see #22704, #18200.


git-svn-id: https://develop.svn.wordpress.org/trunk@25784 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 05:07:55 +00:00
Andrew Nacin
2eebc47254 Hide auto updates from update-core.php directly in get_core_updates(). see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25783 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 05:06:35 +00:00
Andrew Nacin
85d32ce873 Automatic updates: An error code containing 'do_rollback' can be used to trigger a rollback.
This could enable the triggering of a rollback in update_core() in wp-admin/includes/update-core.php.

see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25782 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-15 02:58:07 +00:00
Andrew Nacin
1918e828da Automatic updates: Include error data in the follow-up API request.
props dd32.
see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25781 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 23:32:47 +00:00
Andrew Nacin
3eac3d0380 Parse absolute paths out of error data. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25780 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 22:24:28 +00:00
Dion Hulse
b492ae85f8 Remove PHP4 compat code from the ZipArchive unzip handler, and pass the failure reason into the WP_Error return.
See #22704


git-svn-id: https://develop.svn.wordpress.org/trunk@25779 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 21:54:33 +00:00
Andrew Nacin
67c80dae13 Account for the possible failure of disk_free_space() in update_core().
see #22704, #25576.


git-svn-id: https://develop.svn.wordpress.org/trunk@25778 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 21:14:39 +00:00
Andrew Nacin
d6a1b681d3 Auto updates: Only attempt a roll back when we've hit a critical error code.
Specifically, this means when we've failed in copying files.

see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25777 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 21:02:46 +00:00
Andrew Nacin
b8efab15d8 Account for possible failures by disk_free_space(), as well as the potential need to copy the unzipped files.
see #25576.


git-svn-id: https://develop.svn.wordpress.org/trunk@25776 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 20:57:28 +00:00
Andrew Nacin
47e85a9b54 In the upgrader, only print additional error data if it is a string.
As in [25576], we sometimes want to return additional data that is not necessarily meant for UI consumption.

see #25576.


git-svn-id: https://develop.svn.wordpress.org/trunk@25775 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 20:19:52 +00:00
Andrew Nacin
5db3863d12 In unzip_file(), confirm we have enough available disk space before extracting.
"enough" is calculated by adding up the uncompressed size of the files in the archive, then adding a 20% buffer.

props dd32.
fixes #25576.


git-svn-id: https://develop.svn.wordpress.org/trunk@25774 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 20:14:13 +00:00
Andrew Nacin
ddf6da1d8c 3.7-beta2-25773
git-svn-id: https://develop.svn.wordpress.org/trunk@25773 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 19:39:06 +00:00
Andrew Nacin
bd26f54af2 More specific error codes in the core upgrader when copying language, plugin, and theme files. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25772 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 19:37:53 +00:00
Dominik Schilling (ocean90)
dde2cb32fa Fix typo in wp-admin.css. props wycks. fixes #25589.
git-svn-id: https://develop.svn.wordpress.org/trunk@25771 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-14 16:13:08 +00:00
Andrew Nacin
7bf44580a9 Add explicit link to the installation being updated in debugging emails. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25770 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-12 20:17:20 +00:00
Lance Willett
476daf2aef Twenty Fourteen: first pass for updating code comments to reflect WP inline docs standards, see #25257.
git-svn-id: https://develop.svn.wordpress.org/trunk@25769 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 22:01:14 +00:00
Lance Willett
0c3ff8a555 Twenty Fourteen: remove two unused files, should have been deleted with r25088, see #24877.
git-svn-id: https://develop.svn.wordpress.org/trunk@25768 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 21:00:50 +00:00
Andrew Ozz
85c62ad3be Update the basic browser detection to detect IE11. Fixes #25562.
git-svn-id: https://develop.svn.wordpress.org/trunk@25767 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 17:25:11 +00:00
Lance Willett
31e9963904 Twenty Fourteen: remove unneeded sidebar file. Props iamtakashi, see #25565.
git-svn-id: https://develop.svn.wordpress.org/trunk@25766 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 17:24:22 +00:00
Lance Willett
481c744d42 Twenty Fourteen: remove header text customization options, fixes #25540. Props celloexpressions, obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@25765 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 17:13:27 +00:00
Andrew Nacin
9eff9eaebe Silence possible warnings from is_dir(). fixes #25572.
git-svn-id: https://develop.svn.wordpress.org/trunk@25764 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 17:10:18 +00:00
Andrew Nacin
2e605e76c6 Refine error codes throughout the upgrader so we can better detect at what stage updates fail.
see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25763 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 16:05:13 +00:00
Lance Willett
4f55cd150c Twenty Fourteen: merge Front Page Sidebar and Content Sidebar. Props iamtakashi, see #25565; closes #25565.
git-svn-id: https://develop.svn.wordpress.org/trunk@25762 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-11 03:16:59 +00:00
Andrew Ozz
ee5d2021e0 Upgrade TinyMCE to 3.5.9. Fix the css for the original 'fullscreen' plugin (not enabled by default).
Fixes #25561, fixes #25281.


git-svn-id: https://develop.svn.wordpress.org/trunk@25761 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 21:49:23 +00:00
Andrew Nacin
a837e4b528 3.7-beta2-25760
git-svn-id: https://develop.svn.wordpress.org/trunk@25760 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 21:33:47 +00:00
Andrew Nacin
a281e59c91 3.7-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@25759 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 21:01:45 +00:00
Lance Willett
1c66b8130d Twenty Fourteen: improve display for elements in the featured content area by preventing titles from breaking and letting content overflow with an ellipsis. Props obenland, fixes #25053.
git-svn-id: https://develop.svn.wordpress.org/trunk@25758 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 15:35:27 +00:00
Lance Willett
6a433a7284 Twenty Fourteen: improved JS support for keyboard navigation for main navigation menu. Props obenland, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25757 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 15:32:59 +00:00
Lance Willett
822d558774 Twenty Fourteen: a11y and RTL fixes for tabbed navigation and Skip to Content link. Props obenland, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25756 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 15:30:25 +00:00
Andrew Nacin
627b25bf50 Auto updates: For follow-up API call when an update fails, send back the version attempted. see #22704.
git-svn-id: https://develop.svn.wordpress.org/trunk@25755 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 14:45:55 +00:00
Lance Willett
983f56193e Twenty Fourteen: improve primary navigation styles for a clearer distinction between hover and the current page highlight, and change color to harmonize with the search toggle. Props iamtakashi, fixes #25554.
git-svn-id: https://develop.svn.wordpress.org/trunk@25754 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 03:36:15 +00:00
Lance Willett
b36e73407e Twenty Fourteen: remove CSS transitions, props iamtakashi. Fixes #25553.
git-svn-id: https://develop.svn.wordpress.org/trunk@25753 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 03:30:11 +00:00
Dion Hulse
f0571c02b7 After a upgrade fails, and we successfully rollback to a previous version, Don't send the version we rolled back to to the API, just that it was successful. See [25750]. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25752 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 01:56:44 +00:00
Dion Hulse
05cceca0ac Correct a variable typo in [25750]. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25751 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 01:37:30 +00:00
Dion Hulse
e03279e8b0 In the event that an Automatic Upgrade fails, send a failure status on the next API request to indicate that it failed, and if the rollback was successful.
See #22704


git-svn-id: https://develop.svn.wordpress.org/trunk@25750 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-10 01:31:22 +00:00
Lance Willett
6c808113fe Twenty Fourteen: merge recent stylesheet changes to RTL, and file miscellaneous CSS cleanup.
RTL still needs more responsive fixes, see #25332 -- and a11y menu fixes, see #25054. 

git-svn-id: https://develop.svn.wordpress.org/trunk@25749 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 21:41:54 +00:00
Andrew Ozz
c3a034a6c4 TinyMCE: add support for IE11.
- Add the latest changes from the 3.x branch upstream.
- Reduce the number of calls to tinyMCEPopup.restoreSelection() in our custom plugins.
- Remove the deprecated execCommand("mceBeginUndoLevel");.
See #25281.

git-svn-id: https://develop.svn.wordpress.org/trunk@25748 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 21:04:05 +00:00
Andrew Nacin
74f02a6751 Hook documentation for wp-admin/admin.php.
props DrewAPicture for initial patch.
fixes #25442.


git-svn-id: https://develop.svn.wordpress.org/trunk@25747 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 21:00:41 +00:00
Andrew Nacin
28efc380ff Default themes: Don't use /** docblocks for simple multiline comments.
props DrewAPicture, ericlewis.
fixes #25256.


git-svn-id: https://develop.svn.wordpress.org/trunk@25746 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 20:38:26 +00:00
Andrew Nacin
3a46ff98f5 Only add one body class when multiple post types manage to be present for a post type archive due to pre_get_posts manipulation.
fixes #25341.


git-svn-id: https://develop.svn.wordpress.org/trunk@25745 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 19:13:28 +00:00
Andrew Nacin
12cb3a353e Make sure when resizing an image according to ratio we do not end up with a zero-pixel width or height.
props plocha.
fixes #25038.


git-svn-id: https://develop.svn.wordpress.org/trunk@25744 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 19:06:56 +00:00
Lance Willett
d72a095508 Twenty Fourteen: remove title attributes for better accessibility. Props sabreuse for original patch, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25743 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 19:06:06 +00:00
Lance Willett
bf799fd276 Twenty Fourteen: a11y fix for keyboard navigation and Skip Content link, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25742 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 18:51:46 +00:00
Helen Hou-Sandi
99df61b666 Show a label for the "Home" page nav menu item checkbox. props SergeyBiryukov. props ericlewis for the initial patch. fixes #25410.
git-svn-id: https://develop.svn.wordpress.org/trunk@25741 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 18:46:34 +00:00
Lance Willett
56bef8b6a6 Twenty Fourteen: minor color contrast and a11y fixes, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25740 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 18:38:58 +00:00
Dion Hulse
28736216f3 Upgrader: Create Directories with a minimum of 0755 and files with a minimum of 0644 when upgrading, which matches pre-3.7 behaviour. Fixes #20069
git-svn-id: https://develop.svn.wordpress.org/trunk@25739 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 16:46:31 +00:00
Lance Willett
04357e30c8 Twenty Fourteen: remove unnecessary no-sidebar class value in front page template. Props iamtakashi, fixes #25543.
git-svn-id: https://develop.svn.wordpress.org/trunk@25738 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 16:26:50 +00:00
Lance Willett
c4e2af76e4 Twenty Fourteen: remove unneeded .single-attachment body class selectors, props iamtakashi. Fixes #25541, see #25506.
git-svn-id: https://develop.svn.wordpress.org/trunk@25737 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-09 16:25:33 +00:00
Lance Willett
66c2dfbae9 Twenty Fourteen: fill browser height to 100% for views with short content. Accounts for footer widgets, in which case the height isn't set to 100% so that the widgets remain visible. Props wycks and taupecat, fixes #25389.
git-svn-id: https://develop.svn.wordpress.org/trunk@25736 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 21:36:46 +00:00
Lance Willett
7771626637 Twenty Fourteen: allow pages to have featured images, props iamtakashi. Fixes #25325.
git-svn-id: https://develop.svn.wordpress.org/trunk@25735 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 21:21:19 +00:00
Drew Jaynes
e46830eb0b Inline documentation for hooks in wp-admin/widgets.php.
Props r3df, kpdesign.
Fixes #25501.


git-svn-id: https://develop.svn.wordpress.org/trunk@25734 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 20:26:25 +00:00
Drew Jaynes
27ef389c26 Inline documentation for hooks in wp-includes/class-feed.php.
Props swissspidy.
Fixes #25510.


git-svn-id: https://develop.svn.wordpress.org/trunk@25733 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 20:06:29 +00:00
Drew Jaynes
0db187f915 Inline documentation for hooks in wp-includes/ms-load.php.
Props nukaga, johnbillion.
Fixes #25509.


git-svn-id: https://develop.svn.wordpress.org/trunk@25732 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 20:00:17 +00:00
Lance Willett
ee1a3278ea Twenty Fourteen: provide keyboard support for the primary navigation, props joedolson. See #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25731 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 17:55:46 +00:00
Lance Willett
d3ceebd2cd Twenty Fourteen: accent color fixes, props celloexpressions. See #25220.
* Try a darker text color for header nave submenu items on hover (matching site description color). 
 * Fix a bad hover color override. 


git-svn-id: https://develop.svn.wordpress.org/trunk@25730 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 17:31:00 +00:00
Lance Willett
5b5e048ffa Twenty Fourteen: reduce post widget margin, props kraftbj, closes #25426.
git-svn-id: https://develop.svn.wordpress.org/trunk@25729 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 17:28:14 +00:00
Drew Jaynes
e7ee404ec9 Improve inline documentation for the multi_resize() method in WP_Image_Editor, WP_Image_Editor_GD, and WP_Image_Editor_Imagick.
Props paolal for the initial patch.
Fixes #25530.


git-svn-id: https://develop.svn.wordpress.org/trunk@25728 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 17:19:00 +00:00
Scott Taylor
4aa0066736 Use parens to ensure that RegEx OR matches the front when determining that mime-type matches audio|video in attachment_submitbox_metadata().
Props kovshenin.
See #23926.



git-svn-id: https://develop.svn.wordpress.org/trunk@25727 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 15:31:32 +00:00
Drew Jaynes
d02ef44f33 Inline documentation for hooks in wp-includes/class-wp-embed.php.
Props swissspidy, kpdesign.
Fixes #25515.


git-svn-id: https://develop.svn.wordpress.org/trunk@25726 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 04:42:20 +00:00
Drew Jaynes
f13f18de24 Inline documentation for hooks in wp-admin/maint/repair.php.
Props ben.moody, kpdesign.
Fixes #25500.


git-svn-id: https://develop.svn.wordpress.org/trunk@25725 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 00:29:37 +00:00
Drew Jaynes
6d1558e461 Inline documentation for hooks in wp-includes/category.php.
Props ben.moody
Fixes #25503.


git-svn-id: https://develop.svn.wordpress.org/trunk@25724 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-08 00:21:47 +00:00
Drew Jaynes
c58e5cac6a Inline documentation for hooks in wp-includes/class-oembed.php.
Props swissspidy, kpdesign.
Fixes #25527.


git-svn-id: https://develop.svn.wordpress.org/trunk@25723 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 23:56:52 +00:00
Drew Jaynes
887af83f53 Inline documentation for hooks in wp-admin/network.php.
Props johnafish.
Fixes #25502.


git-svn-id: https://develop.svn.wordpress.org/trunk@25722 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 23:42:43 +00:00
Drew Jaynes
3170612070 Inline documentation for hooks in wp-settings.php.
Props miyauchi.
Fixes #25469


git-svn-id: https://develop.svn.wordpress.org/trunk@25721 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 19:33:16 +00:00
Andrew Nacin
23013c544a Prevent the removal of a manual 'orderby' attribute in the gallery shortcode.
props nofearinc.
fixes #24868.


git-svn-id: https://develop.svn.wordpress.org/trunk@25720 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 19:01:48 +00:00
Andrew Nacin
04f053ce0c Move the revisions upgrade handler to POST, to avoid esoteric metadata stomping.
props SergeyBiryukov.
see #25023.
for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25719 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 18:34:35 +00:00
Drew Jaynes
b654f9c0e3 Add missing variable for inline hook documentation changes in wp-includes/vars.php.
See #25466.


git-svn-id: https://develop.svn.wordpress.org/trunk@25718 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 17:55:45 +00:00
Drew Jaynes
4a86f70280 Inline documentation for wp-admin/options-reading.php.
Props siobhyb for the initial patch.
Fixes #25430.


git-svn-id: https://develop.svn.wordpress.org/trunk@25717 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 17:18:00 +00:00
Andrew Nacin
7c03553de8 Twenty Thirteen: Remove unneeded .single-attachment selector.
props obenland.
fixes #25506.


git-svn-id: https://develop.svn.wordpress.org/trunk@25716 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 16:42:12 +00:00
Andrew Nacin
eabbcec46f Twenty Twelve: Use the correct body class for attachments in the IE stylesheet.
props Marco_Teethgrinder.
see #25506. see [25707].


git-svn-id: https://develop.svn.wordpress.org/trunk@25715 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 16:41:18 +00:00
Drew Jaynes
46a60cc6d5 Fix phpdoc indentation for hooks in wp-includes/class-wp-image-editor.php.
Props gayadesign.
Fixes #25504.


git-svn-id: https://develop.svn.wordpress.org/trunk@25714 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 16:27:34 +00:00
Sergey Biryukov
a541f2e31e Correct phpdoc for wp_check_filetype_and_ext(). props dimadin. fixes #25513.
git-svn-id: https://develop.svn.wordpress.org/trunk@25713 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 15:33:19 +00:00
Drew Jaynes
1ab8ced9d7 Inline documentation for hooks in wp-includes/vars.php.
Props tmtoy, nacin.
Fixes #25466.


git-svn-id: https://develop.svn.wordpress.org/trunk@25712 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 15:29:14 +00:00
Sergey Biryukov
55ee5c4894 Escape title in HTML5 search form. props obenland, joostdevalk, scottsweb. fixes #25322.
git-svn-id: https://develop.svn.wordpress.org/trunk@25710 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 14:13:14 +00:00
Andrew Nacin
fc1438c8bc Move the trim() from wp_set_password() to inside wp_hash_password().
props rpattillo, joehoyle.
fixes #24973. see #23494.


git-svn-id: https://develop.svn.wordpress.org/trunk@25709 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 13:53:09 +00:00
Andrew Nacin
f4227afa2b Optimize the accessibility JS on the Menus screen to avoid browser crashes with very large menus.
props atimmer.
fixes #25112.


git-svn-id: https://develop.svn.wordpress.org/trunk@25708 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 13:37:00 +00:00
Andrew Nacin
2476d62991 Twenty Twelve: Use the correct body class for attachments.
.single-attachment is only used when the attachment's parent is not a page.

props Marco_Teethgrinder.
fixes #25506.


git-svn-id: https://develop.svn.wordpress.org/trunk@25707 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 13:18:31 +00:00
Drew Jaynes
2a2587c6dc Inline documentation for hooks in wp-admin/includes/bookmark.php.
Props johnafish, kpdesign.
Fixes #25494.


git-svn-id: https://develop.svn.wordpress.org/trunk@25706 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-07 02:18:20 +00:00
Drew Jaynes
3da73dfa3f Inline documentation for hooks in wp-includes/class-wp-image-editor.php.
Props tomauger.
Fixes #25504


git-svn-id: https://develop.svn.wordpress.org/trunk@25705 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 22:18:29 +00:00
Drew Jaynes
2e27610793 Inline documentation for a hooks in wp-includes/template.php.
Props jonlynch for the initial patch.
Fixes #25487.

git-svn-id: https://develop.svn.wordpress.org/trunk@25703 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 19:00:05 +00:00
Drew Jaynes
5c5928cac9 Inline documentation for hooks in wp-includes/template-loader.php.
Props jonlynch.
Fixes #25488.


git-svn-id: https://develop.svn.wordpress.org/trunk@25702 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 18:40:29 +00:00
Drew Jaynes
b60980d0af Inline documentation for hooks in wp-login.php.
Props ShinichiN, kpdesign.
Fixes #25393.


git-svn-id: https://develop.svn.wordpress.org/trunk@25701 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 16:23:39 +00:00
Andrew Nacin
40ea01d759 Be as sure as possible that WordPress is not under version control when deciding if we should do automatic updates.
see #22704.


git-svn-id: https://develop.svn.wordpress.org/trunk@25700 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 15:45:09 +00:00
Drew Jaynes
04fd4d2bb8 Inline documentation for hooks in wp-includes/update.php.
Props ShinichiN.
Fixes #25467.


git-svn-id: https://develop.svn.wordpress.org/trunk@25699 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 15:30:51 +00:00
Andrew Nacin
0286d7030d Don't modify post_author during a quick edit when the post type doesn't support authors.
props ocean90.
fixes #16645.


git-svn-id: https://develop.svn.wordpress.org/trunk@25698 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 13:14:06 +00:00
Andrew Nacin
9f23f85ae2 Run _fix_attachment_links() when post_status is future or private in addition to publish.
Fixes regression caused by [20308].

props jond3r.
fixes #25268.


git-svn-id: https://develop.svn.wordpress.org/trunk@25697 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 12:55:38 +00:00
Andrew Nacin
48f68c8c6b Hash password reset keys in the database.
All existing, unused password reset keys are now considered "expired" and the user will be told they should try again.

Introduces a password_reset_key_expired filter to allow plugins to introduce a grace period.

fixes #24783.


git-svn-id: https://develop.svn.wordpress.org/trunk@25696 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 11:28:42 +00:00
Andrew Nacin
352ff49768 Reverse the order of roles in wp_dropdown_roles(). Reset to 'subscriber' when the default role is removed and when a save is invalid.
props garyc40, wonderboymusic.
fixes #14578.


git-svn-id: https://develop.svn.wordpress.org/trunk@25695 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 10:55:42 +00:00
Andrew Nacin
c0fb231f92 Hide the "If you take over" string from the post locked dialog when the override_post_lock filter is used to prevent an override.
props azaozz.
fixes #24930.


git-svn-id: https://develop.svn.wordpress.org/trunk@25694 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-06 10:45:25 +00:00
Andrew Nacin
29a12d6ee5 Append -src to the $wp_version in the develop repo (only) to allow for us to differentiate. see #25161.
git-svn-id: https://develop.svn.wordpress.org/trunk@25692 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-05 14:24:21 +00:00
Andrew Nacin
1b37564f35 Send current SSL status to the plugin information API endpoint so we can render screenshots over SSL if appropriate. fixes #11009.
git-svn-id: https://develop.svn.wordpress.org/trunk@25691 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-05 10:58:20 +00:00
Andrew Nacin
cee5480513 Avoid 404 for wp-activate.php.
props nullvariable.
fixes #24960.


git-svn-id: https://develop.svn.wordpress.org/trunk@25690 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-04 14:11:49 +00:00
Dominik Schilling (ocean90)
3f422038dd Move get_current_user_id() call out of if-block, see [25669].
props layotte.
fixes #25372.

git-svn-id: https://develop.svn.wordpress.org/trunk@25689 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 13:35:12 +00:00
Dominik Schilling (ocean90)
d529239d24 Post UI: Increase the trigger width for switching from two columns to one.
props melchoyce, vinod dalvi.
fixes #23904.

git-svn-id: https://develop.svn.wordpress.org/trunk@25688 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 09:36:36 +00:00
Dominik Schilling (ocean90)
4f7760db6f Revert [25622]. fixes #25445. see #25122.
git-svn-id: https://develop.svn.wordpress.org/trunk@25687 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 09:11:45 +00:00
Andrew Nacin
20686308d3 Reset "Page on Front" when such a page is trashed.
props danielbachhuber.
fixes #24171.


git-svn-id: https://develop.svn.wordpress.org/trunk@25686 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 03:50:26 +00:00
Andrew Nacin
83a69a16d2 Support G shorthand for WP_MEMORY_LIMIT. see #23251.
git-svn-id: https://develop.svn.wordpress.org/trunk@25685 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 03:46:01 +00:00
Andrew Nacin
d4f0c8604a Don't override a PHP memory_limit specified using G shorthand.
props peterjaap.
fixes #23251.


git-svn-id: https://develop.svn.wordpress.org/trunk@25684 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 03:27:04 +00:00
Andrew Nacin
2dae159c6e Ensure wp::send_headers() detects a comments feed when permalinks are disabled and thus the withcomments QV is omitted. This fixes Last-Modified.
props sweetie089.
fixes #24622.


git-svn-id: https://develop.svn.wordpress.org/trunk@25683 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 03:14:39 +00:00
Andrew Nacin
df0aceb365 Backport a fix for qmail from PHPMailer upstream.
props bpetty.
fixes #25014.


git-svn-id: https://develop.svn.wordpress.org/trunk@25682 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 03:00:01 +00:00
Andrew Nacin
2068a3e6da When determining a frontend, local URL in the theme customizer, match the home URL without a trailing slash.
props SergeyBiryukov.
fixes #25315.


git-svn-id: https://develop.svn.wordpress.org/trunk@25681 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 01:49:59 +00:00
Andrew Nacin
a59daf91cf Ensure we globally replace [ and ] in customizer control IDs, to match the PHP.
props westonruter.
fixes #25238.


git-svn-id: https://develop.svn.wordpress.org/trunk@25680 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 01:45:39 +00:00
Andrew Nacin
8cd52fe580 Don't let the query string pile up on successive themes.php searches.
props SergeyBiryukov.
fixes #25270.


git-svn-id: https://develop.svn.wordpress.org/trunk@25679 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 01:25:24 +00:00
Andrew Nacin
a2c2641419 Avoid counting auto-drafts in sticky.
props nofearinc.
fixes #25127.


git-svn-id: https://develop.svn.wordpress.org/trunk@25678 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 01:15:30 +00:00
Andrew Nacin
7a9a26fb84 List tables: When executing a search, reset the Bulk Actions dropdown to avoid the search from failing.
props c3mdigital, vinod-dalvi.
fixes #25034.


git-svn-id: https://develop.svn.wordpress.org/trunk@25677 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 01:08:13 +00:00
Andrew Nacin
635a1249f5 Post lists table: When counting a user's posts, use get_post_stati() instead of hardcoded internal statuses.
props creativeinfusion.
fixes #24818.


git-svn-id: https://develop.svn.wordpress.org/trunk@25676 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-03 00:59:12 +00:00
Andrew Nacin
f6138dc287 Remove redundant title attributes.
props sabreuse.
see #24766.


git-svn-id: https://develop.svn.wordpress.org/trunk@25675 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 22:50:50 +00:00
Andrew Nacin
df647346b1 Don't use a double negative.
props TobiasBg.
fixes #18201.


git-svn-id: https://develop.svn.wordpress.org/trunk@25674 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 21:49:34 +00:00
Scott Taylor
c03af6bbd7 WP_User::get_role_caps() now returns the caps it was already setting. The method was previously just setting $allprops and requiring that property to be read.
Props nofearinc.
Fixes #24962.




git-svn-id: https://develop.svn.wordpress.org/trunk@25673 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-02 21:35:20 +00:00