Ticket #55664: 55664.diff
File 55664.diff, 3.5 KB (added by , 3 years ago) |
---|
-
src/wp-includes/embed.php
1151 1151 if ( is_404() ) { 1152 1152 return; 1153 1153 } 1154 1155 $share_tab_wordpress_id = uniqid( 'wp-embed-share-tab-wordpress-' ); 1156 $share_tab_html_id = uniqid( 'wp-embed-share-tab-html-' ); 1157 $description_wordpress_id = uniqid( 'wp-embed-share-description-wordpress-' ); 1158 $description_html_id = uniqid( 'wp-embed-share-description-html-' ); 1154 1159 ?> 1155 1160 <div class="wp-embed-share-dialog hidden" role="dialog" aria-label="<?php esc_attr_e( 'Sharing options' ); ?>"> 1156 1161 <div class="wp-embed-share-dialog-content"> … … 1157 1162 <div class="wp-embed-share-dialog-text"> 1158 1163 <ul class="wp-embed-share-tabs" role="tablist"> 1159 1164 <li class="wp-embed-share-tab-button wp-embed-share-tab-button-wordpress" role="presentation"> 1160 <button type="button" role="tab" aria-controls=" wp-embed-share-tab-wordpress" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed' ); ?></button>1165 <button type="button" role="tab" aria-controls="<?php echo $share_tab_wordpress_id; ?>" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed' ); ?></button> 1161 1166 </li> 1162 1167 <li class="wp-embed-share-tab-button wp-embed-share-tab-button-html" role="presentation"> 1163 <button type="button" role="tab" aria-controls=" wp-embed-share-tab-html" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed' ); ?></button>1168 <button type="button" role="tab" aria-controls="<?php echo $share_tab_html_id; ?>" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed' ); ?></button> 1164 1169 </li> 1165 1170 </ul> 1166 <div id=" wp-embed-share-tab-wordpress" class="wp-embed-share-tab" role="tabpanel" aria-hidden="false">1167 <input type="text" value="<?php the_permalink(); ?>" class="wp-embed-share-input" aria- describedby="wp-embed-share-description-wordpress" tabindex="0" readonly/>1171 <div id="<?php echo $share_tab_wordpress_id; ?>" class="wp-embed-share-tab" role="tabpanel" aria-hidden="false"> 1172 <input type="text" value="<?php the_permalink(); ?>" class="wp-embed-share-input" aria-label="<?php esc_attr_e( 'URL' ); ?>" aria-describedby="<?php echo $description_wordpress_id; ?>" tabindex="0" readonly/> 1168 1173 1169 <p class="wp-embed-share-description" id=" wp-embed-share-description-wordpress">1174 <p class="wp-embed-share-description" id="<?php echo $description_wordpress_id; ?>"> 1170 1175 <?php _e( 'Copy and paste this URL into your WordPress site to embed' ); ?> 1171 1176 </p> 1172 1177 </div> 1173 <div id=" wp-embed-share-tab-html" class="wp-embed-share-tab" role="tabpanel" aria-hidden="true">1174 <textarea class="wp-embed-share-input" aria- describedby="wp-embed-share-description-html" tabindex="0" readonly><?php echo esc_textarea( get_post_embed_html( 600, 400 ) ); ?></textarea>1178 <div id="<?php echo $share_tab_html_id; ?>" class="wp-embed-share-tab" role="tabpanel" aria-hidden="true"> 1179 <textarea class="wp-embed-share-input" aria-label="<?php esc_attr_e( 'HTML' ); ?>" aria-describedby="<?php echo $description_html_id; ?>" tabindex="0" readonly><?php echo esc_textarea( get_post_embed_html( 600, 400 ) ); ?></textarea> 1175 1180 1176 <p class="wp-embed-share-description" id=" wp-embed-share-description-html">1181 <p class="wp-embed-share-description" id="<?php echo $description_html_id; ?>"> 1177 1182 <?php _e( 'Copy and paste this code into your site to embed' ); ?> 1178 1183 </p> 1179 1184 </div>