Changeset 9814 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
- Timestamp:
- 05/02/2020 10:50:07 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
r9813 r9814 107 107 <?php endif; ?> 108 108 <?php if ( $translation->extracted_comments ) : 109 $comments = trim( preg_replace( '/^translators:/ ', '', $translation->extracted_comments ) );110 109 ?> 111 110 <details open class="source-details__comment"> 112 111 <summary><?php _e( 'Comment', 'glotpress' ); ?></summary> 113 <p><?php echo make_clickable( esc_translation( $comments ) ); ?></p> 112 <p> 113 <?php 114 /** 115 * Filters the extracted comments of an original. 116 * 117 * @param string $extracted_comments Extracted comments of an original. 118 * @param GP_Translation $translation Translation object. 119 */ 120 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 121 echo apply_filters( 'gp_original_extracted_comments', $translation->extracted_comments, $translation ); 122 ?> 123 </p> 114 124 </details> 115 125 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.