Skip to content

Commit

Permalink
remove variable from translation function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rclations committed Aug 19, 2017
1 parent ceee91b commit e22bf1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/widgets/largo-recent-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function widget( $args, $instance ) {
global $post,
$wp_query, // grab this to copy posts in the main column
$shown_ids; // an array of post IDs already on a page so we can avoid duplicating posts;

// Preserve global $post
$preserve = $post;

Expand All @@ -45,7 +45,7 @@ function widget( $args, $instance ) {
$posts_term = of_get_option( 'posts_term_plural', 'Posts' );

// Add the link to the title.
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent ' . $posts_term, 'largo' ) : $instance['title'], $instance, $this->id_base );
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent ', 'largo' ) . $posts_term : $instance['title'], $instance, $this->id_base );

echo $before_widget;

Expand Down Expand Up @@ -235,7 +235,7 @@ function form( $instance ) {
<input class="checkbox" type="checkbox" <?php echo $show_top_term; ?> id="<?php echo $this->get_field_id( 'show_top_term' ); ?>" name="<?php echo $this->get_field_name( 'show_top_term' ); ?>" /> <label for="<?php echo $this->get_field_id( 'show_top_term' ); ?>"><?php _e( 'Show the top term on posts?', 'largo' ); ?></label>
</p>

<?php
<?php
// only show this admin if the "Post Types" taxonomy is enabled.
if ( taxonomy_exists('post-type') && of_get_option('post_types_enabled') ) {
?>
Expand Down

0 comments on commit e22bf1a

Please sign in to comment.