Making WordPress.org

Changeset 8873


Ignore:
Timestamp:
05/27/2019 03:51:42 AM (7 years ago)
Author:
dd32
Message:

WordPress.TV: Add some @global definitions.

Props monarkpatel.
Fixes #4391.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r8458 r8873  
    133133        /**
    134134         * Outputs <link rel="prev|next"> tags for archives.
     135         * @global Pagination $paged
     136         * @global WP_Query $wp_query
    135137         */
    136138        function archive_link_rel_prev_next() {
     
    772774         * videos in the event. start_el does all the work and does not need end_el.
    773775         *
     776         * @global WordPressTV_Theme $wptv
     777         *
    774778         * @param string $output
    775779         * @param object $item
     
    779783         */
    780784        function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
     785                global $wptv;
    781786
    782787                // Skip if it's not an event item.
     
    784789                        return;
    785790                }
    786 
    787                 global $wptv;
    788791
    789792                // Use this query to fetch event videos.
Note: See TracChangeset for help on using the changeset viewer.