Making WordPress.org


Ignore:
Timestamp:
06/07/2016 06:24:17 AM (8 years ago)
Author:
tellyworth
Message:

plugin-single template: provide section slug as context to the_content filter, for translation.

File:
1 edited

Legend:

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

    r3204 r3309  
    4646
    4747            <div id="<?php echo esc_attr( $section['slug'] ); ?>" class="read-more" aria-expanded="false">
    48                 <?php echo apply_filters( 'the_content', $content[ $section['slug'] ] ); ?>
     48                <?php echo apply_filters( 'the_content', $content[ $section['slug'] ], $section['slug'] ); ?>
    4949            </div>
    5050            <button type="button" class="button-link section-toggle" aria-controls="<?php echo esc_attr( $section['slug'] ); ?>"><?php _e( 'Read more', 'wporg-plugins' ); ?></button>
Note: See TracChangeset for help on using the changeset viewer.