Commit Graph

79 Commits

Author SHA1 Message Date
Ryan Boren
06fc36b142 Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7667 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 17:56:58 +00:00
Ryan Boren
2bb5262cdd Move category query to get category case of get_permalink to avoid unnecessary queries. Props mdawaffe. fixes #6638 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7626 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-08 01:55:04 +00:00
Peter Westwood
414be415cd Replace the last usage of ctype_digit with is_numeric. Fixes #6534 for trunk props mtekk.
git-svn-id: https://develop.svn.wordpress.org/trunk@7588 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-02 16:18:11 +00:00
Ryan Boren
9ce77cf8d8 Fix attachment links for permalink structures containing category tag. Props andy. fixes #4699
git-svn-id: https://develop.svn.wordpress.org/trunk@7531 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 20:17:31 +00:00
Ryan Boren
f99aa53f68 use explicit attachment permalink marker for int names. Props andy. fixes #6280
git-svn-id: https://develop.svn.wordpress.org/trunk@7437 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-21 03:08:22 +00:00
Ryan Boren
df8228fa6c Attachment editing from mdawaffe. fixes #6181
git-svn-id: https://develop.svn.wordpress.org/trunk@7262 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-12 05:50:07 +00:00
Ryan Boren
3a1f2b5dcc Fix edit links for attachments. Props mdawaffe. fixes #6168
git-svn-id: https://develop.svn.wordpress.org/trunk@7250 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 21:08:09 +00:00
Ryan Boren
64aaf796c2 Use default category when getting permalink if the post has no categories assigned. Props nbachiyski. see #6083
git-svn-id: https://develop.svn.wordpress.org/trunk@7204 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-10 07:15:01 +00:00
Ryan Boren
7918daa768 get_pagenum_link filter from Martin2006. fixes #5969
git-svn-id: https://develop.svn.wordpress.org/trunk@7022 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-25 18:40:46 +00:00
Ryan Boren
da73b7408d Slug edit for pages. Hide advanced slug field if JS enabled. Trigger first autosave after 15 chars. Set autosave interval to 60s. Props filosofo. see #5749
git-svn-id: https://develop.svn.wordpress.org/trunk@6955 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 20:19:34 +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
69e33afad3 Page permalink fixes from josephscott. fixes #5781
git-svn-id: https://develop.svn.wordpress.org/trunk@6737 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-06 18:11:49 +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
Matt Mullenweg
098e6672e4 Edit permalink in place. Fixes #5679. Hat tip: nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@6633 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-17 16:51:32 +00:00
Peter Westwood
90e193bdab Notice fixing for wp-includes. See #5607 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@6592 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 20:51:07 +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
c66540fc1a Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318
git-svn-id: https://develop.svn.wordpress.org/trunk@6415 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 19:27:14 +00:00
Ryan Boren
a62059d49e get_search_feed_link and get_search_comments_feed_link from ionfish. fixes #5442
git-svn-id: https://develop.svn.wordpress.org/trunk@6413 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 18:05:21 +00:00
Ryan Boren
fb05263f15 New feed_link functions. Deprecate rss_link functions. Make default feed pluggable. Props rubys. see #5328
git-svn-id: https://develop.svn.wordpress.org/trunk@6365 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:58:15 +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
5293dfa9be Refactor next_post_link, previous_post_link. props xknown. fixes #5411
git-svn-id: https://develop.svn.wordpress.org/trunk@6359 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-05 09:25:45 +00:00
Ryan Boren
5398d5ac32 Avoid unnecesary call to get_userdata in get_permalink function. Props xknown. fixes #5414
git-svn-id: https://develop.svn.wordpress.org/trunk@6352 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-04 00:40:00 +00:00
Mark Jaquith
11e69b6820 prepare() for wp-includes/ link-template.php, post.php, general-template.php, pluggable.php, functions.php. see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@6180 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-02 18:45:47 +00:00
Mark Jaquith
381dc189dd Fix PATH_INFO first page paging link. fixes #5039
git-svn-id: https://develop.svn.wordpress.org/trunk@6152 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 06:07:03 +00:00
Ryan Boren
4d35d6b824 Always remove index.php from request before contructing page links. fixes #5000
git-svn-id: https://develop.svn.wordpress.org/trunk@6144 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 20:56:22 +00:00
Ryan Boren
759c182911 Bail if post is empty. Props mdawaffe. fixes #5019
git-svn-id: https://develop.svn.wordpress.org/trunk@6142 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 18:25:14 +00:00
Peter Westwood
41bd579f15 Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus
git-svn-id: https://develop.svn.wordpress.org/trunk@6095 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 17:46:13 +00:00
Peter Westwood
c3b56d7710 Ensure (next|previous)_post_link always have some content even when the post title is blank. Fixes #1835, props johnbillion
git-svn-id: https://develop.svn.wordpress.org/trunk@6082 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 20:05:52 +00:00
Mark Jaquith
4292b0af36 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: https://develop.svn.wordpress.org/trunk@6068 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-10 15:06:21 +00:00
Peter Westwood
a629aa8c5f 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: https://develop.svn.wordpress.org/trunk@6019 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 16:46:31 +00:00
Mark Jaquith
b47f557a49 Kill %tag%-based permalinks. fixes #4875
git-svn-id: https://develop.svn.wordpress.org/trunk@5995 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-30 19:42:34 +00:00
Ryan Boren
ba8c7d12ba Don't return permalink for non-existent post. Props Viper007Bond. fixes #4834
git-svn-id: https://develop.svn.wordpress.org/trunk@5956 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-28 18:58:54 +00:00
Ryan Boren
84df0a2453 Fix get_post_comments_feed_link() to work with pages. fixes #4637
git-svn-id: https://develop.svn.wordpress.org/trunk@5919 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-22 22:42:57 +00:00
Ryan Boren
7df77b79b9 Add some taxonomy validation. Rearrange funcs.
git-svn-id: https://develop.svn.wordpress.org/trunk@5726 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-19 00:33:44 +00:00
Ryan Boren
6177fec7fa Don't use permalinks for pending posts. see #4446
git-svn-id: https://develop.svn.wordpress.org/trunk@5716 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-15 22:11:01 +00:00
Ryan Boren
b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
rob1n
5d7ce647d2 Some more get_pagenum_link() fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@5611 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-31 03:36:40 +00:00
rob1n
3b60a5107b Fix get_pagenum_link() for query strings. fixes #3930
git-svn-id: https://develop.svn.wordpress.org/trunk@5610 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-31 03:29:44 +00:00
Ryan Boren
e0bf0ffa02 Use taxonomy instead of post2cat. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5592 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-29 16:52:31 +00:00
Mark Jaquith
1a08c04371 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: https://develop.svn.wordpress.org/trunk@5590 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-29 04:54:45 +00:00
Ryan Boren
13dade0e8d Fix category permalinks. Update cat_ID to term_id. fixes #4349 see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5576 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 18:47:08 +00:00
Ryan Boren
c9b37847ce Better draft, private, and future post/page management from mdawaffe. fixes #3945
git-svn-id: https://develop.svn.wordpress.org/trunk@5575 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 18:34:06 +00:00
Mark Jaquith
4308eff227 permalink_link() is deprecated, and should reference its replacement.
git-svn-id: https://develop.svn.wordpress.org/trunk@5569 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-28 04:39:40 +00:00
rob1n
5357b1a0af Fix get_pagenum_link(). fixes #3930
git-svn-id: https://develop.svn.wordpress.org/trunk@5481 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-16 02:47:24 +00:00
rob1n
031cf54afe Bring get_pagenum_link() into this century. Props Mark Jaquith. fixes #3930
git-svn-id: https://develop.svn.wordpress.org/trunk@5454 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 00:17:34 +00:00
Ryan Boren
386eb41adf Fix edit comment links
git-svn-id: https://develop.svn.wordpress.org/trunk@5340 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-28 16:45:47 +00:00
Ryan Boren
b9b37cd426 Consult global comment in get_comment(). Don't show empty edit links.
git-svn-id: https://develop.svn.wordpress.org/trunk@5328 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-27 03:51:36 +00:00
rob1n
b0e84dde88 get_edit_*_link() functions. fixes #4153
git-svn-id: https://develop.svn.wordpress.org/trunk@5302 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-24 23:21:56 +00:00
Ryan Boren
b749fb0711 Revert [5275] - [5277]. Fix it later. see #4153
git-svn-id: https://develop.svn.wordpress.org/trunk@5282 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-17 23:00:35 +00:00