Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
420451b5
Commit
420451b5
authored
Feb 27, 2017
by
Erick Hitter
Browse files
Review feedback: return consistent data type
parent
6f24e805
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/class-events-store.php
View file @
420451b5
...
...
@@ -245,7 +245,7 @@ class Events_Store extends Singleton {
* Retrieve jobs given a set of parameters
*
* @param array $args
* @return array
|false
* @return array
*/
public
function
get_jobs
(
$args
)
{
global
$wpdb
;
...
...
@@ -267,7 +267,7 @@ class Events_Store extends Singleton {
if
(
is_array
(
$jobs
)
)
{
$jobs
=
array_map
(
array
(
$this
,
'format_job'
),
$jobs
);
}
else
{
$jobs
=
false
;
$jobs
=
array
()
;
}
return
$jobs
;
...
...
includes/functions.php
View file @
420451b5
...
...
@@ -92,7 +92,7 @@ function delete_event_by_id( $id, $flush_cache = false ) {
* Retrieve jobs given a set of parameters
*
* @param array $args
* @return array
|false
* @return array
*/
function
get_events
(
$args
)
{
return
Events_Store
::
instance
()
->
get_jobs
(
$args
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment