Changeset 4144
- Timestamp:
- 08/30/06 21:46:31 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-functions.php (modified) (3 diffs)
- trunk/wp-admin/admin-header.php (modified) (2 diffs)
- trunk/wp-admin/admin.php (modified) (1 diff)
- trunk/wp-admin/bookmarklet.php (modified) (1 diff)
- trunk/wp-admin/comment.php (modified) (6 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
- trunk/wp-admin/edit-form.php (modified) (1 diff)
- trunk/wp-admin/edit-link-form.php (modified) (1 diff)
- trunk/wp-admin/export.php (modified) (1 diff)
- trunk/wp-admin/import/blogger.php (modified) (1 diff)
- trunk/wp-admin/inline-uploading.php (modified) (1 diff)
- trunk/wp-admin/link-add.php (modified) (1 diff)
- trunk/wp-admin/list-manipulation-js.php (modified) (1 diff)
- trunk/wp-admin/menu-header.php (modified) (2 diffs)
- trunk/wp-admin/moderation.php (modified) (2 diffs)
- trunk/wp-admin/options-discussion.php (modified) (4 diffs)
- trunk/wp-admin/options-general.php (modified) (4 diffs)
- trunk/wp-admin/options-misc.php (modified) (3 diffs)
- trunk/wp-admin/options-permalink.php (modified) (4 diffs)
- trunk/wp-admin/options-reading.php (modified) (3 diffs)
- trunk/wp-admin/options-writing.php (modified) (4 diffs)
- trunk/wp-admin/options.php (modified) (3 diffs)
- trunk/wp-admin/page.php (modified) (1 diff)
- trunk/wp-admin/plugins.php (modified) (5 diffs)
- trunk/wp-admin/post-new.php (modified) (3 diffs)
- trunk/wp-admin/post.php (modified) (1 diff)
- trunk/wp-admin/update-links.php (modified) (1 diff)
- trunk/wp-admin/users.php (modified) (2 diffs)
- trunk/wp-atom.php (modified) (3 diffs)
- trunk/wp-comments-post.php (modified) (1 diff)
- trunk/wp-commentsrss2.php (modified) (3 diffs)
- trunk/wp-content/plugins/wp-db-backup.php (modified) (10 diffs)
- trunk/wp-content/themes/classic/comments-popup.php (modified) (3 diffs)
- trunk/wp-content/themes/default/comments-popup.php (modified) (3 diffs)
- trunk/wp-content/themes/default/functions.php (modified) (4 diffs)
- trunk/wp-content/themes/default/header.php (modified) (1 diff)
- trunk/wp-includes/author-template.php (modified) (2 diffs)
- trunk/wp-includes/bookmark-template.php (modified) (8 diffs)
- trunk/wp-includes/bookmark.php (modified) (1 diff)
- trunk/wp-includes/category-template.php (modified) (2 diffs)
- trunk/wp-includes/classes.php (modified) (2 diffs)
- trunk/wp-includes/comment-template.php (modified) (5 diffs)
- trunk/wp-includes/comment.php (modified) (10 diffs)
- trunk/wp-includes/cron.php (modified) (1 diff)
- trunk/wp-includes/deprecated.php (modified) (1 diff)
- trunk/wp-includes/feed.php (modified) (3 diffs)
- trunk/wp-includes/formatting.php (modified) (4 diffs)
- trunk/wp-includes/functions.php (modified) (13 diffs)
- trunk/wp-includes/general-template.php (modified) (17 diffs)
- trunk/wp-includes/js/tinymce/wp-mce-help.php (modified) (1 diff)
- trunk/wp-includes/link-template.php (modified) (14 diffs)
- trunk/wp-includes/pluggable.php (modified) (10 diffs)
- trunk/wp-includes/post-template.php (modified) (5 diffs)
- trunk/wp-includes/post.php (modified) (2 diffs)
- trunk/wp-includes/query.php (modified) (3 diffs)
- trunk/wp-includes/registration.php (modified) (1 diff)
- trunk/wp-includes/rewrite.php (modified) (6 diffs)
- trunk/wp-includes/script-loader.php (modified) (1 diff)
- trunk/wp-includes/theme.php (modified) (4 diffs)
- trunk/wp-includes/vars.php (modified) (1 diff)
- trunk/wp-links-opml.php (modified) (1 diff)
- trunk/wp-login.php (modified) (8 diffs)
- trunk/wp-mail.php (modified) (4 diffs)
- trunk/wp-rdf.php (modified) (2 diffs)
- trunk/wp-register.php (modified) (6 diffs)
- trunk/wp-rss.php (modified) (2 diffs)
- trunk/wp-rss2.php (modified) (3 diffs)
- trunk/wp-settings.php (modified) (3 diffs)
- trunk/wp-trackback.php (modified) (2 diffs)
- trunk/xmlrpc.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-functions.php
r4118 r4144 336 336 337 337 $post->post_status = 'draft'; 338 $post->comment_status = get_ settings('default_comment_status');339 $post->ping_status = get_ settings('default_ping_status');340 $post->post_pingback = get_ settings('default_pingback_flag');341 $post->post_category = get_ settings('default_category');338 $post->comment_status = get_option('default_comment_status'); 339 $post->ping_status = get_option('default_ping_status'); 340 $post->post_pingback = get_option('default_pingback_flag'); 341 $post->post_category = get_option('default_category'); 342 342 $post->post_content = apply_filters('default_content', $post_content); 343 343 $post->post_title = apply_filters('default_title', $post_title); … … 1107 1107 echo '<fieldset><legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" /> <label for="timestamp">'.__('Edit timestamp').'</label></legend>'; 1108 1108 1109 $time_adj = time() + (get_ settings('gmt_offset') * 3600);1109 $time_adj = time() + (get_option('gmt_offset') * 3600); 1110 1110 $post_date = ($for_post) ? $post->post_date : $comment->comment_date; 1111 1111 $jj = ($edit) ? mysql2date('d', $post_date) : gmdate('d', $time_adj); … … 1624 1624 1625 1625 function get_home_path() { 1626 $home = get_ settings('home');1627 if ($home != '' && $home != get_ settings('siteurl')) {1626 $home = get_option('home'); 1627 if ($home != '' && $home != get_option('siteurl')) { 1628 1628 $home_path = parse_url($home); 1629 1629 $home_path = $home_path['path']; trunk/wp-admin/admin-header.php
r4120 r4144 16 16 <html xmlns="http://www.w3.org/1999/xhtml"> 17 17 <head> 18 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />18 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 19 19 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> 20 <link rel="stylesheet" href="<?php echo get_ settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />20 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 21 21 <script type="text/javascript"> 22 22 //<![CDATA[ … … 42 42 <body> 43 43 <div id="wphead"> 44 <h1><?php echo wptexturize(get_ settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site »') ?></a>)</span></h1>44 <h1><?php echo wptexturize(get_option(('blogname'))); ?> <span>(<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('View site »') ?></a>)</span></h1> 45 45 </div> 46 <div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_ settings('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div>46 <div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div> 47 47 48 48 <?php trunk/wp-admin/admin.php
r4110 r4144 20 20 wp_get_current_user(); 21 21 22 $posts_per_page = get_ settings('posts_per_page');23 $what_to_show = get_ settings('what_to_show');24 $date_format = get_ settings('date_format');25 $time_format = get_ settings('time_format');22 $posts_per_page = get_option('posts_per_page'); 23 $what_to_show = get_option('what_to_show'); 24 $date_format = get_option('date_format'); 25 $time_format = get_option('time_format'); 26 26 27 27 wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback')); trunk/wp-admin/bookmarklet.php
r4006 r4144 51 51 <head> 52 52 <title><?php bloginfo('name') ?> › Bookmarklet — WordPress</title> 53 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />53 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 54 54 <link rel="stylesheet" href="wp-admin.css" type="text/css" /> 55 55 trunk/wp-admin/comment.php
r3985 r4144 63 63 echo "<p>" . __('Are you sure you want to do that?') . "</p>\n"; 64 64 65 echo "<form action='".get_ settings('siteurl')."/wp-admin/comment.php' method='get'>\n";65 echo "<form action='".get_option('siteurl')."/wp-admin/comment.php' method='get'>\n"; 66 66 wp_nonce_field($nonce_action); 67 67 echo "<input type='hidden' name='action' value='$formaction' />\n"; … … 73 73 echo "<input type='submit' value='" . __('Yes') . "' />"; 74 74 echo " "; 75 echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_ settings('siteurl') ."/wp-admin/edit-comments.php';\" />\n";75 echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_option('siteurl') ."/wp-admin/edit-comments.php';\" />\n"; 76 76 echo "</form>\n"; 77 77 echo "</div>\n"; … … 107 107 wp_redirect(wp_get_referer()); 108 108 } else { 109 wp_redirect(get_ settings('siteurl') .'/wp-admin/edit-comments.php');109 wp_redirect(get_option('siteurl') .'/wp-admin/edit-comments.php'); 110 110 } 111 111 exit(); … … 134 134 wp_redirect(wp_get_referer()); 135 135 } else { 136 wp_redirect(get_ settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');136 wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 137 137 } 138 138 exit(); … … 157 157 158 158 wp_set_comment_status($comment->comment_ID, "approve"); 159 if (get_ settings("comments_notify") == true) {159 if (get_option("comments_notify") == true) { 160 160 wp_notify_postauthor($comment->comment_ID); 161 161 } … … 165 165 wp_redirect(wp_get_referer()); 166 166 } else { 167 wp_redirect(get_ settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');167 wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); 168 168 } 169 169 exit(); trunk/wp-admin/edit-form-advanced.php
r4125 r4144 76 76 <div class="dbx-content"> 77 77 <p id="jaxcat"></p> 78 <ul id="categorychecklist"><?php dropdown_categories(get_ settings('default_category')); ?></ul></div>78 <ul id="categorychecklist"><?php dropdown_categories(get_option('default_category')); ?></ul></div> 79 79 </fieldset> 80 80 trunk/wp-admin/edit-form.php
r4133 r4144 35 35 <?php the_quicktags(); ?> 36 36 <?php 37 $rows = get_ settings('default_post_edit_rows');37 $rows = get_option('default_post_edit_rows'); 38 38 if (($rows < 3) || ($rows > 100)) { 39 39 $rows = 10; trunk/wp-admin/edit-link-form.php
r3999 r4144 44 44 <div class="dbx-content"> 45 45 <p id="jaxcat"></p> 46 <ul id="categorychecklist"><?php dropdown_link_categories(get_ settings('default_link_category')); ?></ul>46 <ul id="categorychecklist"><?php dropdown_link_categories(get_option('default_link_category')); ?></ul> 47 47 </div> 48 48 </fieldset> trunk/wp-admin/export.php
r3769 r4144 29 29 header('Content-Type: application/octet-stream'); 30 30 header("Content-Disposition: attachment; filename=$filename"); 31 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);31 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 32 32 //$posts = query_posts(''); 33 33 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC"); trunk/wp-admin/import/blogger.php
r3985 r4144 602 602 header('Content-Type: text/html; charset=utf-8'); 603 603 604 $this->import = get_ settings('import-blogger');604 $this->import = get_option('import-blogger'); 605 605 606 606 if ( false === $this->import ) { trunk/wp-admin/inline-uploading.php
r3985 r4144 284 284 <html xmlns="http://www.w3.org/1999/xhtml"> 285 285 <head> 286 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />286 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 287 287 <title></title> 288 288 <meta http-equiv="imagetoolbar" content="no" /> trunk/wp-admin/link-add.php
r3999 r4144 28 28 29 29 <div class="wrap"> 30 <?php printf(__('<p>You can drag <a href="%s" title="Link add bookmarklet">Link This</a> to your toolbar and when you click it a window will pop up that will allow you to add whatever site you’re on to your bookmarks! Right now this only works on Mozilla or Netscape, but we’re working on it.</p>'), "javascript:void(linkmanpopup=window.open('" . get_ settings('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>30 <?php printf(__('<p>You can drag <a href="%s" title="Link add bookmarklet">Link This</a> to your toolbar and when you click it a window will pop up that will allow you to add whatever site you’re on to your bookmarks! Right now this only works on Mozilla or Netscape, but we’re working on it.</p>'), "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?> 31 31 </div> 32 32 trunk/wp-admin/list-manipulation-js.php
r4109 r4144 2 2 require_once('admin.php'); 3 3 cache_javascript_headers(); 4 $handler = get_ settings( 'siteurl' ) . '/wp-admin/admin-ajax.php';4 $handler = get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php'; 5 5 ?> 6 6 addLoadEvent(function(){theList=new listMan();}); trunk/wp-admin/menu-header.php
r3536 r4144 14 14 if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) { 15 15 if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") ) 16 echo "\n\t<li><a href='" . get_ settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";16 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 17 17 else 18 echo "\n\t<li><a href='" . get_ settings('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>";18 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>"; 19 19 } 20 20 } … … 43 43 if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) { 44 44 if ( 'admin.php' == $pagenow ) 45 echo "\n\t<li><a href='" . get_ settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";45 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 46 46 else 47 echo "\n\t<li><a href='" . get_ settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>";47 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>"; 48 48 } else { 49 echo "\n\t<li><a href='" . get_ settings('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>";49 echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>"; 50 50 } 51 51 endforeach; trunk/wp-admin/moderation.php
r4005 r4144 48 48 case 'approve': 49 49 wp_set_comment_status($key, 'approve'); 50 if ( get_ settings('comments_notify') == true ) {50 if ( get_option('comments_notify') == true ) { 51 51 wp_notify_postauthor($key); 52 52 } … … 126 126 foreach($comments as $comment) { 127 127 ++$i; 128 $comment_date = mysql2date(get_ settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);128 $comment_date = mysql2date(get_option("date_format") . " @ " . get_option("time_format"), $comment->comment_date); 129 129 $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'"); 130 130 if ($i % 2) $class = 'js-unapproved alternate'; trunk/wp-admin/options-discussion.php
r4133 r4144 28 28 <li> 29 29 <label for="default_pingback_flag"> 30 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_ settings('default_pingback_flag')); ?> />30 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> 31 31 <?php _e('Attempt to notify any Weblogs linked to from the article (slows down posting.)') ?></label> 32 32 </li> 33 33 <li> 34 34 <label for="default_ping_status"> 35 <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_ settings('default_ping_status')); ?> />35 <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> /> 36 36 <?php _e('Allow link notifications from other Weblogs (pingbacks and trackbacks.)') ?></label> 37 37 </li> 38 38 <li> 39 39 <label for="default_comment_status"> 40 <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_ settings('default_comment_status')); ?> />40 <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> /> 41 41 <?php _e('Allow people to post comments on the article') ?></label> 42 42 </li> … … 48 48 <li> 49 49 <label for="comments_notify"> 50 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_ settings('comments_notify')); ?> />50 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> /> 51 51 <?php _e('Anyone posts a comment') ?> </label> 52 52 </li> 53 53 <li> 54 54 <label for="moderation_notify"> 55 <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_ settings('moderation_notify')); ?> />55 <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> /> 56 56 <?php _e('A comment is held for moderation') ?> </label> 57 57 </li> … … 63 63 <li> 64 64 <label for="comment_moderation"> 65 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_ settings('comment_moderation')); ?> />65 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> /> 66 66 <?php _e('An administrator must approve the comment (regardless of any matches below)') ?> </label> 67 67 </li> 68 <li><label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_ settings('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label></li>69 <li><label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_ settings('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label></li>68 <li><label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label></li> 69 <li><label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label></li> 70 70 </ul> 71 71 </fieldset> 72 72 <fieldset class="options"> 73 73 <legend><?php _e('Comment Moderation') ?></legend> 74 <p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_ settings('comment_max_links'). '" />' ) ?></p>74 <p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></p> 75 75 76 76 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://codex.wordpress.org/Spam_Words">Common spam words</a>.') ?></p> … … 89 89 </p> 90 90 <p><label for="open_proxy_check"> 91 <input name="open_proxy_check" type="checkbox" id="open_proxy_check" value="1" <?php checked('1', get_ settings('open_proxy_check')); ?> />91 <input name="open_proxy_check" type="checkbox" id="open_proxy_check" value="1" <?php checked('1', get_option('open_proxy_check')); ?> /> 92 92 <?php _e('Blacklist comments from open and insecure proxies.') ?></label></p> 93 93 </fieldset> trunk/wp-admin/options-general.php
r4133 r4144 40 40 <th scope="row"><?php _e('Membership:') ?></th> 41 41 <td> <label for="users_can_register"> 42 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_ settings('users_can_register')); ?> />42 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> /> 43 43 <?php _e('Anyone can register') ?></label><br /> 44 44 <label for="comment_registration"> 45 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_ settings('comment_registration')); ?> />45 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> /> 46 46 <?php _e('Users must be registered and logged in to comment') ?> 47 47 </label> … … 51 51 <th scope="row"><?php _e('New User Default Role:') ?></th> 52 52 <td><label for="default_role"> 53 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_ settings('default_role') ); ?></select></label>53 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label> 54 54 </td> 55 55 </tr> … … 70 70 <th scope="row"><?php _e('Default date format:') ?></th> 71 71 <td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br /> 72 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_ settings('date_format'), current_time('mysql')); ?></strong></td>72 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td> 73 73 </tr> 74 74 <tr> 75 75 <th scope="row"><?php _e('Default time format:') ?></th> 76 76 <td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br /> 77 <?php _e('Output:') ?> <strong><?php echo gmdate(get_ settings('time_format'), current_time('timestamp')); ?></strong></td>77 <?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td> 78 78 </tr> 79 79 <tr> … … 86 86 <?php 87 87 for ($day_index = 0; $day_index <= 6; $day_index++) : 88 $selected = (get_ settings('start_of_week') == $day_index) ? 'selected="selected"' : '';88 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 89 89 echo "\n\t<option value='$day_index' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 90 90 endfor; trunk/wp-admin/options-misc.php
r4112 r4144 18 18 <tr valign="top"> 19 19 <th scope="row"><?php _e('Store uploads in this folder'); ?>:</th> 20 <td><input name="upload_path" type="text" id="upload_path" class="code" value="<?php echo wp_specialchars(str_replace(ABSPATH, '', get_ settings('upload_path')), 1); ?>" size="40" />20 <td><input name="upload_path" type="text" id="upload_path" class="code" value="<?php echo wp_specialchars(str_replace(ABSPATH, '', get_option('upload_path')), 1); ?>" size="40" /> 21 21 <br /> 22 22 <?php _e('Default is <code>wp-content/uploads</code>'); ?> … … 27 27 <td> 28 28 <label for="uploads_use_yearmonth_folders"> 29 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1" <?php checked('1', get_ settings('uploads_use_yearmonth_folders')); ?> />29 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1" <?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> /> 30 30 <?php _e('Organize my uploads into month- and year-based folders'); ?> 31 31 </label> … … 35 35 </fieldset> 36 36 37 <p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_ settings('use_linksupdate')); ?> />37 <p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_option('use_linksupdate')); ?> /> 38 38 <label for="use_linksupdate"><?php _e('Track Bookmarks’ Update Times') ?></label></p> 39 39 <p> 40 <label><input type="checkbox" name="hack_file" value="1" <?php checked('1', get_ settings('hack_file')); ?> /> <?php _e('Use legacy <code>my-hacks.php</code> file support') ?></label>40 <label><input type="checkbox" name="hack_file" value="1" <?php checked('1', get_option('hack_file')); ?> /> <?php _e('Use legacy <code>my-hacks.php</code> file support') ?></label> 41 41 </p> 42 42 trunk/wp-admin/options-permalink.php
r4133 r4144 76 76 } 77 77 78 $permalink_structure = get_ settings('permalink_structure');79 $category_base = get_ settings('category_base');78 $permalink_structure = get_option('permalink_structure'); 79 $category_base = get_option('category_base'); 80 80 81 81 if ( (!file_exists($home_path.'.htaccess') && is_writable($home_path)) || is_writable($home_path.'.htaccess') ) … … 123 123 <label> 124 124 <input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> 125 <?php _e('Default'); ?><br /> <span> » <code><?php echo get_ settings('home'); ?>/?p=123</code></span>125 <?php _e('Default'); ?><br /> <span> » <code><?php echo get_option('home'); ?>/?p=123</code></span> 126 126 </label> 127 127 </p> … … 129 129 <label> 130 130 <input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> 131 <?php _e('Date and name based'); ?><br /> <span> » <code><?php echo get_ settings('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span>131 <?php _e('Date and name based'); ?><br /> <span> » <code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span> 132 132 </label> 133 133 </p> … … 135 135 <label> 136 136 <input name="selection" type="radio" value="<?php echo $structures[2]; ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> 137 <?php _e('Numeric'); ?><br /> <span> » <code><?php echo get_ settings('home') . $prefix ; ?>/archives/123</code></span>137 <?php _e('Numeric'); ?><br /> <span> » <code><?php echo get_option('home') . $prefix ; ?>/archives/123</code></span> 138 138 </label> 139 139 </p> trunk/wp-admin/options-reading.php
r3852 r4144 55 55 <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option('posts_per_page'); ?>" size="3" /> 56 56 <select name="what_to_show" id="what_to_show" > 57 <option value="days" <?php selected('days', get_ settings('what_to_show')); ?>><?php _e('days') ?></option>58 <option value="posts" <?php selected('posts', get_ settings('what_to_show')); ?>><?php _e('posts') ?></option>57 <option value="days" <?php selected('days', get_option('what_to_show')); ?>><?php _e('days') ?></option> 58 <option value="posts" <?php selected('posts', get_option('what_to_show')); ?>><?php _e('posts') ?></option> 59 59 </select> 60 60 </td> … … 73 73 <th scope="row"><?php _e('For each article, show:') ?> </th> 74 74 <td> 75 <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked(0, get_ settings('rss_use_excerpt')); ?> /> <?php _e('Full text') ?></label><br />76 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_ settings('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label>75 <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?> /> <?php _e('Full text') ?></label><br /> 76 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label> 77 77 </td> 78 78 </tr> … … 87 87 </table> 88 88 <p> 89 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_ settings('gzipcompression')); ?> />89 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_option('gzipcompression')); ?> /> 90 90 <?php _e('WordPress should compress articles (gzip) if browsers ask for them') ?></label> 91 91 </p> trunk/wp-admin/options-writing.php
r4133 r4144 22 22 <td> 23 23 <label for="rich_editing"> 24 <input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_ settings('rich_editing')); ?> />24 <input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_option('rich_editing')); ?> /> 25 25 <?php _e('Users should use the visual rich editor by default') ?></label><br /> 26 26 <label for="use_smilies"> 27 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_ settings('use_smilies')); ?> />27 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> 28 28 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br /> 29 <label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_ settings('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>29 <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> 30 30 </td> 31 31 </tr> … … 36 36 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name"); 37 37 foreach ($categories as $category) : 38 if ($category->cat_ID == get_ settings('default_category')) $selected = " selected='selected'";38 if ($category->cat_ID == get_option('default_category')) $selected = " selected='selected'"; 39 39 else $selected = ''; 40 40 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; … … 48 48 <?php 49 49 foreach ($categories as $category) : 50 if ($category->cat_ID == get_ settings('default_link_category')) $selected = " selected='selected'";50 if ($category->cat_ID == get_option('default_link_category')) $selected = " selected='selected'"; 51 51 else $selected = ''; 52 52 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; … … 85 85 //Alreay have $categories from default_category 86 86 foreach ($categories as $category) : 87 if ($category->cat_ID == get_ settings('default_email_category')) $selected = " selected='selected'";87 if ($category->cat_ID == get_option('default_email_category')) $selected = " selected='selected'"; 88 88 else $selected = ''; 89 89 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; trunk/wp-admin/options.php
r4112 r4144 88 88 89 89 // Save for later. 90 $old_siteurl = get_ settings('siteurl');91 $old_home = get_ settings('home');90 $old_siteurl = get_option('siteurl'); 91 $old_home = get_option('home'); 92 92 93 93 if ($options) { … … 105 105 if ($any_changed) { 106 106 // If siteurl or home changed, reset cookies. 107 if ( get_ settings('siteurl') != $old_siteurl || get_settings('home') != $old_home ) {107 if ( get_option('siteurl') != $old_siteurl || get_option('home') != $old_home ) { 108 108 // If home changed, write rewrite rules to new location. 109 109 $wp_rewrite->flush_rules(); … … 111 111 wp_clearcookie(); 112 112 // Set cookies for new paths. 113 wp_setcookie($user_login, $user_pass_md5, true, get_ settings('home'), get_settings('siteurl'));113 wp_setcookie($user_login, $user_pass_md5, true, get_option('home'), get_option('siteurl')); 114 114 } 115 115 trunk/wp-admin/page.php
r4088 r4144 145 145 146 146 $sendback = wp_get_referer(); 147 if (strstr($sendback, 'page.php')) $sendback = get_ settings('siteurl') .'/wp-admin/page.php';148 elseif (strstr($sendback, 'attachments.php')) $sendback = get_ settings('siteurl') .'/wp-admin/attachments.php';147 if (strstr($sendback, 'page.php')) $sendback = get_option('siteurl') .'/wp-admin/page.php'; 148 elseif (strstr($sendback, 'attachments.php')) $sendback = get_option('siteurl') .'/wp-admin/attachments.php'; 149 149 $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback); 150 150 wp_redirect($sendback); trunk/wp-admin/plugins.php
r3928 r4144 5 5 if ('activate' == $_GET['action']) { 6 6 check_admin_referer('activate-plugin_' . $_GET['plugin']); 7 $current = get_ settings('active_plugins');7 $current = get_option('active_plugins'); 8 8 if (!in_array($_GET['plugin'], $current)) { 9 9 $current[] = trim( $_GET['plugin'] ); … … 16 16 } else if ('deactivate' == $_GET['action']) { 17 17 check_admin_referer('deactivate-plugin_' . $_GET['plugin']); 18 $current = get_ settings('active_plugins');18 $current = get_option('active_plugins'); 19 19 array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu! 20 20 update_option('active_plugins', $current); … … 31 31 // If any plugins don't exist, axe 'em 32 32 33 $check_plugins = get_ settings('active_plugins');33 $check_plugins = get_option('active_plugins'); 34 34 35 35 // Sanity check. If the active plugin list is not an array, make it an … … 44 44 foreach ($check_plugins as $check_plugin) { 45 45 if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) { 46 $current = get_ settings('active_plugins');46 $current = get_option('active_plugins'); 47 47 $key = array_search($check_plugin, $current); 48 48 if ( false !== $key && NULL !== $key ) { … … 68 68 <?php 69 69 70 if ( get_ settings('active_plugins') )71 $current_plugins = get_ settings('active_plugins');70 if ( get_option('active_plugins') ) 71 $current_plugins = get_option('active_plugins'); 72 72 73 73 $plugins = get_plugins(); trunk/wp-admin/post-new.php
r4082 r4144 12 12 <p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, in order to be authorized to post.<br /> 13 13 You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br /> 14 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_ settings('admin_email')); ?>14 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?> 15 15 </p> 16 16 </div> … … 63 63 if ($is_NS4 || $is_gecko) { 64 64 ?> 65 <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}location.href='<?php echo get_ settings('siteurl') ?>/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press It - %s'), wp_specialchars(get_settings('blogname'))); ?></a>65 <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}location.href='<?php echo get_option('siteurl') ?>/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press It - %s'), wp_specialchars(get_option('blogname'))); ?></a> 66 66 <?php 67 67 } else if ($is_winIE) { 68 68 ?> 69 <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;location.href='<?php echo get_ settings('siteurl') ?>/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>69 <a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;location.href='<?php echo get_option('siteurl') ?>/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press it - %s'), get_option('blogname')); ?></a> 70 70 <script type="text/javascript"> 71 71 <!-- … … 82 82 } else if ($is_opera) { 83 83 ?> 84 <a href="javascript:location.href='<?php echo get_ settings('siteurl'); ?>/wp-admin/post-new.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>84 <a href="javascript:location.href='<?php echo get_option('siteurl'); ?>/wp-admin/post-new.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_option('blogname')); ?></a> 85 85 <?php 86 86 } else if ($is_macIE) { 87 87 ?> 88 <a href="javascript:Q='';location.href='<?php echo get_ settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>88 <a href="javascript:Q='';location.href='<?php echo get_option('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_option('blogname')); ?></a> 89 89 <?php 90 90 } trunk/wp-admin/post.php
r4088 r4144 158 158 159 159 $sendback = wp_get_referer(); 160 if (strstr($sendback, 'post.php')) $sendback = get_ settings('siteurl') .'/wp-admin/post-new.php';161 elseif (strstr($sendback, 'attachments.php')) $sendback = get_ settings('siteurl') .'/wp-admin/attachments.php';160 if (strstr($sendback, 'post.php')) $sendback = get_option('siteurl') .'/wp-admin/post-new.php'; 161 elseif (strstr($sendback, 'attachments.php')) $sendback = get_option('siteurl') .'/wp-admin/attachments.php'; 162 162 $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback); 163 163 wp_redirect($sendback); trunk/wp-admin/update-links.php
r4006 r4144 17 17 $http_request = "POST /updated-batch/ HTTP/1.0\r\n"; 18 18 $http_request .= "Host: api.pingomatic.com\r\n"; 19 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_ settings('blog_charset')."\r\n";19 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_option('blog_charset')."\r\n"; 20 20 $http_request .= 'Content-Length: ' . strlen($query_string) . "\r\n"; 21 21 $http_request .= 'User-Agent: WordPress/' . $wp_version . "\r\n"; trunk/wp-admin/users.php
r4136 r4144 437 437 <div class="wrap"> 438 438 <h2 id="add-new-user"><?php _e('Add New User') ?></h2> 439 <?php echo '<p>'.sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_ settings('siteurl').'/wp-register.php').'</p>'; ?>439 <?php echo '<p>'.sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-register.php').'</p>'; ?> 440 440 <form action="#add-new-user" method="post" name="adduser" id="adduser"> 441 441 <?php wp_nonce_field('add-user') ?> … … 476 476 <?php 477 477 if ( !$new_user_role ) 478 $new_user_role = get_ settings('default_role');
