Making WordPress.org

Ticket #2801: 2801.diff

File 2801.diff, 1.7 KB (added by pbiron, 8 years ago)
  • inc/template-tags.php

    diff --git a/inc/template-tags.php b/inc/template-tags.php
    index 22272a6..b587038 100644
    a b namespace DevHub { 
    534534                $args_strings = array();
    535535                $types        = array();
    536536
     537                if ( 'wp-parser-class' == get_post_type( $post_id ) ) {
     538                        return $signature ;
     539                }
     540
    537541                if ( $tags ) {
    538542                        foreach ( $tags as $tag ) {
    539543                                if ( is_array( $tag ) && 'param' == $tag['name'] ) {
  • reference/template-related.php

    diff --git a/reference/template-related.php b/reference/template-related.php
    index 8c78f95..688da2b 100644
    a b if ( show_usage_info() ) : 
    2929                                                ?>
    3030                                                <li>
    3131                                                        <span><?php echo esc_attr( get_source_file() ); ?>:</span>
    32                                                         <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
     32                                                        <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if (!in_array( get_post_type(), array( 'wp-parser-class', 'wp-parser-hook' ) ) ) : ?>()<?php endif; ?></a>
    3333                                                </li>
    3434                                        <?php endwhile; wp_reset_postdata(); ?>
    3535                                        <?php if ( $uses->post_count > $uses_to_show ) : ?>
    if ( show_usage_info() ) : 
    5858                                        ?>
    5959                                        <li>
    6060                                                <span><?php echo esc_attr( get_source_file() ); ?>:</span>
    61                                                 <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( 'wp-parser-hook' !== get_post_type() ) : ?>()<?php endif; ?></a>
     61                                                <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if (!in_array( get_post_type(), array( 'wp-parser-class', 'wp-parser-hook' ) ) ) : ?>()<?php endif; ?></a>
    6262                                        </li>
    6363                                <?php endwhile; wp_reset_postdata(); ?>
    6464                                <?php if ( $used_by->post_count > $used_by_to_show ) : ?>