Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#17132 closed task (blessed) (fixed)

Add template/active_plugins to wp.getOptions

Reported by: koke's profile 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 13 years ago.
17132-refresh.diff (842 bytes) - added by ericmann 13 years ago.
Refresh patch to match latest version of trunk.

Download all attachments as: .zip

Change History (11)

#1 @koke
13 years ago

  • Keywords has-patch added

#2 @koke
13 years ago

  • Cc jbernal@… added

#3 @daniloercoli
13 years ago

  • Cc ercoli@… added

#4 @josephscott
13 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.

#5 follow-up: @nacin
13 years ago

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

@ericmann
13 years ago

Refresh patch to match latest version of trunk.

#6 in reply to: ↑ 5 @ericmann
13 years ago

  • Keywords commit added

Replying to nacin:

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

Agreed.

#7 follow-up: @nacin
13 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.

#8 @nacin
13 years ago

In [20073]:

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

#9 in reply to: ↑ 7 @westi
12 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.