Make WordPress Core

Opened 20 years ago

Closed 18 years ago

Last modified 9 years ago

#1173 closed enhancement (wontfix)

Suggestion: xml template functions

Reported by: denis-de-bernardy's profile Denis de Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Template Keywords:
Focuses: Cc:

Description

it would be nice if, rather than inconsistently calling functions such as:

<?php wp_whatever( $before, $after ); ?>
-> returns:
html as appropriate

it might be worth exploring xml output for future versions of wordpress:

<?php xml_whatever(); ?>
-> returns:
<whatever>filters applied</whatever>

so as to xslt transform the result. i think it would be a lot more subtle than anything the template tags currently allow.

Change History (9)

#1 @Denis de Bernardy
20 years ago

  • Patch set to No

#2 @rob1n
18 years ago

  • Keywords dev-feedback added

#3 @foolswisdom
18 years ago

  • Milestone set to 2.3

#4 follow-up: @rob1n
18 years ago

Do we really want to have to rewrite the template functions for a release so close as 2.3? 3.0 might be better, but this might just end up to be a plugin's extension.

#5 in reply to: ↑ 4 @foolswisdom
18 years ago

Replying to rob1n:

Do we really want to have to rewrite the template functions for a release so close as 2.3? 3.0 might be better, but this might just end up to be a plugin's extension.

2.3 basically means not being considered for this release. I like to have every bug verses a milestone. I don't have the knowledge to know if this is something that should be implemented in core.

#6 @rob1n
18 years ago

Makes sense. IMO XML template functions are either plugin material or for a really, really far off rewrite such as 3.0 or even 4.0.

I say we close this as wontfix... it would be simple to do a plugin providing xml_* functions for XPath manipulation.

#7 @rob1n
18 years ago

XSLT rather.

#8 @rob1n
18 years ago

  • Keywords dev-feedback removed
  • Milestone 2.3 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

After thinking about it, it's a pretty good idea, but it's better off as a plugin for now.

This ticket was mentioned in Slack in #design by dane. View the logs.


9 years ago

Note: See TracTickets for help on using tickets.