WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #30170, comment 2


Ignore:
Timestamp:
12/05/2014 05:11:10 AM (5 years ago)
Author:
herbmillerjr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30170, comment 2

    v1 v2  
    1 I like option 3 as well. Give the user the choice of doing either or, so I'm thinking why not just swap the start and end dates before that part of the SQL query is constructed if, and only if, start date is greater than end date. I tested this with wp-admin/export.php with a couple of different combinations of blank, start, and end dates. Seems to do the trick. Don't know if there are any other parts of WP that rely on wp-admin/include/export.php though.
     1I like option 3 as well. Gives the user the choice of doing either/or, so I'm thinking why not just swap the start and end dates before that part of the SQL query is constructed if, and only if, start date is greater than end date. I tested this with wp-admin/export.php with a couple of different combinations of blank, start, and end dates. Seems to do the trick. Don't know if there are any other parts of WP that rely on wp-admin/include/export.php though.