Skip to content
This repository has been 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

Open
Caroline-Elisa opened this issue Nov 2, 2016 · 0 comments

Comments

@Caroline-Elisa
Copy link

Caroline-Elisa commented Nov 2, 2016

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant