Making WordPress.org


Ignore:
Timestamp:
04/27/2014 07:49:24 AM (12 years ago)
Author:
coffee2code
Message:

Use strrpos() to find last ':' in class method name rather than counting from strpos()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php

    r561 r570  
    102102                                <?php
    103103                                        $title = get_the_title( $child );
    104                                         $pos = ( $i = strpos( $title, ':' ) ) ? $i + 2 : 0;
     104                                        $pos = ( $i = strrpos( $title, ':' ) ) ? $i + 1 : 0;
    105105                                        echo substr( $title, $pos );
    106106                                ?></a>
Note: See TracChangeset for help on using the changeset viewer.