[wp-trac] [WordPress Trac] #57337: Docs: WP Theme class reference properties don't match code

WordPress Trac noreply at wordpress.org
Fri Dec 16 04:31:00 UTC 2022


#57337: Docs: WP Theme class reference properties don't match code
---------------------------+-----------------------------
 Reporter:  bertvandepoel  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  docs           |
---------------------------+-----------------------------
 I was developing a plugin based on the information on
 https://developer.wordpress.org/reference/classes/wp_theme/ . This page
 implies that I should be able to get the theme author using the Author
 property and the URI of the Author's website using the AuthorURI property.
 However, in reality the AuthorURI property is always NULL and the Author
 property contains the author embedded inside an <a> tag with the
 AuthorURI. The docs should more clearly reflect this, and ideally mention
 a way to get the bare Author and URI (I ended up not finding a way to even
 do this, so I'm parsing the HTML now, really silly).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57337>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list