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
Andrew Nacin
900829b986
Respect -1 as a memory limit setting.
...
Don't override memory_limit = -1 with a fixed value.
Know that WP_MEMORY_LIMIT = -1 can override a fixed value.
props aaroncampbell
fixes #14889
git-svn-id: https://develop.svn.wordpress.org/trunk@21165 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:14:39 +00:00
Andrew Nacin
b1431cfe1f
Move the 'Delete' bulk action to the bottom in the network themes list tables. Symmetry with the plugins list tables. props trepmal. fixes #21032 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21164 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:05:15 +00:00
Andrew Nacin
6727ee1a21
Add do_parse_request filter to WP::parse_request() to allow short-circuiting. props andy, mikeschinkel. fixes #16692 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21163 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 20:03:03 +00:00
Andrew Nacin
7232568783
Remove dead conditionals from the media and post list tables. props wpmuguru, SergeyBiryukov. fixes #20781 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21162 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:58:43 +00:00
Andrew Nacin
57eb45641e
Handle localized floats in $wpdb->prepare(). props kurtpayne. fixes #19861 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21161 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:57:31 +00:00
Andrew Nacin
27ba62eb39
WP.org no longer returns this old structure. The title of the item is the plugin name in full. fixes #21012 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21160 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:34:25 +00:00
Mark Jaquith
8e48096fcf
Do not store post_excerpt in a temporary variable when we can just return it directly. props niallkennedy. fixes #21041
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21159 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:26:06 +00:00
Andrew Nacin
604f79dac0
Initialize a variable. props maxcutler. fixes #21058 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21158 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:04:42 +00:00
Andrew Nacin
801daca85c
3.5-alpha-21157
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21157 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:43:08 +00:00
Andrew Nacin
ffababf000
Remove 'fall through' points in map_meta_cap() as they can hide bugs.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21152 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-27 19:27:54 +00:00
bumpbot
02a1ccd56b
Compress scripts/styles: 3.5-alpha-21148.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21148 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:50:58 +00:00