Change 'event_id' parameter to 'event' for consistency

This commit is contained in:
Brian Miyaji
2017-12-11 12:10:42 +11:00
parent dacfa8eac0
commit d1e1619780
3 changed files with 9 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ class SP_Calendar extends SP_Secondary_Post {
public $number;
/** @var int The event ID. */
public $event_id;
public $event;
/**
* __construct function.
@@ -281,8 +281,8 @@ class SP_Calendar extends SP_Secondary_Post {
);
}
if ( $this->event_id) {
$args['p'] = $this->event_id;
if ( $this->event) {
$args['p'] = $this->event;
}
if ( 'auto' === $this->date && 'any' === $this->status ) {