Make WordPress Core

Opened 15 years ago

Closed 11 years ago

Last modified 11 years ago

#8223 closed enhancement (maybelater)

Possibility to specify parameters when writing new page or post

Reported by: donpaolo's profile donpaolo Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Administration Keywords: needs-patch
Focuses: Cc:


I think it would be very useful, above all for template writers, if it were possible to specify an optional parameter to the following pages:

I think on something like

This would permit for example to add a new post with given category, a new page with given mother category, etc.

Change History (11)

14 years ago

  • Milestone changed from 2.8 to Future Release

14 years ago

  • Keywords reporter-feedback added
  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Please clarify what you are requesting. Closing for now.

#3 @Denis-de-Bernardy
14 years ago

  • Component changed from General to Administration
  • Resolution wontfix deleted
  • Status changed from closed to reopened

+1 to that. And for every editor screen, too: post, page, link, category, tag.

For each variable, if isset $_GET[var] then assign that to var as the default

#5 @Denis-de-Bernardy
14 years ago

  • Keywords needs-patch added; reporter-feedback removed
  • Milestone set to 2.8
  • Version set to 2.8

In case in helps... I use the following code in one of my plugins:

	 * Usage: extract(utils::extract($vars), EXTR_SKIP);
	 * @param $vars variables to fetch from $_POST or $_GET
	 * @return void

	function extract($vars) {
		if ( $_POST ) {
			$arr = '_POST';
		} else {
			$arr = '_GET';
		foreach ( $vars as $var ) {
			$$var = isset($GLOBALS[$arr][$var])
				? stripslashes_deep($GLOBALS[$arr][$var])
				: '';
		return compact($vars);
	} # extract()

#7 @ryan
14 years ago

  • Milestone changed from 2.8 to Future Release

#8 @thee17
11 years ago

  • Resolution set to maybelater
  • Status changed from reopened to closed

3 years with no interest

#9 @ocean90
11 years ago

  • Milestone Future Release deleted

#10 @pekka.gaiser
11 years ago

I strongly disagree with the "no interest". I'm really waiting for this: when you have a complex page structure, this would allow to add the ability to create a new page as a subpage of the current one. Among other things.

I didn't know we are supposed to add "me too!" comments when we come across a ticket we would like solved/implemented.

Please reopen.

#11 @thee17
11 years ago

What it means is that there has been no interest by anyone to write a patch to add this functionality. As an Open Source project WordPress relies on the community to write code and submit patches. Maybe Later means that the community is not opposed to it but the community has noone interested at this time to write the code.

New features that lack the interest for several years with no patches are often closed like this. Closing as "won't fix" means the community does not want the feature or the bug is not going to be fixed due to its other benifits.

Note: See TracTickets for help on using tickets.