Make WordPress Core

Ticket #31315: 31315.2.patch

File 31315.2.patch, 724 bytes (added by mordauk, 10 years ago)
  • src/wp-includes/link-template.php

     
    24022402                <div class="nav-links">%3$s</div>
    24032403        </nav>';
    24042404
     2405        /**
     2406         * Filter the navigation markup template.
     2407         *
     2408         * @since 4.2.0
     2409         *
     2410         * @param string $template The default template
     2411         * @param string $class The class passed by the calling function.
     2412         * @return string Navigation template.
     2413         */
     2414        $template = apply_filters( 'navigation_markup_template', $template, $class );
     2415
    24052416        return sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );
    24062417}
    24072418