WordPress.org

Making WordPress.org

Ticket #3009: 3009.diff

File 3009.diff, 1.1 KB (added by afzalmultani, 5 months ago)

Fix for Multiple placeholders should be ordered. Expected '%1$s, %2$s', but got %s, %s.

  • buddypress.org/public_html/wp-content/themes/bb-base/archive.php

     buddypress.org/public_html/wp-content/themes/bb-base/archive.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git buddypress.org/public_html/wp-content/themes/bb-base/archive.php buddypress.org/public_html/wp-content/themes/bb-base/archive.php
    index 27c92460..f05f79e8 100644
     
    11<?php get_header(); ?> 
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> 
    33                        <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> 
    4                         <cite><?php printf( __( 'Published on %s by %s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite> 
     4                        <cite><?php printf( __( 'Published on %1$s by %2$s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite> 
    55                        <div class="single-post archive" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div> 
    66<?php endwhile;  else : ?> 
    77                        <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>