WordPress.org

Making WordPress.org

Changeset 3228


Ignore:
Timestamp:
05/24/2016 11:34:06 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Update a missed taxonomy name and correct a typo.

See #1579, #1573

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r3022 r3228  
    6767        if ( get_post_meta( $post_id, 'header_author_uri', true ) ) {
    6868            $result['author'] = sprintf( '<a href="%s">%s</a>', get_post_meta( $post_id, 'header_author_uri', true ), get_post_meta( $post_id, 'header_author', true ) );
    69         } elseif ( get_post_meta( $post_id, 'header_aufthor', true )  ) {
    70             $result['author'] = get_post_meta( $post_id, 'header_aufthor', true );
     69        } elseif ( get_post_meta( $post_id, 'header_author', true )  ) {
     70            $result['author'] = get_post_meta( $post_id, 'header_author', true );
    7171        } else {
    7272            $result['author'] = get_user_by( 'id', $post->post_author )->display_name;
     
    113113
    114114        $result['tags'] = array();
    115         if ( $terms = get_the_terms( $post->ID, 'plugin_tag' ) ) {
     115        if ( $terms = get_the_terms( $post->ID, 'plugin_category' ) ) {
    116116            foreach ( $terms as $term ) {
    117117                $result['tags'][ $term->slug ] = $term->name;
Note: See TracChangeset for help on using the changeset viewer.