Ticket #5142: 5142.diff
File 5142.diff, 2.0 KB (added by , 5 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php
166 166 <h4><a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>"><?php _e( 'News From Our Blog', 'wporg' ); ?></a></h4> 167 167 168 168 <?php 169 $featured = new \WP_Query( [ 170 'posts_per_page' => 1, 171 'post_status' => 'publish', 172 'ignore_sticky_posts' => true, 173 'no_found_rows' => true, 174 ] ); 169 $featured = new \WP_Query( 170 array( 171 'posts_per_page' => 1, 172 'post_status' => 'publish', 173 'ignore_sticky_posts' => true, 174 'no_found_rows' => true, 175 ) 176 ); 175 177 176 178 while ( $featured->have_posts() ) : 177 179 $featured->the_post(); … … 254 256 <?php else : ?> 255 257 <ul id="notable-users" class="notable-users"> 256 258 <?php 257 $user_links = [259 $user_links = array( 258 260 'rollingstones' => 'https://wordpress.org/showcase/the-rolling-stones/', 259 261 'people' => 'https://wordpress.org/showcase/stylewatch-off-the-rack/', 260 262 'playstation' => 'https://wordpress.org/showcase/playstationblog/', 261 263 'blondie' => 'https://wordpress.org/showcase/blondie/', 262 264 'marthastewart' => 'https://wordpress.org/showcase/themarthablog/', 263 ];265 ); 264 266 265 267 foreach ( array_rand( $user_links, 3 ) as $slug ) : 266 268 printf( … … 273 275 </ul> 274 276 <?php endif; ?> 275 277 276 <a class="showcase-link" href="https://wordpress.org/showcase/"><?php _e( ' … and hundreds more', 'wporg' ); ?></a>278 <a class="showcase-link" href="https://wordpress.org/showcase/"><?php _e( 'and hundreds more…', 'wporg' ); ?></a> 277 279 </div> 278 280 </div> 279 281