Make WordPress Core

Changeset 33714


Ignore:
Timestamp:
08/23/2015 04:33:25 PM (9 years ago)
Author:
wonderboymusic
Message:

Add a filter to _navigation_markup: 'navigation_markup_template'

Props joedolson, mordauk.
Fixes #31315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r33712 r33714  
    24242424    </nav>';
    24252425
     2426    /**
     2427     * Filter the navigation markup template.
     2428     *
     2429     * @since 4.4.0
     2430     *
     2431     * @param string $template The default template
     2432     * @param string $class The class passed by the calling function.
     2433     * @return string Navigation template.
     2434     */
     2435    $template = apply_filters( 'navigation_markup_template', $template, $class );
     2436
    24262437    return sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );
    24272438}
Note: See TracChangeset for help on using the changeset viewer.