Making WordPress.org


Ignore:
Timestamp:
06/02/2016 06:55:49 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: First swipe at handlers for api.wordpress.org/plugins/info/*.
The API handlers are designed to be stand-alone scripts which run only with an object cache for caching, When cached data is unavailable, WordPress is included to fetch the data from a rest api endpoint.

See #1579

File:
1 edited

Legend:

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

    r3226 r3289  
    373373                }
    374374                if ( 'plugin_built_for' == $term->taxonomy ) {
    375                         return $this->package_link( false, $this->get_plugin_post( $term->slug ) );
     375                        // Term slug = Post Slug = /%postname%/
     376                        return trailingslashit( home_url( $term->slug ) );
    376377                }
    377378
Note: See TracChangeset for help on using the changeset viewer.