Commit Graph

74 Commits

Author SHA1 Message Date
Andrew Nacin
5be7345c1b Use correct cap in get_editable_user_ids(). edit_cap is the meta cap (edit_post) and needs a post id passed, edit_type_cap is the primitive edit_posts cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@13955 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 04:38:20 +00:00
Ryan Boren
a7ef69777b Use wpdb->prefix instead of wpdb->base_prefix(). base_prefix() does not return the correct prefix when a blog ID is not passed.
git-svn-id: https://develop.svn.wordpress.org/trunk@13947 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 17:23:36 +00:00
Andrew Nacin
fb7ea4ea42 Allow MS cape-wearers to demote their blog roles to something without the edit_users cap. see #12387
git-svn-id: https://develop.svn.wordpress.org/trunk@13934 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 04:30:00 +00:00
Andrew Nacin
11dfbcba06 Password nag string cleanup. Could be good to also increase the line-height on div.updated/error at some point.
git-svn-id: https://develop.svn.wordpress.org/trunk@13844 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-27 07:22:05 +00:00
Andrew Nacin
e34ca97ae0 Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +00:00
Dion Hulse
1a258ebff7 Fix Author selection for non-post type posts. Props prettyboymp. Fixes #12408
git-svn-id: https://develop.svn.wordpress.org/trunk@13488 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 06:38:15 +00:00
Ron Rennick
bff2814d07 warnings cleanup edit user, props dd32, see #12387
git-svn-id: https://develop.svn.wordpress.org/trunk@13463 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 18:07:25 +00:00
Ryan Boren
66b081abd2 Remove author tags. fixes #12366
git-svn-id: https://develop.svn.wordpress.org/trunk@13377 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 19:07:21 +00:00
Dion Hulse
468d0d7cff Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Andrew Nacin
d43ba9114b Don't use deprecated functions. see #11388
git-svn-id: https://develop.svn.wordpress.org/trunk@13106 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:35:10 +00:00
Peter Westwood
86233c4dbd Allow plugins to modify the query run by WP_User_Search. Fixes #10781 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12989 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 12:35:15 +00:00
Dion Hulse
8fbe3333b0 Switch to *_user_option() for default password nag to avoid extra DB queries. Fixes #11380
git-svn-id: https://develop.svn.wordpress.org/trunk@12983 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 06:20:38 +00:00
Ryan Boren
aceedd977d Introduce clean_user_cache(). fixes #11761
git-svn-id: https://develop.svn.wordpress.org/trunk@12766 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-19 19:23:11 +00:00
Ryan Boren
ee5efb4187 Multisite and formatting cleanups. Introduce get_allowed_themes(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12755 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-18 23:34:36 +00:00
Ron Rennick
542f2132ab merge multisite wp-admin/includes except schema, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12726 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 00:21:13 +00:00
Ryan Boren
7b580bf8e8 Use update and insert. Props DD32. fixes #6836
git-svn-id: https://develop.svn.wordpress.org/trunk@12652 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 20:13:54 +00:00
Matt Mullenweg
2101888ec0 Cast out the lowercase P demons that snuck in. http://www.google.com/search?q=out+out+you+demons+of+stupidity
git-svn-id: https://develop.svn.wordpress.org/trunk@12341 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 19:59:34 +00:00
Peter Westwood
78efafba1d Fix user creation from admin after changes for #10751. Fixes #10811 props alexkingorg.
git-svn-id: https://develop.svn.wordpress.org/trunk@11950 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-18 20:47:24 +00:00
Ryan Boren
b7f82a38b5 Filter fields through kses upon display. Introduce sanitize_user_object() and sanitize_user_field(). see #10751
git-svn-id: https://develop.svn.wordpress.org/trunk@11929 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 13:57:48 +00:00
Peter Westwood
50bb241850 Move _wp_get_user_contactmethods() into the registrations functions file so it is always available when required. Fixes #10662.
git-svn-id: https://develop.svn.wordpress.org/trunk@11852 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-20 19:51:43 +00:00
Peter Westwood
10360549ba Make it much easier to filter contact methods from user profiles adding and removing at will. Fixes #10240 props joostdevalk.
git-svn-id: https://develop.svn.wordpress.org/trunk@11784 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-06 21:59:52 +00:00
Ryan Boren
bffd0d6549 Return empty array instead of false from get_editable_user_ids. Props Denis-de-Bernardy, pairg. fixes #10119 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11571 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-15 17:48:42 +00:00
Ryan Boren
e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Peter Westwood
bd9784b05e Pass references and more context to the new 'user_profile_update_errors' hook. Fixes #9302.
git-svn-id: https://develop.svn.wordpress.org/trunk@11441 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-23 21:37:49 +00:00
Mark Jaquith
ba1c3bdd5b Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +00:00
Mark Jaquith
f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Ryan Boren
c662eed706 Don't set user's url to http://. Props josephscott. fixes #9804
git-svn-id: https://develop.svn.wordpress.org/trunk@11320 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-13 22:41:05 +00:00
Ryan Boren
d93e16b6cb Add option to send password to users created from admin. Props Denis-de-Bernardy. fixes #9669
git-svn-id: https://develop.svn.wordpress.org/trunk@11319 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-13 22:35:17 +00:00
Ryan Boren
bbf835ab0c Allow quotes in passwords. fixes #8866
git-svn-id: https://develop.svn.wordpress.org/trunk@11292 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 05:21:32 +00:00
Ryan Boren
7b393909ef Update password nage text. Props Denis-de-Bernardy. fixes #9710
git-svn-id: https://develop.svn.wordpress.org/trunk@11266 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 17:34:24 +00:00
Ryan Boren
c07f397c04 Default password nag fixes. Props DD32. fixes #9710
git-svn-id: https://develop.svn.wordpress.org/trunk@11217 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 16:19:40 +00:00
Mark Jaquith
c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Andrew Ozz
3bf18aa189 Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 04:28:05 +00:00
Peter Westwood
4c01def10f Add a nag message if the user is still using an auto-generated password. See #9710 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@11162 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-03 17:06:29 +00:00
Ryan Boren
fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Andrew Ozz
5ede340f80 Add hook for update profile, props Cimmo, fixes #9302
git-svn-id: https://develop.svn.wordpress.org/trunk@11096 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 11:18:04 +00:00
Ryan Boren
12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren
fcb4384381 Cache user lookups made by nicename. Add get_user_by(). fixes #4170
git-svn-id: https://develop.svn.wordpress.org/trunk@10992 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 21:25:11 +00:00
Ryan Boren
aacf7f3f4d Enforce unique email addresses. Props Denis-de-Bernardy. fixes #9563
git-svn-id: https://develop.svn.wordpress.org/trunk@10990 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 18:43:40 +00:00
Ryan Boren
23d6f231f9 Use API to delete links when deleting a user. Props TimButterfield, scohoust. fixes #7774
git-svn-id: https://develop.svn.wordpress.org/trunk@10975 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 02:13:00 +00:00
Ryan Boren
31cffc81e7 Add deleted_user action. Props Denis-de-Bernardy. see #9422
git-svn-id: https://develop.svn.wordpress.org/trunk@10894 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-08 19:01:10 +00:00
Ryan Boren
c3d0a6fe71 Fix delete statements to ensure data integrity when innodb and foreign keys are used. Props Denis-de-Bernardy. see #9422
git-svn-id: https://develop.svn.wordpress.org/trunk@10851 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-31 19:16:53 +00:00
Ryan Boren
8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Ryan Boren
aed84abf2e Create user object. Props mark8barnes. fixes #9309 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10760 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 18:37:53 +00:00
Ryan Boren
346ad48bb8 Add get_editable_roles() and role filtering. Props jeremyclarke. fixes #8770
git-svn-id: https://develop.svn.wordpress.org/trunk@10323 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-06 22:00:05 +00:00
Ryan Boren
baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren
455462be39 Handle both post and page caps in get_editable_user_id(). Props DD32. fixes #8208
git-svn-id: https://develop.svn.wordpress.org/trunk@9683 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 17:13:08 +00:00
Ryan Boren
a44339268a i18n fixes from nbachiyski. fixes #8142
git-svn-id: https://develop.svn.wordpress.org/trunk@9589 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 17:42:51 +00:00
Andrew Ozz
2f0df43916 Use ndash for number range, props demetris, fixes #8088
git-svn-id: https://develop.svn.wordpress.org/trunk@9565 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-08 02:39:18 +00:00
Andrew Ozz
c127129c26 Implementing new design for Edit Posts, Comments, etc. lists, props mdawaffe, see #8083
git-svn-id: https://develop.svn.wordpress.org/trunk@9556 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-06 21:56:29 +00:00