WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#17132 closed task (blessed) (fixed)

Add template/active_plugins to wp.getOptions

Reported by: koke Owned by:
Milestone: 3.4 Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: has-patch mobile commit
Focuses: Cc:

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 4 years ago.
17132-refresh.diff (842 bytes) - added by ericmann 4 years ago.
Refresh patch to match latest version of trunk.

Download all attachments as: .zip

Change History (11)

@koke4 years ago

comment:1 @koke4 years ago

  • Keywords has-patch added

comment:2 @koke4 years ago

  • Cc jbernal@… added

comment:3 @daniloercoli4 years ago

  • Cc ercoli@… added

comment:4 @josephscott4 years ago

  • 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: @nacin4 years ago

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

@ericmann4 years ago

Refresh patch to match latest version of trunk.

comment:6 in reply to: ↑ 5 @ericmann4 years 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: @nacin4 years 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.

comment:8 @nacin4 years ago

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 @westi3 years 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.