Making WordPress.org


Ignore:
Timestamp:
10/25/2015 01:10:40 PM (9 years ago)
Author:
ocean90
Message:

Translate: Remove obsolete code for breadcrumbs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates/helper-functions.php

    r1938 r2005  
    1010}, 50, 4 );
    1111
    12 add_filter( 'gp_breadcrumb', function( $breadcrumb ) {
    13     $breadcrumb = preg_replace( '#<span class="separator">(.*?)</span>#', '', $breadcrumb, 1 );
    14     if ( false !== strpos( $breadcrumb, '<span class="active bubble">' ) )
    15         $breadcrumb = str_replace( '</span><span class="active bubble">', ' <span class="active bubble">', $breadcrumb ) . '</span>';
    16     return $breadcrumb;
    17 }, 11 ); // After bubble is added by lamba() in gp-templates/project.php
Note: See TracChangeset for help on using the changeset viewer.