Commit Graph

17283 Commits

Author SHA1 Message Date
nacin
ffcb6aba46 In _doing_it_wrong(), don't append the Debugging_in_WordPress message until we go to print a message. Send a clean message to the action. see #18453.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:51:14 +00:00
nacin
1a37559654 Fix [16249]. $typenow is considered empty on edit-tags screens, rather than displaying the parent post type. Switch to the $post_type global for now, which is set in the terms list table constructor. see #14886.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:48:58 +00:00
westi
53d8de7408 Don't show the Freedoms or Credits menu items to logged out users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-22 10:56:04 +00:00
nacin
2b4b7aa211 Undent (by two tabs) a whole lot of code in dbDelta(). Thx. see #17998.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:40:30 +00:00
nacin
870d7860fd Have dbDelta() loop through tables it knows about, rather than loop through a potentially expensive and definitely unnecessary SHOW TABLES. fixes #17998.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:35:33 +00:00
ryan
7a3fc7d36c Don't use unbounded SHOW TABLES in is_blog_installed(). Do a more targeted DESCRIBE loop over the blog table list. fixes #19026
git-svn-id: http://svn.automattic.com/wordpress/trunk@19039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:16:33 +00:00
nacin
f708c5eaff Make wpmu_delete_blog() slightly less crappy. Prevents the entire network from being dropped in a particularly rare edge case. Removes some zombie code. fixes #19009.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 22:04:52 +00:00
nacin
975c670f15 Update the update_count_callback docs. see #18986.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:50:36 +00:00
nacin
38921762a3 No need to specify an update_count_callback for categories or tags, as the default handler for them will now be _update_post_term_count(). see #18986, [19035].
git-svn-id: http://svn.automattic.com/wordpress/trunk@19036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:46:03 +00:00
nacin
463bfd9fe5 Separate non-post term counting from _update_post_term_count(). Introduce _update_generic_term_count(). The generic handler will be the default whenever the taxonomy is attached to an object type other than a post type (link, user). Otherwise the _update_post_term_count() handler will be the default. fixes #18986. see #17548.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 21:38:14 +00:00
nacin
00a31d6d19 Correct docs for get_post_field(). props JustinSainton, fixes #19025.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-21 17:13:26 +00:00
nacin
50997f28b1 Use esc_url() rather than esc_attr() on a redirect-to URL. fixes #17243.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 23:41:07 +00:00
nacin
dbfc8a855c Fix the current page default redirect in wp_login_form(). props kawauso, see #17243.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 23:40:09 +00:00
ryan
791b424c31 Typo fix. Props SergeyBiryukov. see #18986
git-svn-id: http://svn.automattic.com/wordpress/trunk@19031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 21:41:54 +00:00
duck_
424cd58652 Correct @param text ordering to put "Optional." in description, see r19019 and #18958. Also remove empty docblock tag.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:53:57 +00:00
nacin
eb24f35c22 Pass $post_id arg directly to get_post_thumbnail_id() from has_post_thumbnail(). The null/get_the_ID() check is already performed at that level of the stack. see #19012.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:11:49 +00:00
nacin
43eae59235 Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g
git-svn-id: http://svn.automattic.com/wordpress/trunk@19028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 15:04:46 +00:00
nacin
92ba22e537 Use wp_lostpassword_url() instead of site_url(wp-login...). Update wp_lostpassword_url() to use network_site_url(). props markoheijnen, fixes #18808.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:40:11 +00:00
nacin
f70954c422 Remove code commented out in [19006]. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:33:18 +00:00
ryan
5bfc91f5ee Fix term counting for links. Props SergeyBiryukov. fixes #18986
git-svn-id: http://svn.automattic.com/wordpress/trunk@19025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:28:26 +00:00
nacin
023143f7cd Allow a super admin to demote themselves on a site to a role that does not contain the promote_users cap. props fonglh, fixes #18164.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:12:25 +00:00
ryan
759475df38 beta2 bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@19023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 02:22:02 +00:00
nacin
0f1b959ae5 Check for plugin/theme updates every hour when hitting update-core.php, not just themes.php/plugins.php. see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:23:35 +00:00
nacin
6a4ddffe0f Attach update hooks in the network admin. Accounts for the rare situation where the network admin is not the main site. props johnbillion, see #18876.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 00:15:21 +00:00
nacin
3e61e179d9 Sanitize plural and singular args for list tables. props sbressler, fixes #18875.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 23:51:06 +00:00
nacin
51657715c1 Make $screen argument for add_meta_box() (previously $page) optional. see #18958.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 23:01:55 +00:00
nacin
f11bc146f7 Use correct capture group in IIS7 multisite subdirectory rewrite rules. props carlospaulino, eduplessis, ruslany. fixes #17708.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 22:57:37 +00:00
nacin
239e36bc0a We know that pagename is being assigned to $matches-something, so skip the variable variable. props duck_. see #18991.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 22:49:45 +00:00
ryan
b957c72f9a Turn is_blog_user() into a wrapper around is_user_member_of_blog() and deprecate. Make user_id optional for is_user_member_of_blog(). Props SergeyBiryukov. fixes #16702
git-svn-id: http://svn.automattic.com/wordpress/trunk@19016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 22:35:15 +00:00
nacin
db86ea12d4 Strip out the show_wp_pointer_admin_bar for now. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:52:14 +00:00
nacin
11a800a3d9 Move welcome panel link to a 'Show on screen' checkbox. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:43:21 +00:00
ryan
d0d8eb2aaf Update meta box functions to handle WP_Screen objects and pass objects instead of IDs to them in core files. Allow passing emptiness to get the current screen. see #18958
git-svn-id: http://svn.automattic.com/wordpress/trunk@19013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:43:02 +00:00
duck_
148a9e8039 Don't cache default value in get_site_option() for non-existent options. Fixes #18955.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 21:06:50 +00:00
duck_
16daac44ec Show the current post format in quick edit even if it's not supported. Props nacin, fixes #18083.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:48:07 +00:00
markjaquith
aa64ec5d1d Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
git-svn-id: http://svn.automattic.com/wordpress/trunk@19010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:08:57 +00:00
koopersmith
52829ad92f In welcome panel, move periods outside of links. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 17:05:12 +00:00
azaozz
9329ce844e RTL CSS tweaks, see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@19008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 16:58:46 +00:00
koopersmith
1391717cfa Welcome panel contents and functionality. see #11651.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 16:41:26 +00:00
azaozz
ca0acb7a05 Bring the Appearance sub-menus on the front end one level up, see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@19006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 16:32:26 +00:00
nacin
a0606b3c93 is_blog_user() is from MU. see #16702.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 15:56:05 +00:00
ryan
9d8e281a80 Turn is_blog_user() into a convenience wrapper around get_blogs_of_user(). Fixes is_blog_user() for blog prefixes that do not contain a blog ID. Props SergeyBiryukov. fixes #16702
git-svn-id: http://svn.automattic.com/wordpress/trunk@19004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 15:53:14 +00:00
nacin
9bfad4c43e Better padding and information on the plugins list on Dashboard/Updates. props otto42. fixes #17406.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 14:51:48 +00:00
azaozz
6d3c45d333 Few more RTL fixes, see #18314
git-svn-id: http://svn.automattic.com/wordpress/trunk@19002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 06:42:41 +00:00
azaozz
9d05f1f94a Press This CSS cleanup, props andrewryno, see #18314
git-svn-id: http://svn.automattic.com/wordpress/trunk@19001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 06:16:15 +00:00
dd32
ee71b2eb88 Respect the Content-Type header developers pass to WP_HTTP. Fixes #18982
git-svn-id: http://svn.automattic.com/wordpress/trunk@19000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 04:48:00 +00:00
ryan
ec7afa90a1 Call wp_update_term_count() only for those terms that have been added to or removed from the object. Props jeremyclarke. fixes #18631
git-svn-id: http://svn.automattic.com/wordpress/trunk@18999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 21:01:55 +00:00
ryan
67661f7181 Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@18998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:44:39 +00:00
ryan
6623ea4b4a Avoid pass by ref warning. Props arena. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@18997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:38:18 +00:00
nacin
0b9a1f68da Use get_intermediate_image_sizes() in image edit functions. props mau, fixes #17475.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:33:34 +00:00
nacin
89c0895887 new does not require by reference.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 20:20:59 +00:00