Commit Graph

56 Commits

Author SHA1 Message Date
markjaquith 21c25b5566 prepare() for wp-includes/ link-template.php, post.php, general-template.php, pluggable.php, functions.php. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@6180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-02 18:45:47 +00:00
markjaquith c005340430 Fix PATH_INFO first page paging link. fixes #5039
git-svn-id: http://svn.automattic.com/wordpress/trunk@6152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 06:07:03 +00:00
ryan 40b7e58b82 Always remove index.php from request before contructing page links. fixes #5000
git-svn-id: http://svn.automattic.com/wordpress/trunk@6144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 20:56:22 +00:00
ryan 4a03a94051 Bail if post is empty. Props mdawaffe. fixes #5019
git-svn-id: http://svn.automattic.com/wordpress/trunk@6142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 18:25:14 +00:00
westi 223182463d Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus
git-svn-id: http://svn.automattic.com/wordpress/trunk@6095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 17:46:13 +00:00
westi 446c704af5 Ensure (next|previous)_post_link always have some content even when the post title is blank. Fixes #1835, props johnbillion
git-svn-id: http://svn.automattic.com/wordpress/trunk@6082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 20:05:52 +00:00
markjaquith d59743c972 Strip index.php/ before adding it in get_pagenum_link(). Insert index.php/ for the first page when blog is on a page. fixes #4945
git-svn-id: http://svn.automattic.com/wordpress/trunk@6068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-10 15:06:21 +00:00
westi 03d6c4d0ba Change queries in get_{next|previous}_post so that plugins can INNER JOIN on other tables with an ID column. Fixes #4822 props Cimmo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 16:46:31 +00:00
markjaquith a2cac0cf09 Kill %tag%-based permalinks. fixes #4875
git-svn-id: http://svn.automattic.com/wordpress/trunk@5995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-30 19:42:34 +00:00
ryan 666bfd2d91 Don't return permalink for non-existent post. Props Viper007Bond. fixes #4834
git-svn-id: http://svn.automattic.com/wordpress/trunk@5956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 18:58:54 +00:00
ryan f65528ed41 Fix get_post_comments_feed_link() to work with pages. fixes #4637
git-svn-id: http://svn.automattic.com/wordpress/trunk@5919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-22 22:42:57 +00:00
ryan e2dc2a8dd3 Add some taxonomy validation. Rearrange funcs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-19 00:33:44 +00:00
ryan 64d3a54b85 Don't use permalinks for pending posts. see #4446
git-svn-id: http://svn.automattic.com/wordpress/trunk@5716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-15 22:11:01 +00:00
ryan 2f09416258 Trim empty lines. Nothing but newline.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 02:25:30 +00:00
rob1n d268eae391 Some more get_pagenum_link() fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:36:40 +00:00
rob1n 544f18ce7d Fix get_pagenum_link() for query strings. fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-31 03:29:44 +00:00
ryan 6a314d85d8 Use taxonomy instead of post2cat. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 16:52:31 +00:00
markjaquith b0ffd98c95 switch to term_id and name for category sorting. see #4189. sort by term_id for category permalinks, by name for get_the_category(). fixes #4335 for trunk. Props Erik Barzeski for the find.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-29 04:54:45 +00:00
ryan 6621b8eed0 Fix category permalinks. Update cat_ID to term_id. fixes #4349 see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 18:47:08 +00:00
ryan a438f8a92a Better draft, private, and future post/page management from mdawaffe. fixes #3945
git-svn-id: http://svn.automattic.com/wordpress/trunk@5575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 18:34:06 +00:00
markjaquith 6a41f63aae permalink_link() is deprecated, and should reference its replacement.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-28 04:39:40 +00:00
rob1n 77b86e7c68 Fix get_pagenum_link(). fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-16 02:47:24 +00:00
rob1n 1fb3798eb5 Bring get_pagenum_link() into this century. Props Mark Jaquith. fixes #3930
git-svn-id: http://svn.automattic.com/wordpress/trunk@5454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 00:17:34 +00:00
ryan e5ea802c0c Fix edit comment links
git-svn-id: http://svn.automattic.com/wordpress/trunk@5340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-28 16:45:47 +00:00
ryan d44752d2ca Consult global comment in get_comment(). Don't show empty edit links.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-27 03:51:36 +00:00
rob1n 534eeaf7bc get_edit_*_link() functions. fixes #4153
git-svn-id: http://svn.automattic.com/wordpress/trunk@5302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-24 23:21:56 +00:00
ryan 49166ab920 Revert [5275] - [5277]. Fix it later. see #4153
git-svn-id: http://svn.automattic.com/wordpress/trunk@5282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-17 23:00:35 +00:00
rob1n 47de90d17a Fix another typo. Not a good day at all.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-17 01:17:45 +00:00
rob1n 37d7ae825b Fix typo. Thanks Lloyd.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-17 00:53:58 +00:00
rob1n 763828ed10 Add get_edit_comment_link() and get_edit_post_link(). fixes #4153
git-svn-id: http://svn.automattic.com/wordpress/trunk@5275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-16 23:53:34 +00:00
rob1n 0e669f143d Replace some stristr's with stripos'.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-12 21:59:31 +00:00
matt c86599b85c Now tag pretty permalinks should work, and support custom tag bases.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-31 09:19:32 +00:00
matt 7602d17899 (int)er the dragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-23 00:59:21 +00:00
ryan 9f9d9a8d9e Cast to int. Props xknown. fixes #4012 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-22 01:04:19 +00:00
markjaquith 611b037efa use clean_url() instead of attribute_escape() when dealing with src/href to protect against XSS. props xknown. fixes #3986 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-17 08:46:59 +00:00
markjaquith 28c0f0d0ee Sanitize output of previous_posts() and next_posts(). Props Alex Concha for the report.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-16 08:04:24 +00:00
markjaquith de23b425c3 new function: untrailingslashit(). fixes #3899
git-svn-id: http://svn.automattic.com/wordpress/trunk@5020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-10 06:25:33 +00:00
markjaquith 05486cce3d user_trailingslashit filter for users who sometimes want trailing slashes only on certain URL types. fixes #3899
git-svn-id: http://svn.automattic.com/wordpress/trunk@5019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-10 06:18:43 +00:00
markjaquith 3320dd1380 Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920
git-svn-id: http://svn.automattic.com/wordpress/trunk@4990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-07 05:29:15 +00:00
ryan 8d7839b14c Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623
git-svn-id: http://svn.automattic.com/wordpress/trunk@4983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-07 03:05:41 +00:00
markjaquith d0f79bb3f2 trailing tabs and whitespace cleanup.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-27 15:24:54 +00:00
ryan 6dd7765ae1 Add get_post_comments_feed_link() and have popup comments templates use it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-23 08:31:07 +00:00
markjaquith dfeeedc8da Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485
git-svn-id: http://svn.automattic.com/wordpress/trunk@4886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-15 07:07:12 +00:00
ryan efea3d66fc Prev/next query filters. Props mdwaffe. fixes #2415
git-svn-id: http://svn.automattic.com/wordpress/trunk@4721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-01-11 04:30:44 +00:00
ryan 6c31c17921 Avoid infinite loop when getting attachment link.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-12-12 22:50:54 +00:00
ryan 9f534ebae6 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: http://svn.automattic.com/wordpress/trunk@4495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-11-19 07:56:05 +00:00
ryan fd46e4b1f6 Fix attachment links for page on front. Props mdawaffe. fixes #2515
git-svn-id: http://svn.automattic.com/wordpress/trunk@4475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-11-17 20:00:11 +00:00
ryan 92bacd1a91 Remove paging by days. fixes #3341
git-svn-id: http://svn.automattic.com/wordpress/trunk@4457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-11-08 21:22:35 +00:00
ryan 19942073ea Use FOUND_ROWS to calculate the max number of pages. Need to cleanup/eliminate _max_num_pages().
git-svn-id: http://svn.automattic.com/wordpress/trunk@4455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-11-08 09:13:11 +00:00
markjaquith 21586ee6b6 [4432] missed "comment => c" conversion in edit_comment_link(). Props tinyau. fixes #3309
git-svn-id: http://svn.automattic.com/wordpress/trunk@4436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-10-31 06:13:43 +00:00