[wp-trac] [WordPress Trac] #10978: get_queried_object bug for else/if statement is_author query.php

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 19 17:27:01 UTC 2009


#10978: get_queried_object bug for else/if statement is_author query.php
--------------------------+-------------------------------------------------
 Reporter:  eddie.gomez   |        Owner:            
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:  Unassigned
Component:  General       |      Version:            
 Severity:  normal        |   Resolution:  fixed     
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by eddie.gomez):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 nvrmnd - found true culprit - dont know if this is isolated incident - the
 problem with the author id not being set properly was because the
 user_nicename was being stored in our DB w/o special characters (I should
 say that our usernames are set out our company emails).  The query
 variables we're not stripping the dot and thus in function &get_posts(),
 towards the bottom the block commented with "// Author stuff for nice
 URLs" the user_nicename and $q['author_name'] where not matching.  Went
 ahead and stripped out the dot in the author_name and that resolved the
 issue.  Please ignore previous msg, I went ahead and reverted back the
 code and simply stripped out the dot in the username

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10978#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list