Support » Plugin: wp-Typography » All-caps link titles in Links widget are wrapped in span

  • Resolved topdownjimmy

    (@topdownjimmy)


    With wp-typography activated and the “Caps” option turned on, any all-caps WordPress “Links” that appear in a Links widget have <span class="caps"> wrapped around them.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author pepe

    (@pputzer)

    Thanks for the report. It looks like this is a bug in wp-Typography that has been more or less forever. I wanted to classify it as WordPress Core bug initially, but since that code is so ancient, there is no point in creating a ticket for this.

    I’ll remove the filter in the next release of wp-Typography. Meanwhile, you can disable the filtering via \remove_filter( 'link_name', [ \WP_Typography::get_instance(), 'process' ], 9999 );

    Thread Starter topdownjimmy

    (@topdownjimmy)

    Thanks Pepe. Where would this code go? In my themes functions.php?

    Plugin Author pepe

    (@pputzer)

    Yes, into functions.php.

    Thread Starter topdownjimmy

    (@topdownjimmy)

    Thanks, though that doesn’t seem to be working for me.

    Thread Starter topdownjimmy

    (@topdownjimmy)

    Ah ok, of course, I had to add it as an action:

    add_action( 'wp_loaded', function() {
      remove_filter( 'link_name', array( WP_Typography::get_instance(), 'process' ), 9999 );
    });
    Plugin Author pepe

    (@pputzer)

    Will be fixed in 5.7.2.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All-caps link titles in Links widget are wrapped in span’ is closed to new replies.