Making WordPress.org

Ticket #407: 407.2.diff

File 407.2.diff, 1.3 KB (added by iandunn, 11 years ago)

Switch to HTTP and fix location field typo

  • official-wordpress-events.php

     
    77*/
    88
    99class Official_WordPress_Events {
    10         const WORDCAMP_API_BASE_URL = 'https://central.wordcamp.org/wp-json.php';
     10        const WORDCAMP_API_BASE_URL = 'http://central.wordcamp.org/wp-json.php';
    1111        const MEETUP_API_BASE_URL   = 'https://api.meetup.com/';
    1212        const MEETUP_MEMBER_ID      = 72560962;
    1313        const POSTS_PER_PAGE        = 50;
     
    1616        /*
    1717         * @todo
    1818         *
    19          * Setup `owe_error_email_addresses` callback and MEETUP_API_KEY, etc when deploy to production
    2019         * Ability to feature a camp in a hero area
    2120         * Add a "load more" button that retrieves more events via AJAX and updates the DOM. Have each click load the next month of events?
     21         * Update WORDCAMP_API_BASE_URL to use HTTPS when central.wordcamp.org supports it
    2222         */
    2323
    2424
     
    9494                                        'url'             => $wordcamp->post_meta->URL[0],
    9595                                        'start_timestamp' => $wordcamp->post_meta->{'Start Date (YYYY-mm-dd)'}[0],
    9696                                        'end_timestamp'   => $wordcamp->post_meta->{'End Date (YYYY-mm-dd)'}[0],
    97                                         'localtion'       => $wordcamp->post_meta->Location[0]
     97                                        'location'        => $wordcamp->post_meta->Location[0],
    9898                                ) );
    9999                        }
    100100                }