diff --git a/includes/core/class-query.php b/includes/core/class-query.php index 9f795db3..9d7b0381 100644 --- a/includes/core/class-query.php +++ b/includes/core/class-query.php @@ -1,25 +1,23 @@ wp_pages ) && ! empty( $this->wp_pages ) ){ @@ -107,13 +105,12 @@ if ( ! class_exists( 'um\core\Query' ) ) { return $array; } - /** * Get all forms * * @return mixed */ - function forms() { + public function forms() { $results = array(); $args = array( @@ -130,16 +127,14 @@ if ( ! class_exists( 'um\core\Query' ) ) { return $results; } - /** * Do custom queries * - * @param $args + * @param array $args * * @return array|bool|int|\WP_Query */ public function make( $args ) { - $defaults = array( 'post_type' => 'post', 'post_status' => array( 'publish' ), @@ -150,40 +145,37 @@ if ( ! class_exists( 'um\core\Query' ) ) { return false; } - if ( 'comment' === $args['post_type'] ) { // comments - + if ( 'comment' === $args['post_type'] ) { + // Comments query. unset( $args['post_type'] ); - /** - * Filters extend excluded comment types + * Filters excluded comment types. * - * @since 2.0 + * @since 1.3.x * @hook um_excluded_comment_types * - * @param {array} $types Comment Types. + * @param {array} $types Comment Types. * - * @return {array} $types Comment Types. + * @return {array} Comment Types. * * @example