Skip to content

Commit 76c8a69

Browse files
authored
Define $value variable
1 parent a271bc6 commit 76c8a69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-admin/includes/image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ function wp_get_image_alttext( $file ) {
11151115
$xpath->registerNamespace( 'rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' );
11161116
$xpath->registerNamespace( 'Iptc4xmpCore', 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/' );
11171117

1118+
$value = '';
11181119
$node_list = $xpath->query( '/x:xmpmeta/rdf:RDF/rdf:Description/Iptc4xmpCore:AltTextAccessibility' );
11191120
if ( $node_list && $node_list->count() ) {
11201121

0 commit comments

Comments
 (0)