Making WordPress.org

Ticket #4115: 4115.single.diff

File 4115.single.diff, 3.5 KB (added by dufresnesteven, 5 years ago)

Update plugin details page headings

  • wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php

    diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
    index 3cc93c93b..5d579a3de 100644
    class Meta extends \WP_Widget { 
    3333                echo $args['before_widget'];
    3434                ?>
    3535
    36                 <h3 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Meta', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); ?></h3>
     36                <h2 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Meta', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); ?></h2>
    3737
    3838                <ul>
    3939                        <?php if ( $built_for = get_the_term_list( $post->ID, 'plugin_built_for', '', ', ' ) ) : ?>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php
    index 1b30dc89d..75daee005 100644
     
    1010namespace WordPressdotorg\Plugin_Directory\Theme;
    1111
    1212$widget_args = array(
    13         'before_title' => '<h4 class="widget-title">',
    14         'after_title'  => '</h4>',
     13        'before_title' => '<h2 class="widget-title">',
     14        'after_title'  => '</h2>',
    1515);
    1616
    1717the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args );
    if ( current_user_can( 'plugin_admin_view', $post ) ) { 
    2828}
    2929
    3030the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
    31         'before_title'  => '<h4 class="widget-title">',
    32         'after_title'   => '</h4>',
     31        'before_title'  => '<h2 class="widget-title">',
     32        'after_title'   => '</h2>',
    3333        'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors">',
    3434        'after_widget'  => '</div>',
    3535) );
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php
    index ee54abe58..feb92ccdc 100644
     
    1010namespace WordPressdotorg\Plugin_Directory\Theme;
    1111
    1212$widget_args = array(
    13         'before_title' => '<h3 class="widget-title">',
    14         'after_title'  => '</h3>',
     13        'before_title' => '<h2 class="widget-title">',
     14        'after_title'  => '</h2>',
    1515);
    1616
    1717the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args );
    1818the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args );
    1919the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
    2020the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
    21         'before_title'  => '<h4 class="widget-title">',
    22         'after_title'   => '</h4>',
     21        'before_title'  => '<h2 class="widget-title">',
     22        'after_title'   => '</h2>',
    2323        'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors">',
    2424        'after_widget'  => '</div>',
    2525) );