Making WordPress.org

Changeset 4403


Ignore:
Timestamp:
11/22/2016 09:29:39 PM (10 years ago)
Author:
iandunn
Message:

Central Theme: Update number of countries that have had a WordCamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r3967 r4403  
    326326
    327327                set_transient( $transient_key, $markers, WEEK_IN_SECONDS );
     328                        // todo this should probably be changed to just DAY_IN_SECONDS to avoid confusion among organizers. -- https://wordpress.slack.com/archives/meta-wordcamp/p1477323414000597
     329                        // need to understand why it was set for so long in the first place, and test change
     330                        // should just always display cached data and have cron job to refresh asyncronously
    328331
    329332                return $markers;
    … …  
    828831                        }
    829832
     833                        // @todo generate countries automatically from _venue_country_code field, but need to populate older camps first
     834
    830835                        // Compile the results
    831836                        $map_stats = array(
    832837                                'wordcamps'  => $wordcamps->found_posts,
    833838                                'cities'     => count( $cities ),
    834                                 'countries'  => 48,
     839                                'countries'  => 65,
    835840                                'continents' => 6,
    836841                        );
Note: See TracChangeset for help on using the changeset viewer.