WordPress.org

Making WordPress.org

Changeset 10464


Ignore:
Timestamp:
11/25/2020 04:53:14 AM (13 months ago)
Author:
dd32
Message:

WordPress.TV: Remove the recordedAt property from the schema data, as we don't have the required information to fully fill out the Event type.

See #5512.

File:
1 edited

Legend:

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

    r10463 r10464  
    210210            }
    211211
     212            /*
    212213            foreach ( get_the_terms( $post, 'event' ) as $event ) {
    213214                $video_data['recordedAt'][] = [
    214                     '@type' => 'Event',
    215                     'name'  => $event->name,
    216                     'url'   => get_term_link( $event ),
     215                    '@type'     => 'Event',
     216                    'name'      => $event->name,
     217                    'url'       => get_term_link( $event ),
     218                    'location'  => '', // City is stored in Categories.
     219                    'startDate' => '', // Year is stored in Categories, but not event date.
    217220                ];
    218221            }
     222            */
    219223
    220224            $data[] = array_filter( $video_data, function( $item ) {
Note: See TracChangeset for help on using the changeset viewer.