Commit Graph

20548 Commits

Author SHA1 Message Date
Andrew Nacin
32687208c3 Prime post term caches for nav menu items. Avoid doing so in frontend template functions as it remains unneeded there. see #22189.
git-svn-id: https://develop.svn.wordpress.org/trunk@22233 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-15 14:17:50 +00:00
Andrew Nacin
70c394fb79 Avoid queries in wp_unique_post_slug() for nav menu items. see #22189.
git-svn-id: https://develop.svn.wordpress.org/trunk@22232 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-15 14:13:57 +00:00
Mark Jaquith
b7b4a12cfd Defer the meta_id-fetching query until after comparison of the previous value, so that redundant calls to update_metadata() can bail without making that query. props nacin. fixes #22191
git-svn-id: https://develop.svn.wordpress.org/trunk@22231 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-15 05:51:38 +00:00
Andrew Nacin
c29cae6fd4 Remove whitespace from around the WP_Post/get_post SQL string.
git-svn-id: https://develop.svn.wordpress.org/trunk@22230 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-15 03:08:43 +00:00
Andrew Nacin
4d01cd49ed Duplicate comments should be allowed under a different comment parent. props andy. fixes #21609.
git-svn-id: https://develop.svn.wordpress.org/trunk@22229 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-14 17:06:37 +00:00
Andrew Nacin
bb5d96a722 jQuery Masonry for uploaded custom headers. props zamoose. fixes #20346.
git-svn-id: https://develop.svn.wordpress.org/trunk@22228 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-14 17:05:16 +00:00
Dion Hulse
0721d15f0c Replace the hard coded version and PHP/MySQL requirements in update-core.php by pulling in the new version.php file during installation. Fixes #22015 #11639. See #21789
git-svn-id: https://develop.svn.wordpress.org/trunk@22227 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-14 03:47:36 +00:00
Dion Hulse
832a3f51a3 When upgrading a site to/from a Beta, alpha, or non-stable release, overwrite any existing bundled themes & plugins with the version from the release zip. See #21789
git-svn-id: https://develop.svn.wordpress.org/trunk@22226 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-14 02:14:17 +00:00
Andrew Nacin
70f79ffef3 Fix typo and don't always return false from image_make_intermediate_size(). props gandham, see #22181.
git-svn-id: https://develop.svn.wordpress.org/trunk@22225 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-13 06:46:17 +00:00
Andrew Nacin
64849177a9 3.5-beta2.
git-svn-id: https://develop.svn.wordpress.org/trunk@22224 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 23:31:17 +00:00
bumpbot
d1b1bdfe8c Compress scripts/styles: 3.5-beta1-22223. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22223 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 22:58:48 +00:00
Andrew Nacin
217c37b516 Have wp_upload_dir() account for blog switching, ms-files rewriting, and the UPLOADS constant properly. This type of logic needs a lot of code comments.
Prevents wp_upload_dir() from obeying the UPLOADS constant when ms-files rewriting is enabled and a blog is switched.

Reverts [22106] thanks to [22108].

see #19235.



git-svn-id: https://develop.svn.wordpress.org/trunk@22222 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 22:05:02 +00:00
Daryl Koopersmith
bf02be2b60 Display gallery and attachment MCE views as inline blocks. Make gallery MCE view wrappers block level. see #21390, #21813, #21815.
git-svn-id: https://develop.svn.wordpress.org/trunk@22221 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:41:38 +00:00
Daryl Koopersmith
4966b15409 Properly align MCE attachment views.
* Adds a `$wrapper` property to MCE views to allow them to manipulate the wrapper on render. This should be used sparingly — only for layout changes that cannot be accomplished through altering the wrapper's children — and likely only for adding/removing classes.
* Uses `wp.html.string()` in `wp.mce.view.toView()`.

see #21390, #21812, #21813.


git-svn-id: https://develop.svn.wordpress.org/trunk@22220 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:36:21 +00:00
Daryl Koopersmith
18b3efaf52 MCE Views: Add alignment styles for generic views.
Adds `alignnone`, `aligncenter`, `alignleft`, and `alignright` by default.

see #21390, #21812, #21813.


