Make WordPress Core


Ignore:
Timestamp:
04/11/2004 08:15:10 AM (22 years ago)
Author:
saxmatt
Message:

More options work. Bug fixes for advanced_edit not being boolean type, clean up of options code and update feedback (still needs work there), first bit of miscellaneous screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r969 r1058  
    3535}
    3636
    37 require_once('optionhandler.php');
    3837
    3938
    4039$standalone = 0;
    4140include_once('admin-header.php');
    42 if ($user_level <= 3) {
    43         die("You have do not have sufficient permissions to edit the options for this blog.");
    44 }
     41include('options-head.php');
    4542?>
    46  <ul id="adminmenu2">
    47   <li><a href="options-general.php">General</a></li>
    48   <li><a class="current">Writing</a></li>
    49   <li><a href="options-reading.php">Reading</a></li>
    50   <li><a href="options-discussion.php">Discussion</a></li>
    51   <?php
    52     //we need to iterate through the available option groups.
    53     $option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id");
    54     foreach ($option_groups as $option_group) {
    55         if ($option_group->group_id == $option_group_id) {
    56             $current_desc=$option_group->group_desc;
    57             $current_long_desc = $option_group->group_longdesc;
    58             echo("  <li><a id=\"current2\" href=\"options.php?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
    59         } else {
    60             echo("  <li><a href=\"options.php?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
    61         }
    62     } // end for each group
    63 ?>
    64   <li class="last"><a href="options-permalink.php">Permalinks</a></li>
    65 </ul>
    66 <br clear="all" />
     43
    6744<div class="wrap">
    6845  <h2>Writing Options</h2>
    … …  
    7350      <tr valign="top">
    7451        <th scope="row"> When starting a post, show: </th>
    75         <td><label>
     52        <td><?php get_settings('advanced_edit') ?><label>
    7653          <input name="advanced_edit" type="radio" value="0" <?php checked('0', get_settings('advanced_edit')); ?> />
    7754Simple controls</label>
Note: See TracChangeset for help on using the changeset viewer.