wp/wp-admin/options-writing.php
author ymh <ymh.work@gmail.com>
Wed, 06 Nov 2013 03:21:17 +0000
changeset 0 d970ebf37754
child 5 5e2f62d02dcd
permissions -rw-r--r--
first import
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
 * Writing settings administration panel.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
 * @package WordPress
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
 * @subpackage Administration
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
/** WordPress Administration Bootstrap */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
require_once( dirname( __FILE__ ) . '/admin.php' );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
if ( ! current_user_can( 'manage_options' ) )
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
	wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
$title = __('Writing Settings');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
$parent_file = 'options-general.php';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
get_current_screen()->add_help_tab( array(
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
	'id'      => 'overview',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
	'title'   => __('Overview'),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
	'content' => '<p>' . __('You can submit content in several different ways; this screen holds the settings for all of them. The top section controls the editor within the dashboard, while the rest control external publishing methods. For more information on any of these methods, use the documentation links.') . '</p>' .
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
		'<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
) );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
get_current_screen()->add_help_tab( array(
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
	'id'      => 'options-press',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
	'title'   => __('Press This'),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
	'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you&#8217;ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
) );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
/** This filter is documented in wp-admin/options.php */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
	get_current_screen()->add_help_tab( array(
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
		'id'      => 'options-postemail',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
		'title'   => __( 'Post Via Email' ),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
		'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.' ) . '</p>',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
	) );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
* Toggle site update services configuration functionality.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
*
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
* @since 3.0.0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
*
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
* @param bool True or false, based on whether update services configuration is enabled or not.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
*/
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
	get_current_screen()->add_help_tab( array(
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
		'id'      => 'options-services',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
		'title'   => __( 'Update Services' ),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
		'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>',
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
	) );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
get_current_screen()->set_help_sidebar(
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
	'<p><strong>' . __('For more information:') . '</strong></p>' .
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
	'<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_Screen" target="_blank">Documentation on Writing Settings</a>') . '</p>' .
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
	'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
);
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
include( ABSPATH . 'wp-admin/admin-header.php' );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
<div class="wrap">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
<?php screen_icon(); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
<h2><?php echo esc_html( $title ); ?></h2>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
<form method="post" action="options.php">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
<?php settings_fields('writing'); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
<table class="form-table">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
<th scope="row"><?php _e('Formatting') ?></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
<label for="use_smilies">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
<label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_option('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
</fieldset></td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
<th scope="row"><label for="default_category"><?php _e('Default Post Category') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
<td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_category', 'orderby' => 'name', 'selected' => get_option('default_category'), 'hierarchical' => true));
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
$post_formats = get_post_format_strings();
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
unset( $post_formats['standard'] );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
<th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
<td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
	<select name="default_post_format" id="default_post_format">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
		<option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
<?php foreach ( $post_formats as $format_slug => $format_name ): ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
		<option<?php selected( get_option( 'default_post_format' ), $format_slug ); ?> value="<?php echo esc_attr( $format_slug ); ?>"><?php echo esc_html( $format_name ); ?></option>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
<?php endforeach; ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
	</select>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
if ( get_option( 'link_manager_enabled' ) ) :
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
<th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
<td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category'));
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
<?php endif; ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
do_settings_fields('writing', 'default');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
do_settings_fields('writing', 'remote_publishing'); // A deprecated section.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
</table>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
<h3 class="title"><?php _e('Press This') ?></h3>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
<p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
<p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   126
<p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   127
<p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1){jQuery('.pressthis-code').show().find('textarea').focus().select();return false;}" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e('Press This') ?></span></a></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   128
<div class="pressthis-code" style="display:none;">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   129
	<p class="description"><?php _e('If your bookmarks toolbar is hidden: copy the code below, open your Bookmarks manager, create new bookmark, type Press This into the name field and paste the code into the URL field.') ?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   130
	<p><textarea rows="5" cols="120" readonly="readonly"><?php echo htmlspecialchars( get_shortcut_link() ); ?></textarea></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
</div>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
/** This filter is documented in wp-admin/options.php */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   135
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   136
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
<h3 class="title"><?php _e('Post via e-mail') ?></h3>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
<p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   139
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   140
<table class="form-table">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   141
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   142
<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   143
<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   144
<label for="mailserver_port"><?php _e('Port') ?></label>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   145
<input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
<th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text ltr" /></td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   151
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   152
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   153
<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   154
<td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   155
<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text ltr" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   156
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   157
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   158
<tr valign="top">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
<th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
<td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   162
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true));
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   163
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   164
</td>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   165
</tr>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   166
<?php do_settings_fields('writing', 'post_via_email'); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   167
</table>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   168
<?php } ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   169
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   170
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   171
/** This filter is documented in wp-admin/options-writing.php */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   172
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   173
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   174
<h3 class="title"><?php _e('Update Services') ?></h3>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   175
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   176
<?php if ( 1 == get_option('blog_public') ) : ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   177
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   178
<p><label for="ping_sites"><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></label></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   179
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   180
<textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   181
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   182
<?php else : ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   183
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   184
	<p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your site&#8217;s <a href="%s">visibility settings</a>.'), 'options-reading.php'); ?></p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   185
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   186
<?php endif; ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   187
<?php } // multisite ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   188
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   189
<?php do_settings_sections('writing'); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   190
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   191
<?php submit_button(); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   192
</form>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   193
</div>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   194
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   195
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>