[wp-trac] [WordPress Trac] #34115: oEmbed not working on author page without posts

WordPress Trac noreply at wordpress.org
Thu Oct 1 14:25:51 UTC 2015


#34115: oEmbed not working on author page without posts
--------------------------+-----------------------------
 Reporter:  dannydehaan   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.3.1
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 Hi All.

 We're working on a project for a client at the moment. It's a content
 publishing platform. They have multiple authors. all with their own detail
 page. At the profile edit page, they can fill their biography, they can
 also insert a youtube link.

 At the front-end, we disply the biography as:

 {{{
 <?php echo apply_filters( 'the_content', get_the_author_meta(
 'description' ) ); ?>
 }}}

 The strange thing is, that when they have authored one post, the oEmbed
 class does the job perfectly, but, when they don't have authored any post,
 the oEmbed doesn't work.

 I've looked inside the core and that led to the file "wp-includes/class-
 wp-embed.php|" at line 181. It checks if there's a post, when not, it's
 not embedding.

 When i delete this line, it works for authors without and with posts.

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


More information about the wp-trac mailing list