Making WordPress.org


Ignore:
Timestamp:
09/29/2020 03:59:39 AM (6 years ago)
Author:
dd32
Message:

bbPress & BuddyPress Codexes: Avoid PHP Notices from unset variables, Apply r10301 in yet another location, and remove the contributor functionality from generic archive pages (such as search results).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php

    r6366 r10308  
    1010                        ?></cite>
    1111                        <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    12                         <?php $post_authors[get_the_author_meta( 'ID' )] += 1; ?>
    1312<?php endwhile;  ?>
    1413       
    15                         <?php
    16                                 asort( $post_authors, SORT_NUMERIC );
    17                                 global $codex_contributors;
    18                                 $codex_contributors = array_reverse( $post_authors, true );
    19                         ?>
    20 
    2114<?php else : ?>
    2215                        <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
Note: See TracChangeset for help on using the changeset viewer.