Mark Jaquith
8d0e99aaba
Implement the IIS logic test that #16639 should have gotten back in the day, before it was disabled altogether. IIS canonical redirects now only supported for pretty permalink–supporting IIS7 installs. props nacin. fixes #20484 . see #16639
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21215 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:59:35 +00:00
Mark Jaquith
7d1a3effe2
Increase the z-index of widgets so they don't appear behind menu portions while dragging. props jkudish. fixes #20300
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21214 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:24:57 +00:00
Andrew Nacin
d1270f0d77
Allow wp_update_post() to accept the same second argument as wp_insert_post(), allowing for WP_Error return values on failure. props scribu, mikeschinkel. fixes #15036 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21213 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:21:57 +00:00
Mark Jaquith
5d74a50af4
Switch "HTML" tab to "Text" in DFW mode. Update documentation and inline comments to refer to the "Text" tab or mode instead of "HTML". see #20993
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21212 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:28:13 +00:00
Mark Jaquith
40da33e326
Rename the "HTML" editor tab to "Text" (as it has never been a pure HTML editor, but a text editor that supports HTML and also does some HTML transformations automatically). fixes #20993
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21211 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:19:01 +00:00
bumpbot
34ec1a7c61
Compress scripts/styles: 3.5-alpha-21210.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21210 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:58:19 +00:00
Mark Jaquith
1f25a79a65
Uncheck the "select all" checkbox when one of the child checkboxes is manually unchecked. props SergeyBiryukov. fixes #20261
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21209 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:08:20 +00:00
Mark Jaquith
e7d8706111
Allow home page of multisite (subdir install) sites to resolve regardless of capitalization, as they already do for URLs other than the home page. props SergeyBiryukov. fixes #16200
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21208 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 13:50:24 +00:00
Mark Jaquith
b9ddde32f8
Reënable canonical redirects for IIS. Let's work out any remaining bugs in this cycle. fixes #20484 . reverts [17492]. see #16639
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21207 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 13:23:39 +00:00
bumpbot
9ec3e4e928
Compress scripts/styles: 3.5-alpha-21206.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21206 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-04 06:58:20 +00:00
Mark Jaquith
20813bcbe2
Change a jQuery selector to work around a change in jQuery 1.7.2 related to some class names containing colons. props SergeyBiryukov. fixes #21106 for trunk. see #21152
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21205 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-04 05:58:28 +00:00
Andrew Nacin
6ef3ff3062
Remove charset attribute from script elements. props neoxx, fixes #21146 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21204 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-03 13:27:14 +00:00
Andrew Nacin
260e9ec7ab
require_once dashboard.php in wp_ajax_dashboard_widgets() so it is testable. props kurtpayne. fixes #UT41.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21203 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 15:07:39 +00:00
Andrew Nacin
178c404146
Eliminate $user_pass_md5. fixes #21125 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21202 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 15:04:06 +00:00
Andrew Nacin
ccba2c1f57
Remove more code not specific to updating core from core_upgrade_preamble(). fixes #21124 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21201 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:58:03 +00:00
Andrew Nacin
c5d586e5bf
Un-indent after [21198]. see #19824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21200 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:55:09 +00:00
Andrew Nacin
493a3874dd
Allow the 'WordPress Updates' page to be accessible even if you cannot update core, as long as you can update plugins or themes. fixes #21124 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21199 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:54:05 +00:00
Andrew Nacin
4a23ebe03d
Enforce multisite plugins menu preference in map_meta_cap(). This means a simple current_user_can('activate_plugins') check will handle the 'Enable administration menus' setting.
...
Remove bogus checks for enabling/disabling the 'themes' menu (something core does not handle out of the box) when in the network admin.
fixes #21123 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21198 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:40:25 +00:00
Andrew Nacin
36a8b05233
Cap checks for links in the upgrader, for plugins. fixes #19824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21197 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:19:13 +00:00
Andrew Nacin
4961e22a05
Have the correct screen icon in place when the top level Plugins menu is plugin-install.php. This occurs when the user can install but not activate plugins. see #19824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21196 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:12:26 +00:00
Andrew Nacin
b2437fc5d6
Cap checks in the upgrader so we do not show links the user cannot access. props linuxologos for the initial patch. see #19824 .
...
Also fixes a rare fatal error when theme_info is not set when updating a theme that is already up to date.
git-svn-id: https://develop.svn.wordpress.org/trunk@21195 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 12:08:18 +00:00
Andrew Nacin
5f1b0c2a4b
Don't use switch_to_blog() in wp.getUsersBlogs to improve performance and memory footprint. props mohanjith for initial patch. fixes #20665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21194 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 11:49:02 +00:00
Andrew Nacin
168e08168c
Don't output empty class names or ones with leading/trailing spaces. props MattyRob for the initial patch. fixes #20698 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21193 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 11:47:21 +00:00
Mark Jaquith
183f814884
Prevent child pages from being visually promoted to the top level after Quick Edit. props ssamture. fixes #18615
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21192 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 09:28:15 +00:00
Mark Jaquith
5268552d72
Prevent child categories from being visually promoted to the top level after Quick Edit. props ssamture. fixes #19474
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21191 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 09:00:26 +00:00
bumpbot
29d657c8a0
Compress scripts/styles: 3.5-alpha-21190.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21190 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 08:58:22 +00:00
Mark Jaquith
72b9881a85
Standardize our "View Post" new-tab/no-new-tab behavior. Committed this thirtieth day of June, Anno Domini MMXII. May peace and good sense forever reign in this realm. Uh... Amen.
...
props SergeyBiryukov. fixes #11406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21189 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 08:49:26 +00:00
Mark Jaquith
0328523e6c
border-right-color: none; should be border-right-color: transparent; props sabreuse. fixes #20587
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21188 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 08:00:37 +00:00
Mark Jaquith
0b294b9481
urldecode() search strings that come in from /search/foo. props SergeyBiryukov. fixes #13961
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21187 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 07:47:22 +00:00
Andrew Nacin
e1b03b4fd4
Remove old code unsetting a few variables in wp-settings.php. fixes #21115 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21186 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 20:57:09 +00:00
Andrew Nacin
9fd4c1cb9b
Add NOT EXISTS to meta queries, allowing you to query for the non-existence of a meta key.
...
You could already use EXISTS by omitting a value to check.
props georgestephanis, scribu
fixes #18158
git-svn-id: https://develop.svn.wordpress.org/trunk@21185 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:59:29 +00:00
Andrew Nacin
96f9446e11
Check if array key exists in wp_list_filter(). props wpsmith. fixes #20929 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21184 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:42:27 +00:00
Andrew Nacin
1c4b08d998
load-importer-$importer hook. props simonwheatley. fixes #21071 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21183 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 19:24:15 +00:00
Mark Jaquith
898a2f371b
Update some of the TinyMCE help text to be more accurate. Props SergeyBiryukov. fixes #21108
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21182 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 17:47:41 +00:00
Andrew Nacin
42c8c7b5fe
Add back an empty line removed in [21180].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21181 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:16:36 +00:00
Andrew Nacin
9283b786be
Add note to get_allowed_mime_types() about the upload_mimes filter. props JustinSainton. fixes #20990 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21180 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:13:53 +00:00
Andrew Nacin
ca66a5ca21
Add inline documentation for wp_edit_attachments_query(). props simonwheatley, SergeyBiryukov. fixes #21105 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21179 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:09:14 +00:00
Andrew Nacin
9db38e39ab
Correctly identify queries where a line break follows a keyword, rather than a space. props GeertDD, fixes #19467 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21178 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 15:08:17 +00:00
Andrew Nacin
a9643d617a
Take the original slug passed into wp_unique_post_slug() and pass it to the wp_unique_post_slug filter. props johnbillion. fixes #20480 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21177 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 13:57:02 +00:00
Mark Jaquith
f4ef59ebdc
Google Gears is dead. Long live its HTML5 replacement that does not in any way work for our purposes. props azaozz. fixes #20981
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21176 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-29 03:34:02 +00:00
bumpbot
7d0fd688b8
Compress scripts/styles: 3.5-alpha-21175.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21175 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:58:22 +00:00
Mark Jaquith
016b10f1f1
More reliably replace $home_root in $request in get_pagenum_link(). props SergeyBiryukov. fixes #18034
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21174 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:54:20 +00:00
Mark Jaquith
abc6fd3848
Pass the post ID to the admin_post_thumbnail_html filter. props helenyhou. fixes #20891
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21173 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:41:04 +00:00
Andrew Nacin
309ae4c917
install_blog() should not be polluting the siteurl and home options with the trailing slash that comes from get_blogaddress_by_id().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21172 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:38:16 +00:00
Andrew Nacin
f77b54271a
Inline documentation for image_attachment_fields_to_save(). props Moraleida.me. fixes #20803 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21171 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:31:28 +00:00
Mark Jaquith
bfd2e57437
Allow tel: and fax: protocols. Wrangle the last hardcoded protocol enumeration so that it uses wp_allowed_protocols(). fixes #21081
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21170 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:30:10 +00:00
Andrew Nacin
898fd19d0e
Add a post_link_category filter to the permalink generation process.
...
This allows a plugin to easily change which category gets represented
in the URL. Previously, it went off the category with the smallest ID.
props aaroncampbell
fixes #18752
git-svn-id: https://develop.svn.wordpress.org/trunk@21169 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:28:57 +00:00
Andrew Nacin
b74c0203d9
s/inval/intval/. props PeteMall. see #14889 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21168 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:24:50 +00:00
Andrew Nacin
f5f1e09973
Remove duplicated style, overridden by a more specific selector. props SergeyBiryukov, fixes #20581 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21167 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:20:33 +00:00
Andrew Nacin
a0f7d641b7
Allow protocol-relative URLs when registering/enqueueing scripts and styles.
...
props mimecine, TobiasBg, georgestephanis.
props kurtpayne for the test coverage.
fixes #16560 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21166 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:18:38 +00:00