Ticket #1627: wporg-developer.patch
File wporg-developer.patch, 3.3 KB (added by , 9 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php
58 58 <dd> 59 59 <p class="desc"> 60 60 <?php if ( ! empty( $param['types'] ) ) : ?> 61 <span class="type"> (<?php echo wp_kses_post( $param['types'] ); ?>)</span>61 <span class="type"><?php printf( __( '(%s)', 'wporg' ), wp_kses_post( $param['types'] ) ); ?></span> 62 62 <?php endif; ?> 63 63 <?php if ( ! empty( $param['required'] ) && 'wp-parser-hook' !== get_post_type() ) : ?> 64 <span class="required"> (<?php echo esc_html( $param['required'] ); ?>)</span>64 <span class="required"><?php printf( __( '(%s)', 'wporg' ), esc_html( $param['required'] ) ); ?></span> 65 65 <?php endif; ?> 66 66 <?php if ( ! empty( $param['content'] ) ) : ?> 67 67 <span class="description"><?php echo param_formatting_fixup( wp_kses_post( $param['content'] ) ); ?></span> … … 211 211 <h2><?php _e( 'Changelog', 'wporg' ); ?></h2> 212 212 <ul> 213 213 <?php foreach ( $changelog_data as $version => $data ) : ?> 214 <li><?php _e( '<strong>Since:</strong> WordPress', 'wporg' ); ?> <a href="<?php echo esc_url( $data['since_url'] ); ?>"><?php echo esc_html( $version ); ?></a> <?php echo $data['description']; // escaped in get_changelog_data() ?></li> 214 <li> 215 <strong><?php _e( 'Since:', 'wporg' ); ?></strong> 216 <?php printf( 217 /* translators: %s: WordPress version */ 218 __( 'WordPress %s', 'wporg' ), 219 sprintf( '<a href="%1$s">%2$s</a>', esc_url( $data['since_url'] ), esc_html( $version ) ) 220 ); ?> 221 <?php echo $data['description']; // escaped in get_changelog_data() ?> 222 </li> 215 223 <?php endforeach; ?> 216 224 </ul> 217 225 </section> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-wp-parser-hook.php
17 17 $since = get_since(); 18 18 if ( ! empty( $since ) ) : ?> 19 19 <section class="since"> 20 <p><strong><?php _e( 'Since:</strong> WordPress' ); ?> <a href="<?php echo get_since_link( $since ); ?>"><?php echo esc_html( $since ); ?></a></p> 20 <p> 21 <strong><?php _e( 'Since:', 'wporg' ); ?></strong> 22 <?php printf( 23 /* translators: %s: WordPress version */ 24 __( 'WordPress %s', 'wporg' ), 25 sprintf( '<a href="%1$s">%2$s</a>', get_since_link( $since ), esc_html( $since ) ) 26 ); ?> 27 </p> 21 28 </section> 22 29 <?php endif; ?> 23 30 … … 55 62 <dd> 56 63 <p class="desc"> 57 64 <?php if ( ! empty( $param['types'] ) ) : ?> 58 <span class="type"> (<?php echo wp_kses_post( $param['types'] ); ?>)</span>65 <span class="type"><?php printf( __( '(%s)', 'wporg' ), wp_kses_post( $param['types'] ) ); ?></span> 59 66 <?php endif; ?> 60 67 61 68 <?php if ( ! empty( $param['content'] ) ) : ?>