git-svn-id: https://develop.svn.wordpress.org/trunk@22219 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:32:12 +00:00
potbot
192e8e8065 POT, generated from r22217
git-svn-id: https://develop.svn.wordpress.org/trunk@22218 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 17:19:11 +00:00
Lance Willett
a2445aef9b Twenty Eleven image optimization, compress PNG files a bit more.
git-svn-id: https://develop.svn.wordpress.org/trunk@22217 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:41:15 +00:00
Lance Willett
e092ce7546 Twenty Ten: better spacing for rows of in-content page links. Props iandstewart, fixes #16570.
git-svn-id: https://develop.svn.wordpress.org/trunk@22216 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:32:34 +00:00
Lance Willett
0026eb9c10 Twenty Ten image optimization, compress JPG and PNG files a bit more.
git-svn-id: https://develop.svn.wordpress.org/trunk@22215 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:27:21 +00:00
Lance Willett
df938da26c Twenty Ten and Eleven: remove invalid rel attribute generator from footer markup, see #22095.
git-svn-id: https://develop.svn.wordpress.org/trunk@22214 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:13:37 +00:00
Lance Willett
8c890aa154 Twenty Eleven: remove invalid pubdate value from time elements. See #22095.
git-svn-id: https://develop.svn.wordpress.org/trunk@22213 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:12:14 +00:00
Daryl Koopersmith
990d50661c Add a nonce to wp_ajax_save_attachment. see #21390, #21807.
git-svn-id: https://develop.svn.wordpress.org/trunk@22212 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 16:02:45 +00:00
Lance Willett
678b2e0695 Style <small> element in default themes a bit smaller than normal text, props obenland. Fixes #22109.
git-svn-id: https://develop.svn.wordpress.org/trunk@22211 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 15:24:23 +00:00
Daryl Koopersmith
60a44a0865 MCE Views: First pass at keystroke and insertion handling.
* When a MCE view is selected, normal keystrokes (those without command/control) are blocked.
* Backspace/delete will successfully remove the view.
* Arrow handling will be added at a later point.
* When a MCE view is selected and content is pasted or injected (e.g. when an attachment is added), the content is added to the first text node after the view. If the view is at the end of the document or the next element is another view, a text node is injected into the DOM immediately after the selected view.

see #21390, #21812, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22210 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 03:28:22 +00:00
potbot
1a57c4623c POT, generated from r22208
git-svn-id: https://develop.svn.wordpress.org/trunk@22209 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 00:19:09 +00:00
Daryl Koopersmith
4af634578a MCE Views: Add selection/deselection when a view is clicked.
These methods should be expanded to prevent content from being inserted into the view by blocking and rerouting keystrokes as appropriate as well as repositioning the caret before content is inserted.

