Make WordPress Core

Ticket #31315: 31315.patch

File 31315.patch, 745 bytes (added by joedolson, 10 years ago)

Add filter to _navigation_markup template.

  • wp-includes/link-template.php

     
    24012401                <h2 class="screen-reader-text">%2$s</h2>
    24022402                <div class="nav-links">%3$s</div>
    24032403        </nav>';
     2404        /**
     2405         * Filter the navigation markup template.
     2406         *
     2407         * @since 4.2.0
     2408         *
     2409         * @param string $template The default template
     2410         * @param string $class The class passed by the calling function.
     2411         * @return string Navigation template.
     2412         */
     2413        apply_filters( 'navigation_markup_template', $template, $class );
    24042414
    24052415        return sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );
    24062416}