• Hi

    Just quickly checked your code.

    In inc/rest.php, you set the variable $date to be -1 month if period is equal to 3.

    But then later on, you split (explode) the $date using the ‘-‘ as separator. Wouldn’t that lead to wrong start and end dates? I mean, the start date would then be "" (empty) and the end date would be " month". Using that today I get the following values for $args used later on in WP_Query():

    Array
    (
        [post_type] => attachment
        [post_status] => any
        [posts_per_page] => 1
        [offset] => 0
        [date_query] => Array
            (
                [after] => 01/01/1970
                [before] => 10/09/2017
            )
    
    )

    Is that a bug?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d say it is. I could not regenerate images between 1 jan 2017 and 31 jan 2017. It says there are no images found.. and it kinda makes sense. (there are a LOT of images in jan.

    it is also impossible to select 2016 or earlier

    • This reply was modified 7 years, 6 months ago by arcticblue.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Period is not working (Bug?)’ is closed to new replies.