Merge branch 'master' of https://github.com/koselig/library
Diff
src/Proxy/Query.php | 1 +
src/helpers.php | 2 ++
2 files changed, 3 insertions(+)
@@ -29,6 +29,7 @@ use WP_Query;
* @property int $foundPosts The amount of found posts for the current query.
* @property int $maxNumPages The amount of pages.
* @property int $maxNumCommentPages The amount of comment pages.
*
* @method static void init Initiates object properties and sets default values.
* @method static void parseQueryVars Reparse the query vars.
* @method static array fillQueryVars(array $array) Fills in the query variables, which do not exist within the
@@ -8,6 +8,7 @@ if (!function_exists('query')) {
* Get the main query or convert a query to a {@link \Koselig\Proxy\Query} proxy instance.
*
* @param WP_Query|null $query
*
* @return \Koselig\Proxy\Query
*/
function query(\WP_Query $query = null)
@@ -22,6 +23,7 @@ if (!function_exists('post')) {
* post.
*
* @param WP_Post|null $post
*
* @return Post|null
*/
function post(WP_Post $post = null)