WordPress.org

Making WordPress.org

Changeset 2697


Ignore:
Timestamp:
03/05/2016 01:33:53 PM (4 years ago)
Author:
ocean90
Message:

Rosetta Roles: Use the new blog option for the last_updated value.

See #1590, #1352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r2651 r2697  
    629629
    630630        $project_access_list = $this->get_users_projects( $user_id );
    631 
    632         $last_updated = $wpdb->get_var( 'SELECT meta_value FROM translate_meta WHERE object_type = "gp_option" AND meta_key = "wporg_projects_last_updated"' );
     631        $last_updated = get_blog_option( WPORG_TRANSLATE_BLOGID, 'wporg_projects_last_updated' );
    633632
    634633        wp_localize_script( 'rosetta-roles', '_rosettaProjectsSettings', array(
Note: See TracChangeset for help on using the changeset viewer.