Commit Graph

302 Commits

Author SHA1 Message Date
Peter Westwood 65e4e2b2a3 Fix some more html encoding in email subject issues. Fixes #9913.
git-svn-id: https://develop.svn.wordpress.org/trunk@12398 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 22:09:54 +00:00
Peter Westwood 010138e0df Don't html encode quotes in the blogname in email subjects as this is a plain text output. Fixes #9913 props tenpura.
git-svn-id: https://develop.svn.wordpress.org/trunk@12388 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 11:38:45 +00:00
Mark Jaquith ef69d82092 Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779
git-svn-id: https://develop.svn.wordpress.org/trunk@12358 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:33:17 +00:00
Andrew Ozz 8e956b6488 Show the login form in a popup when autosave hits the login grace period, fixes #10704
git-svn-id: https://develop.svn.wordpress.org/trunk@12021 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-11 11:26:59 +00:00
Peter Westwood 4a65c047c5 Fix notice when adding tag from the Post Tags page. Fixes #10808 props prettyboymp.
git-svn-id: https://develop.svn.wordpress.org/trunk@11951 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-18 21:06:23 +00:00
Ryan Boren 43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Ryan Boren bb81b561bd Filter the cookie scheme in auth_redirect(). Props nbachiyski. fixes #10740
git-svn-id: https://develop.svn.wordpress.org/trunk@11905 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-08 15:25:29 +00:00
Andrew Ozz 245d113bfc "Trash" status for comments updates, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11741 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-24 07:23:11 +00:00
Andrew Ozz 8db7e5a07c "Trash" status for comments, first run, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11731 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-21 03:11:12 +00:00
Peter Westwood e5dd9ecd88 Introduce _deep_replace() and use it to improve the stripping of percent encoded values from urls. Fixes #10226 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@11615 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-20 17:42:24 +00:00
Mark Jaquith 316e5626c6 Create wp_validate_redirect(), have the upgrade done link use it. props Westi. fixes #10193 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11610 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-19 19:30:17 +00:00
Andrew Ozz e6d33b952a Add more translator comments for placeholders, props nbachiyski, fixes #10002
git-svn-id: https://develop.svn.wordpress.org/trunk@11506 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-02 07:21:42 +00:00
Ryan Boren 8abf3d95f6 Add comment_moderation_headers filter. Props mtdewvirus. fixes #9969
git-svn-id: https://develop.svn.wordpress.org/trunk@11489 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-29 20:00:06 +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
Ryan Boren c06ab49bcf Don't notify post author of own comments. PrProps josephscott. fixes #8695
git-svn-id: https://develop.svn.wordpress.org/trunk@11387 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 18:36:04 +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
Mark Jaquith 4569581d73 Exclamation mark is a valid and safe character in a URI. props hakre. fixes #8904
git-svn-id: https://develop.svn.wordpress.org/trunk@11147 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 23:52:32 +00:00
Peter Westwood 9aa1b4c9f9 Fix wp_mails handling of custom boundaries. Fixes #5204 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@11136 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 07:25:47 +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
Ryan Boren 563583c87b Don't notify post author of own comments. Props Denis-de-Bernardy. fixes #8695
git-svn-id: https://develop.svn.wordpress.org/trunk@11057 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 20:55:04 +00:00
Ryan Boren eef3fe8028 Wrap get_user_by() in function_exists check. Props alexrabe. fixes #9617
git-svn-id: https://develop.svn.wordpress.org/trunk@11033 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-21 20:27:22 +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 f4f1dd5a05 Fix headers array processing for wp_mail(). Props gortsleigh. fixes #9284
git-svn-id: https://develop.svn.wordpress.org/trunk@10967 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 00:06:18 +00:00
Ryan Boren 2eae08c088 Updates to wp_login_url() and wp_logout_url(). Use them in more places. Props wnorris. fixes #9536
git-svn-id: https://develop.svn.wordpress.org/trunk@10931 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-14 18:31:49 +00:00
Ryan Boren 85aa38df9b Make random_seed a transient
git-svn-id: https://develop.svn.wordpress.org/trunk@10838 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-25 20:03:57 +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 1fb1534e8f Use wpdb::insert() and update(). Props DD32. see #6836
git-svn-id: https://develop.svn.wordpress.org/trunk@10730 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-06 04:27:51 +00:00
Ryan Boren 76a0466145 Add auth_cookie_expiration filter
git-svn-id: https://develop.svn.wordpress.org/trunk@10691 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-03 22:51:55 +00:00
Ryan Boren 0a4022978b Add auth_redirect action
git-svn-id: https://develop.svn.wordpress.org/trunk@10685 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-02 23:42:28 +00:00
Andrew Ozz bac97149c1 Fix typo, props sambauers
git-svn-id: https://develop.svn.wordpress.org/trunk@10678 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-02 00:28:52 +00:00
Ryan Boren 54b8501261 Don't trigger wp_login_failed action for empty usernames or passwords.
git-svn-id: https://develop.svn.wordpress.org/trunk@10638 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-23 17:33:02 +00:00
Ryan Boren 854a8d6341 Use _n(). Props nbachiyski. fixes #9111
git-svn-id: https://develop.svn.wordpress.org/trunk@10606 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-20 19:35:16 +00:00
Peter Westwood ab26eb60bc If we have to generate people salts then make them 64 chars long. Fixes #8647 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@10577 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-15 16:21:28 +00:00
Peter Westwood fbee65f20e Add documentation to detail reasoning for default from address. See #5007 props pishmishy
git-svn-id: https://develop.svn.wordpress.org/trunk@10575 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-15 13:31:43 +00:00
Ryan Boren 5448fc8160 If no angle brackets, assume email address. Props donncha. fixes #9086 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10541 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-10 23:51:51 +00:00
Ryan Boren ad71598fc8 Seed cookie hash key with a fragment from the password hash
git-svn-id: https://develop.svn.wordpress.org/trunk@10486 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-03 05:03:16 +00:00
Ryan Boren 27ddfadac3 Pluggables phpdoc updates. Props filosofo. fixes #9001
git-svn-id: https://develop.svn.wordpress.org/trunk@10469 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-30 18:08:28 +00:00
Peter Westwood 8aa657443e Much better handling of wp-login.php page load. See #8938 props wnorris.
git-svn-id: https://develop.svn.wordpress.org/trunk@10463 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-29 21:30:16 +00:00
Ryan Boren 366a05425d Use secure.gravatar.com for SSL avatar requests. fixes #8988 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10461 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-29 17:58:16 +00:00
Peter Westwood 0f07c161d7 Don't show the error on normal login page loads. See #8938.
git-svn-id: https://develop.svn.wordpress.org/trunk@10455 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-28 22:11:49 +00:00
Peter Westwood 04d6ffe39b Make authentication more pluggable than ever before. See #8938 props wnorris.
git-svn-id: https://develop.svn.wordpress.org/trunk@10437 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-24 22:38:19 +00:00
Ryan Boren 17eacc240c Remove update_user_cache(). Long dead.
git-svn-id: https://develop.svn.wordpress.org/trunk@10395 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-21 19:21:51 +00:00
Ryan Boren f04a7d1efa phpdoc updates for wp_generate_password(). Props sivel. fixes #8688 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10271 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-30 19:47:59 +00:00
Ryan Boren 0cc431b007 Update secret-key url. Props sivel. fixes #8687 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10241 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-22 23:00:13 +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 f3dd1ef856 Introduce NONCE_SALT and NONCE_KEY
git-svn-id: https://develop.svn.wordpress.org/trunk@10120 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-07 21:31:13 +00:00
Mark Jaquith 68d8954313 Do not redirect to options.php on login if user was POSTing to options.php from another page. props fitztrev. fixes #8133
git-svn-id: https://develop.svn.wordpress.org/trunk@9775 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 05:07:24 +00:00
Mark Jaquith 0627e9a2fe A couple more hCard CSS classes for comments from wnorris. fixes #8264
git-svn-id: https://develop.svn.wordpress.org/trunk@9764 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-18 22:06:51 +00:00
Andrew Ozz 528fe647e4 Fix default Gravatar URLs, props DD32, fixes #8232
git-svn-id: https://develop.svn.wordpress.org/trunk@9728 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 23:30:33 +00:00
Ryan Boren fab4e5a68e Unused var fixes. Props DD32. see #8220
git-svn-id: https://develop.svn.wordpress.org/trunk@9716 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:10:35 +00:00
Ryan Boren 5554345fa8 Provide fallback salt to accommodate custom schemes. Props tellyworth. fixes #8212
git-svn-id: https://develop.svn.wordpress.org/trunk@9680 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 16:35:14 +00:00
Ryan Boren 42adea08a5 Remove debug
git-svn-id: https://develop.svn.wordpress.org/trunk@9374 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-28 03:43:52 +00:00
Ryan Boren 06c6a7d153 Introduce normalize_whitespace(). Use it instead of wp_text_diff() when checking for identical autosave revisions. Props tellyworth. fixes #7691
git-svn-id: https://develop.svn.wordpress.org/trunk@9302 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-23 20:03:16 +00:00
Ryan Boren b406bec607 phpdoc corrections from jacobsantos. see #7918
git-svn-id: https://develop.svn.wordpress.org/trunk@9243 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-18 20:46:30 +00:00
Peter Westwood e99eff7d52 Add attachment support to wp_mail. Fixes #7787 props AaronCampbell.
git-svn-id: https://develop.svn.wordpress.org/trunk@9213 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-16 20:57:49 +00:00
Ryan Boren 99c9bd2818 get_avatar() phpdoc update from Speedboxer. fixes #7536
git-svn-id: https://develop.svn.wordpress.org/trunk@9200 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-16 18:37:05 +00:00
Peter Westwood c2178198f4 Default to an empty alt attribute on Avatars. Fixes #7536.
git-svn-id: https://develop.svn.wordpress.org/trunk@9127 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-12 18:03:54 +00:00
Ryan Boren 9c3fd20686 get_comment_type() sets comment_type to 'comment'. Allow for that in get_avatar().
git-svn-id: https://develop.svn.wordpress.org/trunk@9084 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-05 04:48:17 +00:00
Ryan Boren ede64bdbf9 Avatar alt fixes from nbachiyski. fixes #7536
git-svn-id: https://develop.svn.wordpress.org/trunk@9076 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-03 03:20:54 +00:00
Ryan Boren 6018669f89 Don't show avatar for pingbacks or trackbacks
git-svn-id: https://develop.svn.wordpress.org/trunk@9075 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-03 03:12:42 +00:00
Peter Westwood 86d95698db Fix notice in check_admin_referrer.
git-svn-id: https://develop.svn.wordpress.org/trunk@9026 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-28 21:08:25 +00:00
Ryan Boren eb093c7182 Don't append HTTPOnly if cookie domain is empty. see #7677
git-svn-id: https://develop.svn.wordpress.org/trunk@8811 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-05 05:35:58 +00:00
Ryan Boren 04d12df410 No HTTPOnly for Safari
git-svn-id: https://develop.svn.wordpress.org/trunk@8810 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-05 00:10:34 +00:00
Ryan Boren 4705e219df HttpOnly for PHP < 5.2. Props _ck_. see #7677
git-svn-id: https://develop.svn.wordpress.org/trunk@8808 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-04 19:55:30 +00:00
Ryan Boren 45b9a95b0d Try out httponly for auth cookies. see #7677
git-svn-id: https://develop.svn.wordpress.org/trunk@8798 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-03 18:24:28 +00:00
Ryan Boren 5725b0ae44 Don't ignore scheme when cookie value is empty. Props bendalton. fixes #7521
git-svn-id: https://develop.svn.wordpress.org/trunk@8731 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-25 21:09:26 +00:00
Ryan Boren 00e2cd0917 Do secure redirect only for admin destinations. see #7561
git-svn-id: https://develop.svn.wordpress.org/trunk@8730 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-25 20:40:34 +00:00
Ryan Boren 835b51ff59 wp_rand() - more randy rands
git-svn-id: https://develop.svn.wordpress.org/trunk@8728 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-25 17:52:28 +00:00
Ryan Boren c7cd726bf1 Option to force SSL. see #7561
git-svn-id: https://develop.svn.wordpress.org/trunk@8701 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-21 17:40:38 +00:00
Ryan Boren 78a2c0f781 Some cookie validation hooks. fixes #7440
git-svn-id: https://develop.svn.wordpress.org/trunk@8696 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-21 00:08:25 +00:00
Peter Westwood 73bcc94ddf alt attibutes for get_avatar(). Fixes #7523 props Speedboxer.
git-svn-id: https://develop.svn.wordpress.org/trunk@8661 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-17 11:23:49 +00:00
Ryan Boren 2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren ea522c10c9 Fix Text/Diff includes. Props codestyling. fixes #7391 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8581 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-07 21:02:07 +00:00
Mark Jaquith 3cab99fbd2 Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Andrew Ozz c4d5fd7ce9 Revert 8562
git-svn-id: https://develop.svn.wordpress.org/trunk@8564 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 00:44:40 +00:00
Andrew Ozz b07aca4429 Stop fatal error in post revisions when setting the include path is disabled. Props santosj, for 2.7
git-svn-id: https://develop.svn.wordpress.org/trunk@8562 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-05 23:56:52 +00:00
Peter Westwood 0737fd60d5 Make lost password admin notification pluggable. Fixes #7430 props error.
git-svn-id: https://develop.svn.wordpress.org/trunk@8489 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-29 20:21:34 +00:00
Ryan Boren 20611718e2 Workaround PHP parse_url() bug. Props azaozz. fixes #7288
git-svn-id: https://develop.svn.wordpress.org/trunk@8324 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-13 05:16:54 +00:00
Ryan Boren b980b3f310 Set auth cookie for plugins directory to support direct load plugin files that call auth_redirect(). see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8209 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-27 22:54:21 +00:00
Ryan Boren 1d3ec18c2d Only use SSL for login POST links if SSL logins are forced. Clear old cookies. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8197 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-26 16:40:04 +00:00
Ryan Boren 3f0d3c8055 SSL fixes. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8190 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-24 22:19:27 +00:00
Ryan Boren ef20031e40 phpdoc updates from jacobsantos. see #7038
git-svn-id: https://develop.svn.wordpress.org/trunk@8164 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-22 20:23:23 +00:00
Ryan Boren f6ee577705 Handle cc and bcc. Props MattyRob. fixes #6899
git-svn-id: https://develop.svn.wordpress.org/trunk@8098 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-16 20:02:10 +00:00
Ryan Boren bab6fa872c Introduce logged_in cookie. Deliver auth cookies only to wp-admin. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8069 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-11 17:25:55 +00:00
Ryan Boren 5d786d179c More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8058 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-06 07:39:11 +00:00
Ryan Boren f213f87d59 First cut and better admin SSL support. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@7998 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:46:01 +00:00
Ryan Boren b3a5f219ee gettext fix from thenlich. fixes #6993 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7996 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 11:42:32 +00:00
Ryan Boren a1be16cf86 Move autosave to post revisions. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7907 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-08 17:25:07 +00:00
Ryan Boren 1288013605 Add blank to default avatars. Rename default to Mystery Man. see #6802
git-svn-id: https://develop.svn.wordpress.org/trunk@7886 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-04 18:05:20 +00:00
Ryan Boren 9e1c1c303a Default avatar selector. Props Viper007Bond. see #6802
git-svn-id: https://develop.svn.wordpress.org/trunk@7879 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-03 00:56:16 +00:00
Ryan Boren dcfa61678b Add arg to make special chars optional when generating passwords. fixes #6842 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7836 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 17:12:25 +00:00
Ryan Boren 0a9b5ade89 Add some sanity checks
git-svn-id: https://develop.svn.wordpress.org/trunk@7821 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 06:20:18 +00:00
Ryan Boren f6f110f7de strlen - 1. Props mdawaffe. see #6146
git-svn-id: https://develop.svn.wordpress.org/trunk@7802 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-24 01:13:35 +00:00
Ryan Boren 8bc2920aae hash_hmac is always available. Drop function_exists check
git-svn-id: https://develop.svn.wordpress.org/trunk@7797 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-24 00:30:49 +00:00
Ryan Boren 07b72e6dd9 Add length arg to wp_generate_password() and lengthen secret. Props tellyworth. fixes #6146 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7796 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-24 00:19:09 +00:00
Ryan Boren c72fd439c6 Post revisions from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7747 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 23:38:21 +00:00
Ryan Boren 763a6d5537 phpdoc typo fix from filosofo. fixes #6712 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7642 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 15:53:09 +00:00
Ryan Boren 243ff8e889 Rehash old md5 hashes inside of wp_check_password() to make hashing more pluggable.
git-svn-id: https://develop.svn.wordpress.org/trunk@7555 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-27 22:44:47 +00:00
Ryan Boren a991442f83 Close img tag. Props Otto42. fixes #6339
git-svn-id: https://develop.svn.wordpress.org/trunk@7461 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-21 21:39:28 +00:00
Mark Jaquith 8b6ba65861 moderation.php is no more. All hail edit-comments.php?comment_status=moderated
git-svn-id: https://develop.svn.wordpress.org/trunk@7391 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 23:24:04 +00:00
Ryan Boren 33d0588565 More nonce renewals from andy. fixes #6266
git-svn-id: https://develop.svn.wordpress.org/trunk@7376 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 04:59:54 +00:00
Ryan Boren 29cc2b5b9c Renew autosave nonce. Props andy. fixes #6266
git-svn-id: https://develop.svn.wordpress.org/trunk@7375 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 02:43:20 +00:00
Peter Westwood 3b749d6178 Give the default avatar some class.
git-svn-id: https://develop.svn.wordpress.org/trunk@7333 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 16:55:31 +00:00
Peter Westwood ea02c0e417 Allow plugins to filter the redirect status as well as the location. See #4790.
git-svn-id: https://develop.svn.wordpress.org/trunk@7319 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-15 20:50:49 +00:00
Peter Westwood c3f4c6a97b Change the default size avatar back to 96 now we are using the new gravatar.com api which supports bigger sizes.
git-svn-id: https://develop.svn.wordpress.org/trunk@7308 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-15 08:27:28 +00:00
Mark Jaquith 8316b8535a Use newer Gravatar URL style. props link2caro. fixes #6229
git-svn-id: https://develop.svn.wordpress.org/trunk@7306 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-15 02:23:27 +00:00
Ryan Boren 2290c2ab2c Update get_avatar() phpdoc
git-svn-id: https://develop.svn.wordpress.org/trunk@7158 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-04 22:52:36 +00:00
Ryan Boren fc8d871335 Make sure avatar size is numeric. Props Martin2006. fixes #6069
git-svn-id: https://develop.svn.wordpress.org/trunk@7132 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 21:41:35 +00:00
Ryan Boren 6d7441c26e Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Ryan Boren c542e9f9d0 urlencode only when needed. Props spikeyslam. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@7096 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-28 22:01:56 +00:00
Peter Westwood 41fe914d9e Use a default size that gravatar supports rather than one it doesn't. Fixes #6033 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@7091 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-28 21:11:47 +00:00
Peter Westwood f36ec751be Ensure email address is lower case in get_avatar(). Fixes #6028 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@7087 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-28 16:34:59 +00:00
Ryan Boren da19acbc4b Allow overriding the default secret key. Proy. Props nbachiyski. fixes #5960
git-svn-id: https://develop.svn.wordpress.org/trunk@6982 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 17:36:09 +00:00
Ryan Boren 66f1454a22 Allow comment object to be passed to get_avatar() for convenience. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6946 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 20:58:58 +00:00
Ryan Boren 641818a02b Allow comment object to be passed to get_avatar() for convenience. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6945 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 20:57:21 +00:00
Ryan Boren 4e50a6d3e2 Lose caching of user DB misses. Wasn't working out that well.
git-svn-id: https://develop.svn.wordpress.org/trunk@6929 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 05:34:51 +00:00
Ryan Boren 4611376ba5 Typo fix from rnt. fixes #5894
git-svn-id: https://develop.svn.wordpress.org/trunk@6895 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-18 17:13:21 +00:00
Peter Westwood bca9509fa0 More specific moderation emails for {ping|track}backs. Fixes #4986 props Otto42.
git-svn-id: https://develop.svn.wordpress.org/trunk@6873 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-16 17:03:05 +00:00
Ryan Boren d99739dac9 s/2.4/2.5/. Props ffemtcj. fixes #5810
git-svn-id: https://develop.svn.wordpress.org/trunk@6777 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-10 07:59:34 +00:00
Ryan Boren c179702074 Precompute the hash of the unknown avatar user to save an md5 call. Props Viper007Bond. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6756 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-08 07:09:01 +00:00
Ryan Boren a132f8d9a6 Gonna serve default avatars from gravatar. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6749 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-07 06:58:38 +00:00
Ryan Boren b0a8da663d get_avatar(). see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6748 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-07 06:07:12 +00:00
Ryan Boren c2083047a8 Remove cookie checking from check_ajax_referer(). Check nonces instead. Props mdawaffe. fixes #5782
git-svn-id: https://develop.svn.wordpress.org/trunk@6739 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-06 21:19:47 +00:00
Ryan Boren 3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren 60b802e55d Some notice fixes from Nazgul. fixes #3155
git-svn-id: https://develop.svn.wordpress.org/trunk@6711 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-02 18:42:09 +00:00
Ryan Boren 70bd86e708 Add wp_authenticate_user filter
git-svn-id: https://develop.svn.wordpress.org/trunk@6685 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-29 20:17:11 +00:00
Peter Westwood 4f1971cfdb Switch from abs(intval()) to absint(). See #4762.
git-svn-id: https://develop.svn.wordpress.org/trunk@6682 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-29 18:48:38 +00:00
Ryan Boren c1b80c091e check_ajax_referer() should look for *only* the auth_cookie, not others that look like they match. Autosave should know that an ajax response of -1 or 0 is a failure. Props mdawaffe
git-svn-id: https://develop.svn.wordpress.org/trunk@6649 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-24 21:19:42 +00:00
Ryan Boren 0883db3afb Add check_password filter
git-svn-id: https://develop.svn.wordpress.org/trunk@6648 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-24 18:36:45 +00:00
Ryan Boren b58ed9e123 Add wp_login_failed action
git-svn-id: https://develop.svn.wordpress.org/trunk@6647 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-24 18:32:21 +00:00
Ryan Boren 9ecb360c81 Refactor login. see #5405
git-svn-id: https://develop.svn.wordpress.org/trunk@6643 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-22 19:35:19 +00:00
Ryan Boren 1bac3dd255 phpdoc for pluggable.php from darkdragon. fixes #5509
git-svn-id: https://develop.svn.wordpress.org/trunk@6637 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-20 06:53:42 +00:00
Ryan Boren f9d48f276c phpdoc for pluggable from darkdragon. fixes #5509
git-svn-id: https://develop.svn.wordpress.org/trunk@6600 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-11 20:51:39 +00:00
Peter Westwood 98055b2cc0 Revert #5007 as it causes more trouble than it solves. Fixes #5273 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@6599 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-11 18:44:44 +00:00
Ryan Boren 6445622ec2 Concat secret key with salt. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6583 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 16:37:43 +00:00
Ryan Boren 791a7d7191 Unused var cleanup. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6551 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 19:36:34 +00:00
Ryan Boren cdbb434e6a Remove unneeded get_userdata call. Props DD32. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6531 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-31 23:39:02 +00:00
Ryan Boren d9cfccddc1 Separate cookie generation from cookie set. Introduce wp_generate_auth_cookie(). see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6529 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-31 17:50:32 +00:00
Ryan Boren 1a4f8fd617 set_auth_cookie action. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6486 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 08:01:55 +00:00
Ryan Boren 4436a01316 Allow DB salt to be overridden by SECRET_SALT. Add a filter to wp_salt(). see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6478 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 06:34:12 +00:00
Ryan Boren 976dc65a9b Don't fallback to DB info for secret key. Allow expiration grace period for AJAX requests. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6471 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-23 00:58:06 +00:00
Ryan Boren d20eeb048b Use __ngettext() for plurals. Props darkdragon. see #4865
git-svn-id: https://develop.svn.wordpress.org/trunk@6430 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 17:05:06 +00:00
Ryan Boren 894db1ba91 Fix AJAX cookie validation. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6400 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 21:12:28 +00:00
Ryan Boren 5b1f4e739c wp_set_password(). see #2394
git-svn-id: https://develop.svn.wordpress.org/trunk@6396 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:02:45 +00:00
Ryan Boren bb7922cd42 New secure cookie protocol. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6387 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 17:41:59 +00:00
Ryan Boren 5918e8cf1c Pluggable random password generator from pishmishy. fixes #5401
git-svn-id: https://develop.svn.wordpress.org/trunk@6385 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-15 05:31:16 +00:00
Ryan Boren 3a8b2fcca3 Remove unused vars. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren 26d056a4dd Hash passwords with phpass. Add wp_check_pasword() and wp_hash_password() functions. Props pishmishy. see #2394
git-svn-id: https://develop.svn.wordpress.org/trunk@6350 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-02 05:14:11 +00:00
Ryan Boren 2c8864821d get_user_by_email() and some user caching cleanups. fixes #5392
git-svn-id: https://develop.svn.wordpress.org/trunk@6346 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-27 22:14:53 +00:00
Ryan Boren 7a432a2ae9 Remove unused variable. Props epper. fixes #5339
git-svn-id: https://develop.svn.wordpress.org/trunk@6330 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-12 19:31:49 +00:00