Opened 2 years ago

Closed 14 months ago

#17132 closed task (blessed) (fixed)

Add template/active_plugins to wp.getOptions

Reported by: koke Owned by:
Priority: normal Milestone: 3.4
Component: XML-RPC Version:
Severity: normal Keywords: has-patch mobile commit
Cc: jbernal@…, ercoli@…

Description

active_plugins could be very useful to warn users about known compatibility issues between specific plugins and the apps using XML-RPC

template is not as useful, but could be interesting to know, for instance, which blogs are P2s and which are "regular" blogs

Attachments (2)

patch-core-17132.diff (633 bytes) - added by koke 2 years ago.
17132-refresh.diff (842 bytes) - added by ericmann 15 months ago.
Refresh patch to match latest version of trunk.

Download all attachments as: .zip

Change History (11)

koke2 years ago

comment:1   koke2 years ago

  • Keywords has-patch added

comment:2   koke2 years ago

  • Cc jbernal@… added
  • Cc ercoli@… added
  • Milestone changed from Awaiting Review to 3.4
  • Type changed from enhancement to task (blessed)

Looks good, I'd be fine with committing this.

comment:5 follow-up: ↓ 6   nacin16 months ago

If you would like to know template, you should probably also receive stylesheet.

Refresh patch to match latest version of trunk.

comment:6 in reply to: ↑ 5   ericmann15 months ago

  • Keywords commit added

Replying to nacin:

If you would like to know template, you should probably also receive stylesheet.

Agreed.

comment:7 follow-up: ↓ 9   nacin15 months ago

I wonder how useful active_plugins will actually be — a serialized array of filenames doesn't really lend to which plugins are necessarily active on a blog. I'd almost rather provide plugin names, so you're matching against "Akismet" rather than "akismet/akismet.php". Perhaps not. Just thinking aloud.

In [20073]:

Add template and stylesheet to readonly options that can be pulled from XML-RPC. props koke, ericmann. see #17132.

comment:9 in reply to: ↑ 7   westi14 months ago

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

Replying to nacin:

I wonder how useful active_plugins will actually be — a serialized array of filenames doesn't really lend to which plugins are necessarily active on a blog. I'd almost rather provide plugin names, so you're matching against "Akismet" rather than "akismet/akismet.php". Perhaps not. Just thinking aloud.

I think we need to provide something normalised for this to be useful rather than exposing raw data.

@koke please can you open a new ticket for exposing plugin info.

Closing this as fixed in 3.4 - for the template/stylesheet info.

Note: See TracTickets for help on using tickets.