Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coding standards issue #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions wpmeetup-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct() {
* @return array
*/
public function get_meetups() {
$meetups = [];
$meetups = array();

$api_data = get_transient( 'wpmg_wpmeetup_meetups' );

Expand Down Expand Up @@ -87,10 +87,10 @@ public function get_meetups() {
*/
public function widget( $args, $instance ) {

echo $args['before_widget']; // WPCS: XSS okay.
echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput

if ( ! empty( $instance['title'] ) ) {
echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; // WPCS: XSS okay.
echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput
}

$widget_args = apply_filters(
Expand Down Expand Up @@ -127,7 +127,7 @@ public function widget( $args, $instance ) {
<ul class="menu">
<?php foreach ( $meetups as $meetup ) : ?>
<li class="menu-item">
<a href="<?php echo esc_attr( $meetup['url'] ); ?>" title="WP Meetup <?php echo esc_attr( $meetup['title'] ); ?>" <?php echo $link_atts; // WPCS: XSS okay. ?>>
<a href="<?php echo esc_attr( $meetup['url'] ); ?>" title="WP Meetup <?php echo esc_attr( $meetup['title'] ); ?>" <?php echo $link_atts; // phpcs:ignore WordPress.Security.EscapeOutput ?>>
<?php echo esc_html( $meetup['title'] ); ?>
</a>
</li>
Expand All @@ -138,7 +138,7 @@ public function widget( $args, $instance ) {

<?php

echo $args['after_widget']; // WPCS: XSS okay.
echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput
}

/**
Expand Down