see #21390, #21812, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22208 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 23:52:09 +00:00
Lance Willett
ab72140469 Twenty Twelve: remove invalid rel attribute generator from footer markup, see #22095.
git-svn-id: https://develop.svn.wordpress.org/trunk@22207 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 23:40:23 +00:00
Lance Willett
96c3ade4b5 Twenty Twelve: remove invalid pubdate value from time elements. See #22095.
git-svn-id: https://develop.svn.wordpress.org/trunk@22206 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 23:39:24 +00:00
potbot
5ed25cf4a8 POT, generated from r22204
git-svn-id: https://develop.svn.wordpress.org/trunk@22205 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 23:19:52 +00:00
bumpbot
936cf22c7a Compress scripts/styles: 3.5-beta1-22204.
git-svn-id: https://develop.svn.wordpress.org/trunk@22204 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 22:58:47 +00:00
Lance Willett
e775e06c24 Twenty Twelve: add missing reply link to post format templates, props obenland. Fixes #22169.
git-svn-id: https://develop.svn.wordpress.org/trunk@22203 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 22:26:06 +00:00
potbot
205501dac7 POT, generated from r22201
git-svn-id: https://develop.svn.wordpress.org/trunk@22202 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 22:19:14 +00:00
Lance Willett
093fd9bb1d Twenty Twelve: implement better support for IE7 and IE8 (don't use mobile menu). See #22044.
git-svn-id: https://develop.svn.wordpress.org/trunk@22201 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 22:07:06 +00:00
Daryl Koopersmith
c2f4afe37e Media Modal: Check for empty keys when saving attachment captions. see #21390, #21807.
git-svn-id: https://develop.svn.wordpress.org/trunk@22200 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 21:37:44 +00:00
Lance Willett
1a766217d9 Twenty Eleven: escape i18n attributes as late as possible, props mfields. See #21756.
git-svn-id: https://develop.svn.wordpress.org/trunk@22199 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 21:30:42 +00:00
potbot
d6ef68fdc6 POT, generated from r22196
git-svn-id: https://develop.svn.wordpress.org/trunk@22198 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 20:19:00 +00:00
Lance Willett
c77c6ae9cb Twenty Ten: escape i18n attributes as late as possible, fixes cases in loop.php -- props mfields. See #21756.
git-svn-id: https://develop.svn.wordpress.org/trunk@22197 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 20:12:40 +00:00
Lance Willett
9653d6f7ef Twenty Eleven: add rule to force override the fixed width for Twitter embeds. Props kovshenin, fixes #21680; see also r21637.
git-svn-id: https://develop.svn.wordpress.org/trunk@22196 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 20:10:47 +00:00
Lance Willett
23e63d1cbc Twenty Ten and Eleven: more elegant fix for long word overflow in sidebars. Also improves image resizing for images in widgets in Twenty Ten. Props obenland, fixes #21151; see #21503 also.
git-svn-id: https://develop.svn.wordpress.org/trunk@22195 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 20:02:33 +00:00
Lance Willett
b35e7c1b03 Twenty Ten: allow page ancestors to have a visual "on" state, props mfields. Fixes #21647.
git-svn-id: https://develop.svn.wordpress.org/trunk@22194 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 19:57:10 +00:00
Lance Willett
51a14e8247 Twenty Eleven: show categories and tags only when supported by post type, using is_object_in_taxonomy() instead of only checking for 'post' post types. Props obenland, fixes #20922.
git-svn-id: https://develop.svn.wordpress.org/trunk@22193 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 19:53:35 +00:00
Ryan Boren
167cc00a84 Check for WP_Error return from WP_Image_Editor::get_instance().
Props markoheijnen
see #6821


git-svn-id: https://develop.svn.wordpress.org/trunk@22192 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 18:59:41 +00:00
Lance Willett
b70d912fe8 Twenty Twelve: set width for search input in widget context, to avoid dropping the submit button to a new line. Occurs in cases of localized installs where the submit text is wider than English, and seen in various Windows browsers. Fixes #22054.
git-svn-id: https://develop.svn.wordpress.org/trunk@22191 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 18:20:53 +00:00
Andrew Nacin
da1fac02ad Trailing slash the URL for the 'Visit' link in network/sites.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@22190 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 17:48:42 +00:00
Andrew Nacin
000f9e6140 Use wp_update_post() rather than wp_insert_post() in wp_publish_post() to avoid stomping of values like categories. props ericmann, fixes #22167. see #21963.
git-svn-id: https://develop.svn.wordpress.org/trunk@22189 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 17:36:59 +00:00
Lance Willett
b7a3d32f3d Twenty Twelve: put back screen-reader-text selector, but just for site content (allows toolbar text to work correctly). See r22186 and #22025.
git-svn-id: https://develop.svn.wordpress.org/trunk@22188 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 17:36:46 +00:00
Lance Willett
f58fb6ec19 Twenty Twelve: fix duplicate print CSS rules, props obenland. Fixes #22108.
git-svn-id: https://develop.svn.wordpress.org/trunk@22187 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 17:28:16 +00:00
Lance Willett
80ffc60d40 Twenty Twelve: improve skip link visibility, mimicing the core toolbar skiplink. Closes #22025, see #22087.
git-svn-id: https://develop.svn.wordpress.org/trunk@22186 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 17:17:55 +00:00
Ryan Boren
bcbfb2c8e9 Sync actions between update_blog_details() and update_blog_status(). Add make_delete_blog and make_undelete_blog actions.
Props Kyrylo, wonderboymusic
fixes #20305


git-svn-id: https://develop.svn.wordpress.org/trunk@22185 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 12:37:46 +00:00
Daryl Koopersmith
a5fc058f89 Media Modal: Improve attachment remove button styles. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22184 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 04:11:47 +00:00