Make WordPress Core

Changeset 220


Ignore:
Timestamp:
06/12/2003 10:47:21 PM (23 years ago)
Author:
mikelittle
Message:

post Defaults implemented.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2edit.form.php

    r207 r220  
    1313        $form_extra = '';
    1414        if ($use_pingback) {
    15             $form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" checked="checked" tabindex="7" id="pingback" /> <label for="pingback">PingBack the URLs in this post</label><br />';
     15            $form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
     16            if ($post_pingback) $form_pingback .= 'checked="checked" ';
     17            $form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">PingBack the URLs in this post</label><br />';
    1618        } else {
    1719            $form_pingback = '';
     
    7072    <td>
    7173        <label for="category">Category:</label><br />
    72         <?php dropdown_categories(); ?>
     74        <?php dropdown_categories($blog_ID, $default_post_cat); ?>
    7375    </td>
    7476    <td>
     
    9193        <select name="ping_status" id="ping_status">
    9294            <option value="open"<?php selected($ping_status, 'open'); ?>>Open</option>
    93             <option value="closed"<?php selected($ping_status, 'open'); ?>>Closed</option>
     95            <option value="closed"<?php selected($ping_status, 'closed'); ?>>Closed</option>
    9496        </select>
    9597    </td>
  • trunk/wp-admin/b2edit.php

    r198 r220  
    388388                    <?php
    389389                }
     390                //set defaults
     391                $post_status = get_settings('default_post_status');
     392                $comment_status = get_settings('default_comment_status');
     393                $ping_status = get_settings('default_ping_status');
     394                $post_pingback = get_settings('default_pingback_flag');
     395                $default_post_cat = get_settings('default_post_category');
    390396                include('b2edit.form.php');
    391397                echo '<br /><br />';
    392 
    393398            }
    394399
Note: See TracChangeset for help on using the changeset viewer.