Make WordPress Core

Ticket #30296: 30296-space.diff

File 30296-space.diff, 714 bytes (added by philiparthurmoore, 11 years ago)

With Space

  • functions.php

     
    294294 */
    295295function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
    296296        if ( 'primary' == $args->theme_location && $item->description ) {
    297                 $item_output = str_replace( $args->link_after . '</a>', '<span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output );
     297                $item_output = str_replace( $args->link_after . '</a>', ' <span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output );
    298298        }
    299299
    300300        return $item_output;