[wp-meta] [Making WordPress.org] #2521: Expose `author_uri` in the WP.org API
Making WordPress.org
noreply at wordpress.org
Tue Feb 21 23:29:21 UTC 2017
#2521: Expose `author_uri` in the WP.org API
-----------------------------+-----------------------
Reporter: Bernhard Reiter | Owner: Otto42
Type: enhancement | Status: assigned
Priority: normal | Milestone:
Component: Theme Directory | Resolution:
Keywords: |
-----------------------------+-----------------------
Comment (by dd32):
FYI the `Author URI` is stored, however the `Author` field isn't (I
misread it).
In chatting with @Bernhard Reiter I don't think the Author_URI is the
correct field for what they wanted to use anyway.
Here's a chunk of code that can be inserted into the API code for when we
do store the Author field (I don't think it's worth exposing one without
the other).
{{{
$phil->author = (object) array(
'user_nicename' => $author->user_nicename,
'display_name' => $author->display_name,
'profile_link' => 'https://profiles.wordpress.org/' .
$author->user_nicename,
'header_author' => wporg_themes_get_version_meta( $theme->ID,
'_author', $phil->version ),
'header_author_uri' => wporg_themes_get_version_meta( $theme->ID,
'_author_url', $phil->version ),
);
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2521#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list