Skip to content
This repository was archived by the owner on May 15, 2019. It is now read-only.
This repository was archived by the owner on May 15, 2019. It is now read-only.

the_title() in share links returning the title plus <br class="fee-title" /> #303

@Caroline-Elisa

Description

@Caroline-Elisa

Expected behaviour and actual behaviour

Using the_title() in share links, expecting to get only title. Link code:

<a href='https://twitter.com/intent/tweet?source=<?php the_permalink(); ?>&text=<?php the_title(); ?>:%20<?php the_permalink(); ?>' target='_blank' title='Tweet'>Tweet</a>

However when logged in to WP the_title() returns the page title plus <br class="fee-title" />

https://monosnap.com/file/mWVkaiGdsydGu18I6TnyfzVpYqHdyA

Specifications

  • Browser Name and Version: Chrome, firefox, likely others
  • WordPress Version: 4.6.1
  • Plugin Version: 2.2.1
  • Theme name/URL: Custom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions