Ticket #55664: 55664.2.diff
File 55664.2.diff, 3.6 KB (added by , 2 years ago) |
---|
-
src/wp-includes/embed.php
1151 1151 if ( is_404() ) { 1152 1152 return; 1153 1153 } 1154 1155 $unique_suffix = get_the_ID() . '-' . wp_rand(); 1156 $share_tab_wordpress_id = 'wp-embed-share-tab-wordpress-' . $unique_suffix; 1157 $share_tab_html_id = 'wp-embed-share-tab-html-' . $unique_suffix; 1158 $description_wordpress_id = 'wp-embed-share-description-wordpress-' . $unique_suffix; 1159 $description_html_id = 'wp-embed-share-description-html-' . $unique_suffix; 1154 1160 ?> 1155 1161 <div class="wp-embed-share-dialog hidden" role="dialog" aria-label="<?php esc_attr_e( 'Sharing options' ); ?>"> 1156 1162 <div class="wp-embed-share-dialog-content"> … … 1157 1163 <div class="wp-embed-share-dialog-text"> 1158 1164 <ul class="wp-embed-share-tabs" role="tablist"> 1159 1165 <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>1166 <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 1167 </li> 1162 1168 <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>1169 <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 1170 </li> 1165 1171 </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/>1172 <div id="<?php echo $share_tab_wordpress_id; ?>" class="wp-embed-share-tab" role="tabpanel" aria-hidden="false"> 1173 <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 1174 1169 <p class="wp-embed-share-description" id=" wp-embed-share-description-wordpress">1175 <p class="wp-embed-share-description" id="<?php echo $description_wordpress_id; ?>"> 1170 1176 <?php _e( 'Copy and paste this URL into your WordPress site to embed' ); ?> 1171 1177 </p> 1172 1178 </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>1179 <div id="<?php echo $share_tab_html_id; ?>" class="wp-embed-share-tab" role="tabpanel" aria-hidden="true"> 1180 <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 1181 1176 <p class="wp-embed-share-description" id=" wp-embed-share-description-html">1182 <p class="wp-embed-share-description" id="<?php echo $description_html_id; ?>"> 1177 1183 <?php _e( 'Copy and paste this code into your site to embed' ); ?> 1178 1184 </p> 1179 1185 </div>