Making WordPress.org

Ticket #706: 706.diff

File 706.diff, 688 bytes (added by DrewAPicture, 10 years ago)
  • functions.php

     
    508508                                                '">' . esc_html( $link ) . '</a>';
    509509                                }
    510510
     511                                // Link to hook: {@see 'pre_get_search_form'}
     512                                elseif ( 1 === preg_match( '/(&#8216;)\w+(&#8217;)/', $link, $hook ) ) {
     513                                        if ( ! empty( $hook[0] ) ) {
     514                                                $link = '<a href="' .
     515                                                        get_post_type_archive_link( 'wp-parser-hook' ) .
     516                                                        str_replace( array( '&#8216;', '&#8217;' ), '', $link ) .
     517                                                        '">' . esc_html( $link ) . '</a>';
     518                                        }
     519                                }
     520
    511521                                // Link to function: {@link esc_attr()}
    512522                                else {
    513523                                        $link = '<a href="' .