Making WordPress.org


Ignore:
Timestamp:
09/30/2015 07:56:08 PM (9 years ago)
Author:
obenland
Message:

WP.org Themes: Add post meta with current live version.

To improve theme ordering in localized repositories we need to be able to query
for translations specifically for the version that is currently live.
The _status meta field does not work for that unfortunately.

See [dotorg10905].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r1884 r1930  
    340340    ) );
    341341
     342    // Update current version. Used to prioritize localized themes.
     343    update_post_meta( $post_id, '_live_version', $version );
     344
    342345    /*
    343346     * Bail if we're activating an old version, the author does not need to be
     
    876879    foreach ( $posts as $post ) {
    877880        wporg_themes_glotpress_import( $post, 'inactive' );
    878     }   
     881    }
    879882}
    880883add_action( 'wporg_themes_check_for_old_themes', 'wporg_themes_check_for_old_themes' );
Note: See TracChangeset for help on using the changeset viewer.