WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#8223 closed enhancement (maybelater)

Possibility to specify parameters when writing new page or post

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

Description

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:

http://lagaccio.qumran2.net/wp-admin/post-new.php
http://lagaccio.qumran2.net/wp-admin/page-new.php

I think on something like

http://lagaccio.qumran2.net/wp-admin/post-new.php?comment_status=checked

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

Change History (11)

#1 @FFEMTcJ
12 years ago

  • Milestone changed from 2.8 to Future Release

#2 @FFEMTcJ
12 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
12 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
12 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
12 years ago

  • Milestone changed from 2.8 to Future Release

#8 @thee17
9 years ago

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

3 years with no interest

#9 @ocean90
9 years ago

  • Milestone Future Release deleted

#10 @pekka.gaiser
9 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
9 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.