[wp-trac] Re: [WordPress Trac] #4604: The author feed _always_ delivers full content

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 11 14:39:25 GMT 2007


#4604: The author feed _always_ delivers full content
---------------------+------------------------------------------------------
 Reporter:  gnot     |        Owner:  anonymous   
     Type:  defect   |       Status:  new         
 Priority:  high     |    Milestone:  2.4 (future)
Component:  General  |      Version:  2.2.1       
 Severity:  normal   |   Resolution:              
 Keywords:  feed     |  
---------------------+------------------------------------------------------
Comment (by Otto42):

 Replying to [comment:3 gnot]:
 > Assuming that the author's ''ID'' is '''1''', visit:
 > {{{
 > http://example.org/wp-rss2.php?author=1
 > http://example.org/wp-atom.php?author=1
 > http://example.org/wp-rdf.php?author=1
 > }}}
 >
 > The <!--more--> tag is ignored.
 >
 > Indeed, it '''does not''' occur when using the permalink, eg
 > {{{
 > http://example.org/author/USERNAME/feed/
 > }}}
 >
 > If you still cannot reproduce it, I will test it in a fresh wp
 installation. Didn't have the time to do so.

 I have yet to test it that way, however:
 http://example.org/wp-rss2.php

 Is not a valid feed URL. Feed url's should always be one of the following:
 http://example.org/feed/
 http://example.org/?feed=rss2
 http://example.org/index.php?feed=rss2

 Calling wp-rss2 or any of those php files directly is very likely going to
 give you different results. This is why using any of the functions in
 WordPress that actually *generate* the feed URLs will never, ever, give
 you a direct link to those PHP files.

 As for your specific problem with these author URLs, while I cannot say
 that that is intended behavior, I could explain why it happens. But I can
 also tell you that if you use the internal WP functions to generate feed
 links (like get_author_rss_link() ), you won't be getting back
 http://example.org/wp-rss2.php?author=1, ever.

 I recommend you use the get_author_rss_link() function to get author feed
 links instead of trying to build them yourself. Or, at least, use normal
 feed links and don't directly link to files outside of the normal
 execution path.

 I also recommend closing this ticket as invalid, but I'll leave that call
 to somebody else.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4604#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list