WordPress.org

Make WordPress Core

Changeset 49205


Ignore:
Timestamp:
10/19/2020 06:30:36 PM (10 months ago)
Author:
antpb
Message:

Media: Indicate if media is header video in media library.
This introduces a label to indicate if a piece of media is being used as a video header in the media library.
Props desrosj, Mista-Flo, mikeschroder.
Fixes #42929.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r49179 r49205  
    22712271            }
    22722272        }
     2273
     2274        if ( get_theme_support( 'custom-header', 'video' ) && has_header_video() ) {
     2275            $mods = get_theme_mods();
     2276            if ( isset( $mods['header_video'] ) && $post->ID === $mods['header_video'] ) {
     2277                $media_states[] = __( 'Current Header Video' );
     2278            }
     2279        }
    22732280    }
    22742281
Note: See TracChangeset for help on using the changeset viewer.