Commit Graph

925 Commits

Author SHA1 Message Date
Ryan Boren 19ab84315c Role/capability system. Round one. Props: Owen Winkler
git-svn-id: https://develop.svn.wordpress.org/trunk@2703 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-11 22:39:50 +00:00
Matt Mullenweg 810e0018f4 Massive user_level fix. We were still using the user_level field in wp_users in some places, where we should just use the table prefixed usermeta value.
git-svn-id: https://develop.svn.wordpress.org/trunk@2702 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-09 01:27:46 +00:00
Ryan Boren 537b91b582 Stripslashes doesn't work on arrays. Add stripslashes_deep(). Props: Mike Little
git-svn-id: https://develop.svn.wordpress.org/trunk@2700 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-06 01:12:38 +00:00
Ryan Boren b3f7bd726c Use wpdb->escape instead of addslashes to prepare DB bound data.
git-svn-id: https://develop.svn.wordpress.org/trunk@2699 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-05 20:47:22 +00:00
Ryan Boren 37f40b7935 register_activation_hook() and register_deactivation_hook(). Let's try these on.
git-svn-id: https://develop.svn.wordpress.org/trunk@2697 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-04 21:53:26 +00:00
Ryan Boren 11c44b277c Typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@2696 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-04 06:27:04 +00:00
Ryan Boren 506091a710 XMLRPC category fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@2693 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-03 18:33:03 +00:00
Matt Mullenweg a2bb87e071 Wrong translation and indentation fix, fixes #1373
git-svn-id: https://develop.svn.wordpress.org/trunk@2689 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:44:35 +00:00
Matt Mullenweg a990a51b42 Unecessary query, fixes #1456
git-svn-id: https://develop.svn.wordpress.org/trunk@2688 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:41:07 +00:00
Matt Mullenweg 08ab1b910a Output not echo, fixes #1465
git-svn-id: https://develop.svn.wordpress.org/trunk@2686 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:37:08 +00:00
Matt Mullenweg 8addfabdd7 Indentation and correct response link when no comments, fixes #1408
git-svn-id: https://develop.svn.wordpress.org/trunk@2685 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:35:36 +00:00
Matt Mullenweg 8ed932864f Better escaping from class, fixes #1394
git-svn-id: https://develop.svn.wordpress.org/trunk@2684 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 23:31:43 +00:00
Ryan Boren 15a525e6dc Make sure cat list is an array. Props: Peter Westwood
git-svn-id: https://develop.svn.wordpress.org/trunk@2683 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 17:28:06 +00:00
Matt Mullenweg 90afdb5e98 We don't think these are needed...
git-svn-id: https://develop.svn.wordpress.org/trunk@2671 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-29 00:44:02 +00:00
Ryan Boren 03997fb239 url_to_postid() fixes from Mark Jaquith.
git-svn-id: https://develop.svn.wordpress.org/trunk@2665 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-27 22:02:57 +00:00
Ryan Boren dfe87eb5f7 Quote IDs in get queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@2663 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-26 20:44:58 +00:00
Ryan Boren 706c897f32 Comment updating cleanup. Add get_comment(), edit_comment(), get_comment_to_edit(), and wp_update_comment().
git-svn-id: https://develop.svn.wordpress.org/trunk@2662 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-26 19:55:12 +00:00
Ryan Boren 62366e5403 Return the modified query from remove_query_arg(). Props MC_incubus fixes #1362
git-svn-id: https://develop.svn.wordpress.org/trunk@2657 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-20 02:03:35 +00:00
Ryan Boren c8b7b7e47b Return output of get_links() when calling from wp_get_links(). Props: Kafkaesqui fixes #1437
git-svn-id: https://develop.svn.wordpress.org/trunk@2656 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-20 01:40:52 +00:00
Ryan Boren 337a17904f Return output of list_cats() when calling from wp_list_cats(). Props: edavis fixes #1449
git-svn-id: https://develop.svn.wordpress.org/trunk@2655 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-20 01:30:39 +00:00
Ryan Boren 2b50612117 Add get_post_to_edit() and get_default_post_to_edit(). More post.php cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2651 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-19 02:51:48 +00:00
Ryan Boren 67846fb123 Consolidate post update code.
git-svn-id: https://develop.svn.wordpress.org/trunk@2650 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-19 01:33:38 +00:00
Ryan Boren f2d1f8460f Use default_category option if not cat specified.
git-svn-id: https://develop.svn.wordpress.org/trunk@2648 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-18 19:17:55 +00:00
Ryan Boren 15dc0c3307 Consolidate post creation code into wp_insert_post().
git-svn-id: https://develop.svn.wordpress.org/trunk@2647 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-18 19:08:38 +00:00
Ryan Boren 80f1695619 Straighten out user_id/user_ID conflict. Don't make user_id global in get_currentuserinfo() because it stomps on the local user_id in user-edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@2644 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-16 06:27:30 +00:00
Matt Mullenweg cd7cb0c110 Encode stylesheet reference. Hit tip: Scott Yang
git-svn-id: https://develop.svn.wordpress.org/trunk@2642 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-15 18:49:47 +00:00
Ryan Boren 1b4bc53f13 Wrap metavalue loop in is_array to check to avoid invalid argument warning.
git-svn-id: https://develop.svn.wordpress.org/trunk@2640 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-14 22:54:58 +00:00
Matt Mullenweg 6f9483fbe4 Typo
git-svn-id: https://develop.svn.wordpress.org/trunk@2637 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-13 08:38:42 +00:00
Matt Mullenweg f6ef88773f User data migration should be complete
git-svn-id: https://develop.svn.wordpress.org/trunk@2636 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-13 08:32:44 +00:00
Ryan Boren 8a2da7e506 Parse REQUEST_URI as a permalink if it looks permalinkish. Use reduced mod_rewrite rules by default.
git-svn-id: https://develop.svn.wordpress.org/trunk@2635 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-13 02:09:24 +00:00
Matt Mullenweg 8d1546d25f More user fixups
git-svn-id: https://develop.svn.wordpress.org/trunk@2634 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-13 00:05:41 +00:00
Matt Mullenweg 7f7c72cbe2 More user
git-svn-id: https://develop.svn.wordpress.org/trunk@2633 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-12 23:22:06 +00:00
Matt Mullenweg 47d80615b5 More user updates
git-svn-id: https://develop.svn.wordpress.org/trunk@2632 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-12 23:14:52 +00:00
Matt Mullenweg 1165caab60 Beginning of user system overhaul, TODO: update all code that deals with user data
git-svn-id: https://develop.svn.wordpress.org/trunk@2631 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-12 20:49:13 +00:00
Matt Mullenweg d535fac9bf Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@2630 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-12 20:48:07 +00:00
Ryan Boren 7d6fc8af08 Break blog header up into functional chunks. Stick it all in a WP class for now. Make wp() the front door. Move template/theme loader code into template-loader.php. Clean up feed file loadup. Modularize.
git-svn-id: https://develop.svn.wordpress.org/trunk@2627 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-10 23:15:13 +00:00
Matt Mullenweg 7212a28e17 Fix for get_author_link, fixes #1430
git-svn-id: https://develop.svn.wordpress.org/trunk@2626 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-10 23:13:19 +00:00
Matt Mullenweg a2fa5d6a70 Better headers for CGI enviroments
git-svn-id: https://develop.svn.wordpress.org/trunk@2623 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-09 00:17:43 +00:00
Matt Mullenweg 61e7a703d1 Updating IXR to latest, fixes #1400
git-svn-id: https://develop.svn.wordpress.org/trunk@2622 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-07 07:39:39 +00:00
Matt Mullenweg 472b800ab4 Better pingback extraction, fixes #1268
git-svn-id: https://develop.svn.wordpress.org/trunk@2619 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-04 10:15:36 +00:00
Matt Mullenweg f0f4effd6e Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@2617 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-27 06:14:25 +00:00
Matt Mullenweg 64e674dad8 Bad cat ID cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@2616 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-27 06:10:41 +00:00
Matt Mullenweg a2f90488a0 Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@2613 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-19 17:44:58 +00:00
Ryan Boren 0edec9ae9e Don't attempt to trackback an empty string. Fix file path in wp_get_http_headers(). This avoids 'File does not exist' server messages when processing enclosures.
git-svn-id: https://develop.svn.wordpress.org/trunk@2612 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-18 03:17:55 +00:00
Ryan Boren 239462c326 More url_to_postid() fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@2611 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-18 02:27:43 +00:00
Ryan Boren ec2938185d More url_to_postid() fixes. http://mosquito.wordpress.org/view.php?id=1324
git-svn-id: https://develop.svn.wordpress.org/trunk@2610 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-18 00:04:30 +00:00
Ryan Boren c7783bbda4 Rework url_to_postid() to handle all supported permalink structs. Helps resolve pingback URIs to posts. http://mosquito.wordpress.org/view.php?id=1324
git-svn-id: https://develop.svn.wordpress.org/trunk@2609 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-14 02:59:42 +00:00
Ryan Boren 7a561d0d00 Make sure cache is primed before use in get_category_children().
git-svn-id: https://develop.svn.wordpress.org/trunk@2608 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-14 02:57:47 +00:00
Matt Mullenweg 23be7d16b7 Newline regression - http://mosquito.wordpress.org/view.php?id=263 - Hat tip: mlittle
git-svn-id: https://develop.svn.wordpress.org/trunk@2607 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-14 00:22:30 +00:00
Matt Mullenweg 7d07dc1201 fclose removed, only use curl if we have to - http://mosquito.wordpress.org/view.php?id=1324 - hat tip: rboren
git-svn-id: https://develop.svn.wordpress.org/trunk@2606 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-13 21:53:18 +00:00