Making WordPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2810 closed defect (bug) (fixed)

plugin_information API Missing Screenshot Captions

Reported by: blobfolio's profile blobfolio Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

I'm not sure when exactly this started, but I noticed tonight that the plugin_information API is no longer providing screenshot captions; there's a key for them, but the values are empty strings.

// Example call from within WordPress.
$response = plugins_api('plugin_information', array('slug'=>'apocalypse-meow'));
print_r($response);
/*
...
[screenshots] => Array
(
	[1] => Array
	(
		[src] => https://ps.w.org/apocalypse-meow/assets/screenshot-1.png?rev=1421211
		[caption] =>
	)
...
*/

The problem doesn't appear to be within the Core's plugins_api() wrapper function; the raw responses (both serialized and JSON) are also missing captions.

The WordPress.org plugin landing pages, however, are still correctly showing screenshot captions.

Change History (3)

#1 @dd32
8 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 5473:

Plugin Directory: API: Fix a typo preventing the screenshot captions being returned.

Fixes #2810

#2 @dd32
8 years ago

  • Component changed from General to Plugin Directory

It'll take a little while for api caches to clear (I'd give it a day) but committing a change to your plugin (whitespace even) *should* be enough to trigger a cache clear.

Thanks for reporting it!

#3 @blobfolio
8 years ago

So fast! Thank you!

Note: See TracTickets for help on using tickets.