From 6f66293c2142eb5cafe51d98952b6234d6687faa Mon Sep 17 00:00:00 2001 From: saxmatt Date: Thu, 22 Apr 2004 20:58:15 +0000 Subject: [PATCH] Various cleanups. git-svn-id: http://svn.automattic.com/wordpress/trunk@1128 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 9ca7c5c01d..42b90dc22c 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -2,23 +2,6 @@ $title = 'Permalink Options'; $parent_file = 'options-general.php'; -function add_magic_quotes($array) { - foreach ($array as $k => $v) { - if (is_array($v)) { - $array[$k] = add_magic_quotes($v); - } else { - $array[$k] = addslashes($v); - } - } - return $array; -} - -if (!get_magic_quotes_gpc()) { - $_GET = add_magic_quotes($_GET); - $_POST = add_magic_quotes($_POST); - $_COOKIE = add_magic_quotes($_COOKIE); -} - $wpvarstoreset = array('action','standalone', 'option_group_id'); for ($i=0; $i

Edit Permalink Structure

@@ -62,7 +45,7 @@ default:
  • %year% --- The year of the post, 4 digits, for example 2004
  • %monthnum% --- Month of the year, for example 05
  • %day% --- Day of the month, for example 28
  • -
  • %postname% --- A sanitized version of the title of the post. So "This Is A Great Post!" becomes "this-is-a-great-post" in the URI
  • +
  • %postname% --- A sanitized version of the title of the post. So “This Is A Great Post!” becomes “this-is-a-great-post” in the URI
  • %post_id% --- The unique ID # of the post, for example 423
  • So for example a value like:

    @@ -75,10 +58,10 @@ default:

    Use the template tags above to create a virtual site structure:

    - +

    - +

    \n"; break; } -include("admin-footer.php") +require('./admin-footer.php'); ?> \ No newline at end of file