Making WordPress.org

Changeset 10236


Ignore:
Timestamp:
09/03/2020 08:05:32 PM (3 years ago)
Author:
ryelle
Message:

Events API: Bring WordCamps back into events results

A null value in meetup_url caused this clause to return false, effectively removing all WordCamps from the online events list. A null meetup_url is valid, so this captures those events while also excluding the Learn meetup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r10223 r10236  
    743743         * in the future if that's desired. If we do that, the Codex documentation should be updated.
    744744         */
    745         "meetup_url <> 'https://www.meetup.com/learn-wordpress-discussions/' "
     745        "( `meetup_url` IS NULL OR `meetup_url` <> 'https://www.meetup.com/learn-wordpress-discussions/' ) "
    746746    );
    747747
Note: See TracChangeset for help on using the changeset viewer.