Making WordPress.org


Ignore:
Timestamp:
10/24/2019 06:54:36 AM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Fix some HTML validation errors.

  • Remove duplicate ID's
  • Don't nest <style> under <a>

See #4730.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin.php

    r6284 r9230  
    1414$tested_up_to = (string) get_post_meta( $post->ID, 'tested', true );
    1515?>
    16 <article id="post-<?php the_ID(); ?>" <?php post_class( 'plugin-card' ); ?>>
     16<article <?php post_class( 'plugin-card' ); ?>>
    1717    <div class="entry-thumbnail">
     18        <?php
     19            $icon_parts = Template::get_plugin_icon( get_post(), 'html-parts' );
     20            echo $icon_parts['style_tag'];
     21        ?>
    1822        <a href="<?php the_permalink(); ?>" rel="bookmark">
    19             <?php
    20             // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
    21             echo Template::get_plugin_icon( get_post(), 'html' );
    22             ?>
     23            <?php echo $icon_parts['icon_tag']; ?>
    2324        </a>
    2425    </div><div class="entry">
     
    6061        </span>
    6162    </footer>
     63    <?php /* This file must not end with a new line */ ?>
    6264</article>
Note: See TracChangeset for help on using the changeset viewer.