Changeset 4144
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 70 edited
Legend:
- Unmodified
- Added
- Removed
-
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');478 $new_user_role = get_option('default_role'); 479 479 wp_dropdown_roles($new_user_role); 480 480 ?> -
trunk/wp-atom.php
r2627 r4144 6 6 } 7 7 8 header('Content-type: application/atom+xml; charset=' . get_ settings('blog_charset'), true);8 header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 13 13 <feed version="0.3" 14 14 xmlns="http://purl.org/atom/ns#" … … 36 36 <?php the_category_rss('rdf') ?> 37 37 <summary type="text/plain" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> 38 <?php if ( !get_ settings('rss_use_excerpt') ) : ?>38 <?php if ( !get_option('rss_use_excerpt') ) : ?> 39 39 <content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 40 40 <?php endif; ?> … … 42 42 <?php do_action('atom_entry'); ?> 43 43 </entry> 44 <?php $items_count++; if (($items_count == get_ settings('posts_per_rss')) && empty($m)) { break; } } } ?>44 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?> 45 45 </feed> -
trunk/wp-comments-post.php
r3984 r4144 37 37 $comment_type = ''; 38 38 39 if ( get_ settings('require_name_email') && !$user->ID ) {39 if ( get_option('require_name_email') && !$user->ID ) { 40 40 if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 41 41 wp_die( __('Error: please fill the required fields (name, email).') ); -
trunk/wp-commentsrss2.php
r3644 r4144 6 6 } 7 7 8 header('Content-type: text/xml;charset=' . get_ settings('blog_charset'), true);8 header('Content-type: text/xml;charset=' . get_option('blog_charset'), true); 9 9 10 echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>';10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 11 11 ?> 12 12 <!-- generator="wordpress/<?php echo $wp_version ?>" --> … … 35 35 AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status = 'publish' 36 36 AND post_date_gmt < '" . gmdate("Y-m-d H:i:59") . "' 37 ORDER BY comment_date_gmt DESC LIMIT " . get_ settings('posts_per_rss') );37 ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') ); 38 38 } else { // if no post id passed in, we'll just ue the last 10 comments. 39 39 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, … … 42 42 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish' 43 43 AND $wpdb->comments.comment_approved = '1' AND post_date_gmt < '" . gmdate("Y-m-d H:i:s") . "' 44 ORDER BY comment_date_gmt DESC LIMIT " . get_ settings('posts_per_rss') );44 ORDER BY comment_date_gmt DESC LIMIT " . get_option('posts_per_rss') ); 45 45 } 46 46 // this line is WordPress' motor, do not delete it. -
trunk/wp-content/plugins/wp-db-backup.php
r4095 r4144 164 164 165 165 $this_basename = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__); 166 $download_uri = get_ settings('siteurl') . "/wp-admin/edit.php?page={$this_basename}&backup={$backup_filename}";166 $download_uri = get_option('siteurl') . "/wp-admin/edit.php?page={$this_basename}&backup={$backup_filename}"; 167 167 switch($_POST['deliver']) { 168 168 case 'http': … … 316 316 } elseif ('http' == $_POST['deliver']) { 317 317 $this_basename = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__); 318 header('Refresh: 3; ' . get_ settings('siteurl') . "/wp-admin/edit.php?page={$this_basename}&backup={$this->backup_file}");318 header('Refresh: 3; ' . get_option('siteurl') . "/wp-admin/edit.php?page={$this_basename}&backup={$this->backup_file}"); 319 319 } 320 320 // we do this to say we're done. … … 620 620 $msg = sprintf(__('File not found:%s'), "<br /><strong>$filename</strong><br />"); 621 621 $this_basename = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__); 622 $msg .= '<br /><a href="' . get_ settings('siteurl') . "/wp-admin/edit.php?page={$this_basename}" . '">' . __('Return to Backup');622 $msg .= '<br /><a href="' . get_option('siteurl') . "/wp-admin/edit.php?page={$this_basename}" . '">' . __('Return to Backup'); 623 623 die($msg); 624 624 } … … 633 633 634 634 if (! is_email ($recipient)) { 635 $recipient = get_ settings('admin_email');635 $recipient = get_option('admin_email'); 636 636 } 637 637 $randomish = md5(time()); … … 643 643 $headers = "MIME-Version: 1.0\n"; 644 644 $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\n"; 645 $headers .= 'From: ' . get_ settings('admin_email') . "\n";645 $headers .= 'From: ' . get_option('admin_email') . "\n"; 646 646 647 647 $message = sprintf(__("Attached to this email is\n %1s\n Size:%2s kilobytes\n"), $filename, round(filesize($diskfile)/1024)); … … 686 686 switch($_POST['deliver']) { 687 687 case 'http': 688 $feedback .= '<br />' . sprintf(__('Your backup file: <a href="%1s">%2s</a> should begin downloading shortly.'), get_ settings('siteurl') . "/{$this->backup_dir}{$this->backup_file}", $this->backup_file);688 $feedback .= '<br />' . sprintf(__('Your backup file: <a href="%1s">%2s</a> should begin downloading shortly.'), get_option('siteurl') . "/{$this->backup_dir}{$this->backup_file}", $this->backup_file); 689 689 break; 690 690 case 'smtp': 691 691 if (! is_email($_POST['backup_recipient'])) { 692 $feedback .= get_ settings('admin_email');692 $feedback .= get_option('admin_email'); 693 693 } else { 694 694 $feedback .= $_POST['backup_recipient']; … … 698 698 case 'none': 699 699 $feedback .= '<br />' . __('Your backup file has been saved on the server. If you would like to download it now, right click and select "Save As"'); 700 $feedback .= ':<br /> <a href="' . get_ settings('siteurl') . "/{$this->backup_dir}$file\">$file</a> : " . sprintf(__('%s bytes'), filesize(ABSPATH . $this->backup_dir . $file));700 $feedback .= ':<br /> <a href="' . get_option('siteurl') . "/{$this->backup_dir}$file\">$file</a> : " . sprintf(__('%s bytes'), filesize(ABSPATH . $this->backup_dir . $file)); 701 701 } 702 702 $feedback .= '</p></div>'; … … 782 782 echo '<label style="display:block;"><input type="radio" checked="checked" name="deliver" value="http" /> ' . __('Download to your computer') . '</label>'; 783 783 echo '<div><input type="radio" name="deliver" id="do_email" value="smtp" /> '; 784 echo '<label for="do_email">'.__('Email backup to:').'</label><input type="text" name="backup_recipient" size="20" value="' . get_ settings('admin_email') . '" />';784 echo '<label for="do_email">'.__('Email backup to:').'</label><input type="text" name="backup_recipient" size="20" value="' . get_option('admin_email') . '" />'; 785 785 786 786 // Check DB dize. … … 810 810 if (function_exists('wp_cron_init')) { 811 811 echo '<fieldset class="options"><legend>' . __('Scheduled Backup') . '</legend>'; 812 $datetime = get_ settings('date_format') . ' @ ' . get_settings('time_format');812 $datetime = get_option('date_format') . ' @ ' . get_option('time_format'); 813 813 echo '<p>' . __('Last WP-Cron Daily Execution') . ': ' . date($datetime, get_option('wp_cron_daily_lastrun')) . '<br />'; 814 814 echo __('Next WP-Cron Daily Execution') . ': ' . date($datetime, (get_option('wp_cron_daily_lastrun') + 86400)) . '</p>'; … … 829 829 $cron_recipient = get_option('wp_cron_backup_recipient'); 830 830 if (! is_email($cron_recipient)) { 831 $cron_recipient = get_ settings('admin_email');831 $cron_recipient = get_option('admin_email'); 832 832 } 833 833 echo __('Email backup to:') . ' <input type="text" name="cron_backup_recipient" size="20" value="' . $cron_recipient . '" />'; -
trunk/wp-content/themes/classic/comments-popup.php
r4133 r4144 7 7 <html xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 <title><?php echo get_ settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>9 <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> 10 10 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 12 12 <style type="text/css" media="screen"> 13 13 @import url( <?php bloginfo('stylesheet_url'); ?> ); … … 18 18 <body id="commentspopup"> 19 19 20 <h1 id="header"><a href="" title="<?php echo get_ settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 21 21 22 22 <h2 id="comments"><?php _e("Comments"); ?></h2> 23 23 24 <p><a href="<?php echo get_ settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>24 <p><a href="<?php echo get_option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> … … 56 56 <p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p> 57 57 58 <form action="<?php echo get_ settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">58 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 59 59 <p> 60 60 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> -
trunk/wp-content/themes/default/comments-popup.php
r4133 r4144 7 7 <html xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 <title><?php echo get_ settings('blogname'); ?> - Comments on <?php the_title(); ?></title>9 <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title> 10 10 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 12 12 <style type="text/css" media="screen"> 13 13 @import url( <?php bloginfo('stylesheet_url'); ?> ); … … 18 18 <body id="commentspopup"> 19 19 20 <h1 id="header"><a href="" title="<?php echo get_ settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 21 21 22 22 <h2 id="comments">Comments</h2> 23 23 24 <p><a href="<?php echo get_ settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>24 <p><a href="<?php echo get_option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> … … 56 56 <p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p> 57 57 58 <form action="<?php echo get_ settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">58 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 59 59 <p> 60 60 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> -
trunk/wp-content/themes/default/functions.php
r3998 r4144 22 22 23 23 function kubrick_header_image() { 24 return apply_filters('kubrick_header_image', get_ settings('kubrick_header_image'));24 return apply_filters('kubrick_header_image', get_option('kubrick_header_image')); 25 25 } 26 26 … … 51 51 52 52 function kubrick_header_color() { 53 return apply_filters('kubrick_header_color', get_ settings('kubrick_header_color'));53 return apply_filters('kubrick_header_color', get_option('kubrick_header_color')); 54 54 } 55 55 … … 63 63 64 64 function kubrick_header_display() { 65 return apply_filters('kubrick_header_display', get_ settings('kubrick_header_display'));65 return apply_filters('kubrick_header_display', get_option('kubrick_header_display')); 66 66 } 67 67 … … 94 94 95 95 if ( isset($_REQUEST['toggledisplay']) ) { 96 if ( false === get_ settings('kubrick_header_display') )96 if ( false === get_option('kubrick_header_display') ) 97 97 update_option('kubrick_header_display', 'none'); 98 98 else -
trunk/wp-content/themes/default/header.php
r3924 r4144 34 34 <div id="header"> 35 35 <div id="headerimg"> 36 <h1><a href="<?php echo get_ settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>36 <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> 37 37 <div class="description"><?php bloginfo('description'); ?></div> 38 38 </div> -
trunk/wp-includes/author-template.php
r4140 r4144 175 175 176 176 if ( empty($link) ) { 177 $file = get_ settings('home') . '/';177 $file = get_option('home') . '/'; 178 178 $link = $file . '?author=' . $auth_ID; 179 179 } else { … … 184 184 } 185 185 $link = str_replace('%author%', $author_nicename, $link); 186 $link = get_ settings('home') . trailingslashit($link);186 $link = get_option('home') . trailingslashit($link); 187 187 } 188 188 -
trunk/wp-includes/bookmark-template.php
r4108 r4144 94 94 $output .= $before; 95 95 if ( $show_updated && $row->recently_updated ) 96 $output .= get_ settings('links_recently_updated_prepend');96 $output .= get_option('links_recently_updated_prepend'); 97 97 $the_link = '#'; 98 98 if ( !empty($row->link_url) ) … … 108 108 if ( $show_updated ) 109 109 if (substr($row->link_updated_f, 0, 2) != '00') 110 $title .= ' (Last updated ' . date(get_ settings('links_updated_date_format'), $row->link_updated_f + (get_settings('gmt_offset') * 3600)) . ')';110 $title .= ' (Last updated ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) . ')'; 111 111 112 112 if ( '' != $title ) … … 125 125 $output .= "<img src=\"$row->link_image\" $alt $title />"; 126 126 else // If it's a relative path 127 $output .= "<img src=\"" . get_ settings('siteurl') . "$row->link_image\" $alt $title />";127 $output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />"; 128 128 } else { 129 129 $output .= $name; … … 133 133 134 134 if ( $show_updated && $row->recently_updated ) 135 $output .= get_ settings('links_recently_updated_append');135 $output .= get_option('links_recently_updated_append'); 136 136 137 137 if ( $show_description && '' != $desc ) … … 257 257 $output .= $before; 258 258 if ( $show_updated && $bookmark->recently_updated ) 259 $output .= get_ settings('links_recently_updated_prepend');259 $output .= get_option('links_recently_updated_prepend'); 260 260 261 261 $the_link = '#'; … … 273 273 if ( $show_updated ) 274 274 if ( '00' != substr($bookmark->link_updated_f, 0, 2) ) 275 $title .= ' (Last updated ' . date(get_ settings('links_updated_date_format'), $bookmark->link_updated_f + (get_settings('gmt_offset') * 3600)) . ')';275 $title .= ' (Last updated ' . date(get_option('links_updated_date_format'), $bookmark->link_updated_f + (get_option('gmt_offset') * 3600)) . ')'; 276 276 277 277 if ( '' != $title ) … … 290 290 $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; 291 291 else // If it's a relative path 292 $output .= "<img src=\"" . get_ settings('siteurl') . "$bookmark->link_image\" $alt $title />";292 $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />"; 293 293 } else { 294 294 $output .= $name; … … 298 298 299 299 if ( $show_updated && $bookmark->recently_updated ) 300 $output .= get_ settings('links_recently_updated_append');300 $output .= get_option('links_recently_updated_append'); 301 301 302 302 if ( $show_description && '' != $desc ) -
trunk/wp-includes/bookmark.php
r3845 r4144 92 92 } 93 93 94 if (get_ settings('links_recently_updated_time')) {95 $recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL " . get_ settings('links_recently_updated_time') . " MINUTE) >= NOW(), 1,0) as recently_updated ";94 if (get_option('links_recently_updated_time')) { 95 $recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL " . get_option('links_recently_updated_time') . " MINUTE) >= NOW(), 1,0) as recently_updated "; 96 96 } else { 97 97 $recently_updated_test = ''; -
trunk/wp-includes/category-template.php
r3881 r4144 24 24 25 25 if ( empty($catlink) ) { 26 $file = get_ settings('home') . '/';26 $file = get_option('home') . '/'; 27 27 $catlink = $file . '?cat=' . $category_id; 28 28 } else { … … 34 34 35 35 $catlink = str_replace('%category%', $category_nicename, $catlink); 36 $catlink = get_ settings('home') . trailingslashit($catlink);36 $catlink = get_option('home') . trailingslashit($catlink); 37 37 } 38 38 return apply_filters('category_link', $catlink, $category_id); -
trunk/wp-includes/classes.php
r4141 r4144 9 9 global $wpdb; 10 10 11 $list = explode("\n", get_ settings('moderation_keys') );11 $list = explode("\n", get_option('moderation_keys') ); 12 12 $list = array_unique( $list ); 13 13 $this->spam_words = $list; … … 117 117 $req_uri = $req_uri_array[0]; 118 118 $self = $_SERVER['PHP_SELF']; 119 $home_path = parse_url(get_ settings('home'));119 $home_path = parse_url(get_option('home')); 120 120 $home_path = $home_path['path']; 121 121 $home_path = trim($home_path, '/'); -
trunk/wp-includes/comment-template.php
r3995 r4144 91 91 global $comment; 92 92 if ( '' == $d ) 93 $date = mysql2date( get_ settings('date_format'), $comment->comment_date);93 $date = mysql2date( get_option('date_format'), $comment->comment_date); 94 94 else 95 95 $date = mysql2date($d, $comment->comment_date); … … 188 188 $comment_date = $gmt? $comment->comment_date_gmt : $comment->comment_date; 189 189 if ( '' == $d ) 190 $date = mysql2date(get_ settings('time_format'), $comment_date);190 $date = mysql2date(get_option('time_format'), $comment_date); 191 191 else 192 192 $date = mysql2date($d, $comment_date); … … 223 223 function get_trackback_url() { 224 224 global $id; 225 $tb_url = get_ settings('siteurl') . '/wp-trackback.php?p=' . $id;226 227 if ( '' != get_ settings('permalink_structure') )225 $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id; 226 227 if ( '' != get_option('permalink_structure') ) 228 228 $tb_url = trailingslashit(get_permalink()) . 'trackback/'; 229 229 … … 277 277 return; 278 278 279 $req = get_ settings('require_name_email');279 $req = get_option('require_name_email'); 280 280 $commenter = wp_get_current_commenter(); 281 281 extract($commenter); … … 335 335 if ($wpcommentsjavascript) { 336 336 if ( empty($wpcommentspopupfile) ) 337 $home = get_ settings('home');337 $home = get_option('home'); 338 338 else 339 $home = get_ settings('siteurl');339 $home = get_option('siteurl'); 340 340 echo $home . '/' . $wpcommentspopupfile.'?comments_popup='.$id; 341 341 echo '" onclick="wpopen(this.href); return false"'; -
trunk/wp-includes/comment.php
r4133 r4144 4 4 global $wpdb; 5 5 6 if (1 == get_ settings('comment_moderation')) return false; // If moderation is set to manual7 8 if ( (count(explode('http:', $comment)) - 1) >= get_ settings('comment_max_links') )6 if (1 == get_option('comment_moderation')) return false; // If moderation is set to manual 7 8 if ( (count(explode('http:', $comment)) - 1) >= get_option('comment_max_links') ) 9 9 return false; // Check # of external links 10 10 11 $mod_keys = trim( get_ settings('moderation_keys') );11 $mod_keys = trim( get_option('moderation_keys') ); 12 12 if ( !empty($mod_keys) ) { 13 13 $words = explode("\n", $mod_keys ); … … 34 34 35 35 // Comment whitelisting: 36 if ( 1 == get_ settings('comment_whitelist')) {36 if ( 1 == get_option('comment_whitelist')) { 37 37 if ( 'trackback' == $comment_type || 'pingback' == $comment_type ) { // check if domain is in blogroll 38 38 $uri = parse_url($url); … … 125 125 function get_lastcommentmodified($timezone = 'server') { 126 126 global $cache_lastcommentmodified, $pagenow, $wpdb; 127 $add_seconds_blog = get_ settings('gmt_offset') * 3600;127 $add_seconds_blog = get_option('gmt_offset') * 3600; 128 128 $add_seconds_server = date('Z'); 129 129 $now = current_time('mysql', 1); … … 234 234 } 235 235 236 $mod_keys = trim( get_ settings('blacklist_keys') );236 $mod_keys = trim( get_option('blacklist_keys') ); 237 237 if ('' == $mod_keys ) 238 238 return false; // If moderation keys are empty … … 387 387 $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment 388 388 389 if ( get_ settings('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_ID'] )389 if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_ID'] ) 390 390 wp_notify_postauthor($comment_ID, $commentdata['comment_type']); 391 391 } … … 617 617 $excerpt = strip_tags($excerpt); 618 618 if ( function_exists('mb_strcut') ) // For international trackbacks 619 $excerpt = mb_strcut($excerpt, 0, 252, get_ settings('blog_charset')) . '...';619 $excerpt = mb_strcut($excerpt, 0, 252, get_option('blog_charset')) . '...'; 620 620 else 621 621 $excerpt = substr($excerpt, 0, 252) . '...'; … … 636 636 637 637 function generic_ping($post_id = 0) { 638 $services = get_ settings('ping_sites');638 $services = get_option('ping_sites'); 639 639 $services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines 640 640 $services = trim($services); … … 745 745 $title = urlencode($title); 746 746 $excerpt = urlencode($excerpt); 747 $blog_name = urlencode(get_ settings('blogname'));747 $blog_name = urlencode(get_option('blogname')); 748 748 $tb_url = $trackback_url; 749 749 $url = urlencode(get_permalink($ID)); … … 752 752 $http_request = 'POST ' . $trackback_url['path'] . ($trackback_url['query'] ? '?'.$trackback_url['query'] : '') . " HTTP/1.0\r\n"; 753 753 $http_request .= 'Host: '.$trackback_url['host']."\r\n"; 754 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_ settings('blog_charset')."\r\n";754 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_option('blog_charset')."\r\n"; 755 755 $http_request .= 'Content-Length: '.strlen($query_string)."\r\n"; 756 756 $http_request .= "User-Agent: WordPress/" . $wp_version; … … 790 790 $client->debug = false; 791 791 $home = trailingslashit( get_option('home') ); 792 if ( !$client->query('weblogUpdates.extendedPing', get_ settings('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping793 $client->query('weblogUpdates.ping', get_ settings('blogname'), $home);792 if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping 793 $client->query('weblogUpdates.ping', get_option('blogname'), $home); 794 794 } 795 795 -
trunk/wp-includes/cron.php
r4077 r4144 81 81 return; 82 82 83 $cron_url = get_ settings( 'siteurl' ) . '/wp-cron.php';83 $cron_url = get_option( 'siteurl' ) . '/wp-cron.php'; 84 84 $parts = parse_url( $cron_url ); 85 85 -
trunk/wp-includes/deprecated.php
r4142 r4144 492 492 } 493 493 494 function get_settings($option) { 495 return get_option($option); 496 } 497 494 498 ?> -
trunk/wp-includes/feed.php
r3862 r4144 88 88 global $id; 89 89 90 if ('' != get_ settings('permalink_structure'))90 if ('' != get_option('permalink_structure')) 91 91 $url = trailingslashit( get_permalink() ) . 'feed/'; 92 92 else 93 $url = get_ settings('home') . "/$commentsrssfilename?feed=rss2&p=$id";93 $url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id"; 94 94 95 95 return apply_filters('post_comments_feed_link', $url); … … 98 98 function get_author_rss_link($echo = false, $author_id, $author_nicename) { 99 99 $auth_ID = $author_id; 100 $permalink_structure = get_ settings('permalink_structure');100 $permalink_structure = get_option('permalink_structure'); 101 101 102 102 if ('' == $permalink_structure) { 103 $link = get_ settings('home') . '?feed=rss2&author=' . $author_id;103 $link = get_option('home') . '?feed=rss2&author=' . $author_id; 104 104 } else { 105 105 $link = get_author_link(0, $author_id, $author_nicename); … … 114 114 115 115 function get_category_rss_link($echo = false, $cat_ID, $category_nicename) { 116 $permalink_structure = get_ settings('permalink_structure');116 $permalink_structure = get_option('permalink_structure'); 117 117 118 118 if ('' == $permalink_structure) { 119 $link = get_ settings('home') . '?feed=rss2&cat=' . $cat_ID;119 $link = get_option('home') . '?feed=rss2&cat=' . $cat_ID; 120 120 } else { 121 121 $link = get_category_link($cat_ID); -
trunk/wp-includes/formatting.php
r4135 r4144 607 607 global $wp_smiliessearch, $wp_smiliesreplace; 608 608 $output = ''; 609 if (get_ settings('use_smilies')) {609 if (get_option('use_smilies')) { 610 610 // HTML loop taken from texturize function, could possible be consolidated 611 611 $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between … … 657 657 preg_match('#([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})#', $string, $matches); 658 658 $string_time = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]); 659 $string_gmt = gmdate('Y-m-d H:i:s', $string_time - get_ settings('gmt_offset') * 3600);659 $string_gmt = gmdate('Y-m-d H:i:s', $string_time - get_option('gmt_offset') * 3600); 660 660 return $string_gmt; 661 661 } … … 666 666 preg_match('#([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})#', $string, $matches); 667 667 $string_time = gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]); 668 $string_localtime = gmdate('Y-m-d H:i:s', $string_time + get_ settings('gmt_offset')*3600);668 $string_localtime = gmdate('Y-m-d H:i:s', $string_time + get_option('gmt_offset')*3600); 669 669 return $string_localtime; 670 670 } … … 691 691 $offset = iso8601_timezone_to_offset($date_bits[7]); 692 692 } else { // we don't have a timezone, so we assume user local timezone (not server's!) 693 $offset = 3600 * get_ settings('gmt_offset');693 $offset = 3600 * get_option('gmt_offset'); 694 694 } 695 695 $timestamp = gmmktime($date_bits[4], $date_bits[5], $date_bits[6], $date_bits[2], $date_bits[3], $date_bits[1]); -
trunk/wp-includes/functions.php
r4127 r4144 46 46 case 'mysql': 47 47 if ( $gmt ) $d = gmdate('Y-m-d H:i:s'); 48 else $d = gmdate('Y-m-d H:i:s', (time() + (get_ settings('gmt_offset') * 3600)));48 else $d = gmdate('Y-m-d H:i:s', (time() + (get_option('gmt_offset') * 3600))); 49 49 return $d; 50 50 break; 51 51 case 'timestamp': 52 52 if ( $gmt ) $d = time(); 53 else $d = time() + (get_ settings('gmt_offset') * 3600);53 else $d = time() + (get_option('gmt_offset') * 3600); 54 54 return $d; 55 55 break; … … 89 89 $i = 86400; 90 90 91 if ( $weekday < get_ settings('start_of_week') )92 $weekday = 7 - (get_ settings('start_of_week') - $weekday);93 94 while ($weekday > get_ settings('start_of_week')) {91 if ( $weekday < get_option('start_of_week') ) 92 $weekday = 7 - (get_option('start_of_week') - $weekday); 93 94 while ($weekday > get_option('start_of_week')) { 95 95 $weekday = date('w',$day); 96 if ( $weekday < get_ settings('start_of_week') )97 $weekday = 7 - (get_ settings('start_of_week') - $weekday);96 if ( $weekday < get_option('start_of_week') ) 97 $weekday = 7 - (get_option('start_of_week') - $weekday); 98 98 99 99 $day = $day - 86400; … … 108 108 function get_lastpostdate($timezone = 'server') { 109 109 global $cache_lastpostdate, $pagenow, $wpdb; 110 $add_seconds_blog = get_ settings('gmt_offset') * 3600;110 $add_seconds_blog = get_option('gmt_offset') * 3600; 111 111 $add_seconds_server = date('Z'); 112 112 if ( !isset($cache_lastpostdate[$timezone]) ) { … … 131 131 function get_lastpostmodified($timezone = 'server') { 132 132 global $cache_lastpostmodified, $pagenow, $wpdb; 133 $add_seconds_blog = get_ settings('gmt_offset') * 3600;133 $add_seconds_blog = get_option('gmt_offset') * 3600; 134 134 $add_seconds_server = date('Z'); 135 135 if ( !isset($cache_lastpostmodified[$timezone]) ) { … … 165 165 /* Options functions */ 166 166 167 function get_ settings($setting) {167 function get_option($setting) { 168 168 global $wpdb; 169 169 … … 187 187 // If home is not set use siteurl. 188 188 if ( 'home' == $setting && '' == $value ) 189 return get_ settings('siteurl');189 return get_option('siteurl'); 190 190 191 191 if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting ) … … 193 193 194 194 return apply_filters( 'option_' . $setting, maybe_unserialize($value) ); 195 }196 197 function get_option($option) {198 return get_settings($option);199 195 } 200 196 … … 291 287 292 288 function gzip_compression() { 293 if ( !get_ settings('gzipcompression') ) return false;289 if ( !get_option('gzipcompression') ) return false; 294 290 295 291 if ( extension_loaded('zlib') ) { … … 325 321 $link_text = $matches[4][$i]; 326 322 $content = str_replace($link_match, $link_text.' '.$link_number, $content); 327 $link_url = ((strtolower(substr($link_url,0,7)) != 'http://') && (strtolower(substr($link_url,0,8)) != 'https://')) ? get_ settings('home') . $link_url : $link_url;323 $link_url = ((strtolower(substr($link_url,0,7)) != 'http://') && (strtolower(substr($link_url,0,8)) != 'https://')) ? get_option('home') . $link_url : $link_url; 328 324 $links_summary .= "\n".$link_number.' '.$link_url; 329 325 } … … 882 878 // Returns an array containing the current upload directory's path and url, or an error message. 883 879 function wp_upload_dir() { 884 $siteurl = get_ settings('siteurl');880 $siteurl = get_option('siteurl'); 885 881 //prepend ABSPATH to $dir and $siteurl to $url if they're not already there 886 $path = str_replace(ABSPATH, '', trim(get_ settings('upload_path')));882 $path = str_replace(ABSPATH, '', trim(get_option('upload_path'))); 887 883 $dir = ABSPATH . $path; 888 884 $url = trailingslashit($siteurl) . $path; … … 897 893 } 898 894 899 if ( get_ settings('uploads_use_yearmonth_folders')) {895 if ( get_option('uploads_use_yearmonth_folders')) { 900 896 // Generate the yearly and monthly dirs 901 897 $time = current_time( 'mysql' ); … … 1102 1098 global $pagenow, $menu, $submenu, $parent_file, $submenu_file; 1103 1099 1104 $adminurl = get_ settings('siteurl') . '/wp-admin';1100 $adminurl = get_option('siteurl') . '/wp-admin'; 1105 1101 if ( wp_get_referer() ) 1106 1102 $adminurl = wp_get_referer(); … … 1177 1173 </head> 1178 1174 <body> 1179 <h1 id="logo"><img alt="WordPress" src="<?php echo get_ settings('siteurl'); ?>/wp-admin/images/wordpress-logo.png" /></h1>1175 <h1 id="logo"><img alt="WordPress" src="<?php echo get_option('siteurl'); ?>/wp-admin/images/wordpress-logo.png" /></h1> 1180 1176 <p><?php echo $message; ?></p> 1181 1177 </body> -
trunk/wp-includes/general-template.php
r4138 r4144 29 29 function wp_loginout() { 30 30 if ( ! is_user_logged_in() ) 31 $link = '<a href="' . get_ settings('siteurl') . '/wp-login.php">' . __('Login') . '</a>';32 else 33 $link = '<a href="' . get_ settings('siteurl') . '/wp-login.php?action=logout">' . __('Logout') . '</a>';31 $link = '<a href="' . get_option('siteurl') . '/wp-login.php">' . __('Login') . '</a>'; 32 else 33 $link = '<a href="' . get_option('siteurl') . '/wp-login.php?action=logout">' . __('Logout') . '</a>'; 34 34 35 35 echo apply_filters('loginout', $link); … … 40 40 41 41 if ( ! is_user_logged_in() ) { 42 if ( get_ settings('users_can_register') )43 $link = $before . '<a href="' . get_ settings('siteurl') . '/wp-register.php">' . __('Register') . '</a>' . $after;42 if ( get_option('users_can_register') ) 43 $link = $before . '<a href="' . get_option('siteurl') . '/wp-register.php">' . __('Register') . '</a>' . $after; 44 44 else 45 45 $link = ''; 46 46 } else { 47 $link = $before . '<a href="' . get_ settings('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;47 $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after; 48 48 } 49 49 … … 76 76 case 'home' : 77 77 case 'siteurl' : 78 $output = get_ settings('home');78 $output = get_option('home'); 79 79 break; 80 80 case 'wpurl' : 81 $output = get_ settings('siteurl');81 $output = get_option('siteurl'); 82 82 break; 83 83 case 'description': 84 $output = get_ settings('blogdescription');84 $output = get_option('blogdescription'); 85 85 break; 86 86 case 'rdf_url': … … 100 100 break; 101 101 case 'pingback_url': 102 $output = get_ settings('siteurl') .'/xmlrpc.php';102 $output = get_option('siteurl') .'/xmlrpc.php'; 103 103 break; 104 104 case 'stylesheet_url': … … 113 113 break; 114 114 case 'admin_email': 115 $output = get_ settings('admin_email');115 $output = get_option('admin_email'); 116 116 break; 117 117 case 'charset': 118 $output = get_ settings('blog_charset');118 $output = get_option('blog_charset'); 119 119 if ('' == $output) $output = 'UTF-8'; 120 120 break; … … 128 128 case 'name': 129 129 default: 130 $output = get_ settings('blogname');130 $output = get_option('blogname'); 131 131 break; 132 132 } … … 310 310 311 311 if ( !$archive_date_format_over_ride ) { 312 $archive_day_date_format = get_ settings('date_format');313 $archive_week_start_date_format = get_ settings('date_format');314 $archive_week_end_date_format = get_ settings('date_format');315 } 316 317 $add_hours = intval(get_ settings('gmt_offset'));318 $add_minutes = intval(60 * (get_ settings('gmt_offset') - $add_hours));312 $archive_day_date_format = get_option('date_format'); 313 $archive_week_start_date_format = get_option('date_format'); 314 $archive_week_end_date_format = get_option('date_format'); 315 } 316 317 $add_hours = intval(get_option('gmt_offset')); 318 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours)); 319 319 320 320 if ( 'monthly' == $type ) { … … 359 359 } 360 360 } elseif ( 'weekly' == $type ) { 361 $start_of_week = get_ settings('start_of_week');361 $start_of_week = get_option('start_of_week'); 362 362 $arcresults = $wpdb->get_results("SELECT DISTINCT WEEK(post_date, $start_of_week) AS `week`, YEAR(post_date) AS yr, DATE_FORMAT(post_date, '%Y-%m-%d') AS yyyymmdd FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 363 363 $arc_w_last = ''; … … 367 367 $arc_year = $arcresult->yr; 368 368 $arc_w_last = $arcresult->week; 369 $arc_week = get_weekstartend($arcresult->yyyymmdd, get_ settings('start_of_week'));369 $arc_week = get_weekstartend($arcresult->yyyymmdd, get_option('start_of_week')); 370 370 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 371 371 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); 372 $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_ settings('home'), '', '?', '=', $arc_year, '&', '=', $arcresult->week);372 $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_option('home'), '', '?', '=', $arc_year, '&', '=', $arcresult->week); 373 373 $text = $arc_week_start . $archive_week_separator . $arc_week_end; 374 374 echo get_archives_link($url, $text, $format, $before, $after); … … 417 417 418 418 // week_begins = 0 stands for Sunday 419 $week_begins = intval(get_ settings('start_of_week'));420 $add_hours = intval(get_ settings('gmt_offset'));421 $add_minutes = intval(60 * (get_ settings('gmt_offset') - $add_hours));419 $week_begins = intval(get_option('start_of_week')); 420 $add_hours = intval(get_option('gmt_offset')); 421 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours)); 422 422 423 423 // Let's figure out when we are … … 438 438 $thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2); 439 439 } else { 440 $thisyear = gmdate('Y', current_time('timestamp') + get_ settings('gmt_offset') * 3600);441 $thismonth = gmdate('m', current_time('timestamp') + get_ settings('gmt_offset') * 3600);440 $thisyear = gmdate('Y', current_time('timestamp') + get_option('gmt_offset') * 3600); 441 $thismonth = gmdate('m', current_time('timestamp') + get_option('gmt_offset') * 3600); 442 442 } 443 443 … … 559 559 $newrow = false; 560 560 561 if ( $day == gmdate('j', (time() + (get_ settings('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_settings('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_settings('gmt_offset') * 3600)) )561 if ( $day == gmdate('j', (time() + (get_option('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_option('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_option('gmt_offset') * 3600)) ) 562 562 echo '<td id="today">'; 563 563 else … … 614 614 $the_date .= $before; 615 615 if ( $d=='' ) 616 $the_date .= mysql2date(get_ settings('date_format'), $post->post_date);616 $the_date .= mysql2date(get_option('date_format'), $post->post_date); 617 617 else 618 618 $the_date .= mysql2date($d, $post->post_date); … … 635 635 function get_the_modified_date($d = '') { 636 636 if ( '' == $d ) 637 $the_time = get_post_modified_time(get_ settings('date_format'));637 $the_time = get_post_modified_time(get_option('date_format')); 638 638 else 639 639 $the_time = get_post_modified_time($d); … … 649 649 function get_the_time( $d = '' ) { 650 650 if ( '' == $d ) 651 $the_time = get_post_time(get_ settings('time_format'));651 $the_time = get_post_time(get_option('time_format')); 652 652 else 653 653 $the_time = get_post_time($d); … … 675 675 function get_the_modified_time($d = '') { 676 676 if ( '' == $d ) 677 $the_time = get_post_modified_time(get_ settings('time_format'));677 $the_time = get_post_modified_time(get_option('time_format')); 678 678 else 679 679 $the_time = get_post_modified_time($d); … … 742 742 */ 743 743 function the_editor($content, $id = 'content', $prev_id = 'title') { 744 $rows = get_ settings('default_post_edit_rows');744 $rows = get_option('default_post_edit_rows'); 745 745 if (($rows < 3) || ($rows > 100)) 746 746 $rows = 12; -
trunk/wp-includes/js/tinymce/wp-mce-help.php
r3664 r4144 8 8 <head> 9 9 <title><?php _e('Rich Editor Help') ?></title> 10 <link rel="stylesheet" href="<?php echo get_ settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />10 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 11 11 <style type="text/css"> 12 12 #wphead { -
trunk/wp-includes/link-template.php
r4133 r4144 48 48 return get_attachment_link($post->ID); 49 49 50 $permalink = get_ settings('permalink_structure');50 $permalink = get_option('permalink_structure'); 51 51 52 52 if ( '' != $permalink && 'draft' != $post->post_status ) { … … 78 78 $post->post_name, 79 79 ); 80 return apply_filters('post_link', get_ settings('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post);80 return apply_filters('post_link', get_option('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post); 81 81 } else { // if they're not using the fancy permalink option 82 $permalink = get_ settings('home') . '/?p=' . $post->ID;82 $permalink = get_option('home') . '/?p=' . $post->ID; 83 83 return apply_filters('post_link', $permalink, $post); 84 84 } … … 101 101 $link = get_page_uri($id); 102 102 $link = str_replace('%pagename%', $link, $pagestruct); 103 $link = get_ settings('home') . "/$link/";104 } else { 105 $link = get_ settings('home') . "/?page_id=$id";103 $link = get_option('home') . "/$link/"; 104 } else { 105 $link = get_option('home') . "/?page_id=$id"; 106 106 } 107 107 108 108 if ( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) 109 $link = get_ settings('home');109 $link = get_option('home'); 110 110 111 111 return apply_filters('page_link', $link, $id); … … 139 139 global $wp_rewrite; 140 140 if ( !$year ) 141 $year = gmdate('Y', time()+(get_ settings('gmt_offset') * 3600));141 $year = gmdate('Y', time()+(get_option('gmt_offset') * 3600)); 142 142 $yearlink = $wp_rewrite->get_year_permastruct(); 143 143 if ( !empty($yearlink) ) { 144 144 $yearlink = str_replace('%year%', $year, $yearlink); 145 return apply_filters('year_link', get_ settings('home') . trailingslashit($yearlink), $year);146 } else { 147 return apply_filters('year_link', get_ settings('home') . '/?m=' . $year, $year);145 return apply_filters('year_link', get_option('home') . trailingslashit($yearlink), $year); 146 } else { 147 return apply_filters('year_link', get_option('home') . '/?m=' . $year, $year); 148 148 } 149 149 } … … 152 152 global $wp_rewrite; 153 153 if ( !$year ) 154 $year = gmdate('Y', time()+(get_ settings('gmt_offset') * 3600));154 $year = gmdate('Y', time()+(get_option('gmt_offset') * 3600)); 155 155 if ( !$month ) 156 $month = gmdate('m', time()+(get_ settings('gmt_offset') * 3600));156 $month = gmdate('m', time()+(get_option('gmt_offset') * 3600)); 157 157 $monthlink = $wp_rewrite->get_month_permastruct(); 158 158 if ( !empty($monthlink) ) { 159 159 $monthlink = str_replace('%year%', $year, $monthlink); 160 160 $monthlink = str_replace('%monthnum%', zeroise(intval($month), 2), $monthlink); 161 return apply_filters('month_link', get_ settings('home') . trailingslashit($monthlink), $year, $month);162 } else { 163 return apply_filters('month_link', get_ settings('home') . '/?m=' . $year . zeroise($month, 2), $year, $month);161 return apply_filters('month_link', get_option('home') . trailingslashit($monthlink), $year, $month); 162 } else { 163 return apply_filters('month_link', get_option('home') . '/?m=' . $year . zeroise($month, 2), $year, $month); 164 164 } 165 165 } … … 168 168 global $wp_rewrite; 169 169 if ( !$year ) 170 $year = gmdate('Y', time()+(get_ settings('gmt_offset') * 3600));170 $year = gmdate('Y', time()+(get_option('gmt_offset') * 3600)); 171 171 if ( !$month ) 172 $month = gmdate('m', time()+(get_ settings('gmt_offset') * 3600));172 $month = gmdate('m', time()+(get_option('gmt_offset') * 3600)); 173 173 if ( !$day ) 174 $day = gmdate('j', time()+(get_ settings('gmt_offset') * 3600));174 $day = gmdate('j', time()+(get_option('gmt_offset') * 3600)); 175 175 176 176 $daylink = $wp_rewrite->get_day_permastruct(); … … 179 179 $daylink = str_replace('%monthnum%', zeroise(intval($month), 2), $daylink); 180 180 $daylink = str_replace('%day%', zeroise(intval($day), 2), $daylink); 181 return apply_filters('day_link', get_ settings('home') . trailingslashit($daylink), $year, $month, $day);182 } else { 183 return apply_filters('day_link', get_ settings('home') . '/?m=' . $year . zeroise($month, 2) . zeroise($day, 2), $year, $month, $day);181 return apply_filters('day_link', get_option('home') . trailingslashit($daylink), $year, $month, $day); 182 } else { 183 return apply_filters('day_link', get_option('home') . '/?m=' . $year . zeroise($month, 2) . zeroise($day, 2), $year, $month, $day); 184 184 } 185 185 } … … 188 188 global $wp_rewrite; 189 189 $do_perma = 0; 190 $feed_url = get_ settings('siteurl');190 $feed_url = get_option('siteurl'); 191 191 $comment_feed_url = $feed_url; 192 192 … … 203 203 $permalink = str_replace('%feed%', $feed, $permalink); 204 204 $permalink = preg_replace('#/+#', '/', "/$permalink/"); 205 $output = get_ settings('home') . $permalink;205 $output = get_option('home') . $permalink; 206 206 } else { 207 207 if ( false !== strpos($feed, 'comments_') ) 208 208 $feed = str_replace('comments_', 'comments-', $feed); 209 209 210 $output = get_ settings('home') . "/?feed={$feed}";210 $output = get_option('home') . "/?feed={$feed}"; 211 211 } 212 212 … … 230 230 } 231 231 232 $location = get_ settings('siteurl') . "/wp-admin/{$file}.php?action=edit&post=$post->ID";232 $location = get_option('siteurl') . "/wp-admin/{$file}.php?action=edit&post=$post->ID"; 233 233 echo $before . "<a href=\"$location\">$link</a>" . $after; 234 234 } … … 245 245 } 246 246 247 $location = get_ settings('siteurl') . "/wp-admin/comment.php?action=editcomment&comment=$comment->comment_ID";247 $location = get_option('siteurl') . "/wp-admin/comment.php?action=editcomment&comment=$comment->comment_ID"; 248 248 echo $before . "<a href='$location'>$link</a>" . $after; 249 249 } … … 363 363 $permalink = 0; 364 364 365 $home_root = parse_url(get_ settings('home'));365 $home_root = parse_url(get_option('home')); 366 366 $home_root = $home_root['path']; 367 367 $home_root = trailingslashit($home_root); … … 391 391 $qstr .= '&' . $page_querystring . '=' . $pagenum; 392 392 // otherwise, it could be rewritten, OR just the default index ... 393 } elseif( '' != get_ settings('permalink_structure') && ! is_admin() ) {393 } elseif( '' != get_option('permalink_structure') && ! is_admin() ) { 394 394 $permalink = 1; 395 395 $index = $wp_rewrite->index; … … 413 413 if ( $permalink ) 414 414 $qstr = trailingslashit($qstr); 415 $qstr = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_ settings('home') ) . $qstr );415 $qstr = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_option('home') ) . $qstr ); 416 416 417 417 // showing /page/1/ or ?paged=1 is redundant -
trunk/wp-includes/pluggable.php
r4133 r4144 164 164 $headers = "MIME-Version: 1.0\n" . 165 165 "From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" . 166 "Content-Type: text/plain; charset=\"" . get_ settings('blog_charset') . "\"\n";166 "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 167 167 } 168 168 … … 222 222 nocache_headers(); 223 223 224 wp_redirect(get_ settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));224 wp_redirect(get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI'])); 225 225 exit(); 226 226 } … … 230 230 if ( !function_exists('check_admin_referer') ) : 231 231 function check_admin_referer($action = -1) { 232 $adminurl = strtolower(get_ settings('siteurl')).'/wp-admin';232 $adminurl = strtolower(get_option('siteurl')).'/wp-admin'; 233 233 $referer = strtolower(wp_get_referer()); 234 234 if ( !wp_verify_nonce($_REQUEST['_wpnonce'], $action) && … … 338 338 $comment_author_domain = gethostbyaddr($comment->comment_author_IP); 339 339 340 $blogname = get_ settings('blogname');340 $blogname = get_option('blogname'); 341 341 342 342 if ( empty( $comment_type ) ) $comment_type = 'comment'; … … 367 367 } 368 368 $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n"; 369 $notify_message .= sprintf( __('To delete this comment, visit: %s'), get_ settings('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n";370 $notify_message .= sprintf( __('To mark this comment as spam, visit: %s'), get_ settings('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&delete_type=spam&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n";369 $notify_message .= sprintf( __('To delete this comment, visit: %s'), get_option('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; 370 $notify_message .= sprintf( __('To mark this comment as spam, visit: %s'), get_option('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&delete_type=spam&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; 371 371 372 372 $wp_email = 'wordpress@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])); … … 384 384 $message_headers = "MIME-Version: 1.0\n" 385 385 . "$from\n" 386 . "Content-Type: text/plain; charset=\"" . get_ settings('blog_charset') . "\"\n";386 . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 387 387 388 388 if ( isset($reply_to) ) … … 408 408 global $wpdb; 409 409 410 if( get_ settings( "moderation_notify" ) == 0 )410 if( get_option( "moderation_notify" ) == 0 ) 411 411 return true; 412 412 … … 424 424 $notify_message .= sprintf( __('Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n"; 425 425 $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 426 $notify_message .= sprintf( __('To approve this comment, visit: %s'), get_ settings('siteurl').'/wp-admin/comment.php?action=mailapprovecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n";427 $notify_message .= sprintf( __('To delete this comment, visit: %s'), get_ settings('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n";428 $notify_message .= sprintf( __('To mark this comment as spam, visit: %s'), get_ settings('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&delete_type=spam&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n";426 $notify_message .= sprintf( __('To approve this comment, visit: %s'), get_option('siteurl').'/wp-admin/comment.php?action=mailapprovecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; 427 $notify_message .= sprintf( __('To delete this comment, visit: %s'), get_option('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; 428 $notify_message .= sprintf( __('To mark this comment as spam, visit: %s'), get_option('siteurl').'/wp-admin/comment.php?action=confirmdeletecomment&delete_type=spam&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; 429 429 $notify_message .= sprintf( __('Currently %s comments are waiting for approval. Please visit the moderation panel:'), $comments_waiting ) . "\r\n"; 430 $notify_message .= get_ settings('siteurl') . "/wp-admin/moderation.php\r\n";431 432 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_ settings('blogname'), $post->post_title );433 $admin_email = get_ settings('admin_email');430 $notify_message .= get_option('siteurl') . "/wp-admin/moderation.php\r\n"; 431 432 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title ); 433 $admin_email = get_option('admin_email'); 434 434 435 435 $notify_message = apply_filters('comment_moderation_text', $notify_message, $comment_id); … … 449 449 $user_email = stripslashes($user->user_email); 450 450 451 $message = sprintf(__('New user registration on your blog %s:'), get_ settings('blogname')) . "\r\n\r\n";451 $message = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "\r\n\r\n"; 452 452 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 453 453 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 454 454 455 @wp_mail(get_ settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);455 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message); 456 456 457 457 if ( empty($plaintext_pass) ) … … 460 460 $message = sprintf(__('Username: %s'), $user_login) . "\r\n"; 461 461 $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; 462 $message .= get_ settings('siteurl') . "/wp-login.php\r\n";463 464 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_ settings('blogname')), $message);462 $message .= get_option('siteurl') . "/wp-login.php\r\n"; 463 464 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); 465 465 466 466 } -
trunk/wp-includes/post-template.php
r4142 r4144 152 152 $output .= ' '; 153 153 if ( ($i != $page) || ((!$more) && ($page==1)) ) { 154 if ( '' == get_ settings('permalink_structure') )154 if ( '' == get_option('permalink_structure') ) 155 155 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">'; 156 156 else … … 167 167 $i = $page - 1; 168 168 if ( $i && $more ) { 169 if ( '' == get_ settings('permalink_structure') )169 if ( '' == get_option('permalink_structure') ) 170 170 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">'.$previouspagelink.'</a>'; 171 171 else … … 174 174 $i = $page + 1; 175 175 if ( $i <= $numpages && $more ) { 176 if ( '' == get_ settings('permalink_structure') )176 if ( '' == get_option('permalink_structure') ) 177 177 $output .= '<a href="'.get_permalink() . '&page=' . $i . '">'.$nextpagelink.'</a>'; 178 178 else … … 265 265 parse_str($args, $r); 266 266 267 $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_ settings('date_format'),267 $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'), 268 268 'child_of' => 0, 'title_li' => __('Pages'), 'echo' => 1); 269 269 $r = array_merge($defaults, $r); … … 441 441 442 442 function get_the_password_form() { 443 $output = '<form action="' . get_ settings('siteurl') . '/wp-pass.php" method="post">443 $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 444 444 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 445 445 <p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . __("Submit") . '" /></p> -
trunk/wp-includes/post.php
r4133 r4144 561 561 $comment_status = 'closed'; 562 562 else 563 $comment_status = get_ settings('default_comment_status');563 $comment_status = get_option('default_comment_status'); 564 564 } 565 565 if ( empty($ping_status) ) 566 $ping_status = get_ settings('default_ping_status');566 $ping_status = get_option('default_ping_status'); 567 567 if ( empty($post_pingback) ) 568 568 $post_pingback = get_option('default_pingback_flag'); … … 1200 1200 $comment_status = 'closed'; 1201 1201 else 1202 $comment_status = get_ settings('default_comment_status');1202 $comment_status = get_option('default_comment_status'); 1203 1203 } 1204 1204 if ( empty($ping_status) ) 1205 $ping_status = get_ settings('default_ping_status');1205 $ping_status = get_option('default_ping_status'); 1206 1206 if ( empty($post_pingback) ) 1207 1207 $post_pingback = get_option('default_pingback_flag'); -
trunk/wp-includes/query.php
r4133 r4144 546 546 $post_type = $q['post_type']; 547 547 if ( !isset($q['posts_per_page']) || $q['posts_per_page'] == 0 ) 548 $q['posts_per_page'] = get_ settings('posts_per_page');548 $q['posts_per_page'] = get_option('posts_per_page'); 549 549 if ( !isset($q['what_to_show']) ) 550 $q['what_to_show'] = get_ settings('what_to_show');550 $q['what_to_show'] = get_option('what_to_show'); 551 551 if ( isset($q['showposts']) && $q['showposts'] ) { 552 552 $q['showposts'] = (int) $q['showposts']; … … 563 563 } 564 564 if ( $this->is_feed ) { 565 $q['posts_per_page'] = get_ settings('posts_per_rss');565 $q['posts_per_page'] = get_option('posts_per_rss'); 566 566 $q['what_to_show'] = 'posts'; 567 567 } … … 584 584 } 585 585 586 $add_hours = intval(get_ settings('gmt_offset'));587 $add_minutes = intval(60 * (get_ settings('gmt_offset') - $add_hours));586 $add_hours = intval(get_option('gmt_offset')); 587 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours)); 588 588 $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)"; 589 589 -
trunk/wp-includes/registration.php
r3865 r4144 110 110 if ( !$update ) { 111 111 $user = new WP_User($user_id); 112 $user->set_role(get_ settings('default_role'));112 $user->set_role(get_option('default_role')); 113 113 } 114 114 -
trunk/wp-includes/rewrite.php
r4133 r4144 90 90 91 91 // Add 'www.' if it is absent and should be there 92 if ( false !== strpos(get_ settings('home'), '://www.') && false === strpos($url, '://www.') )92 if ( false !== strpos(get_option('home'), '://www.') && false === strpos($url, '://www.') ) 93 93 $url = str_replace('://', '://www.', $url); 94 94 95 95 // Strip 'www.' if it is present and shouldn't be 96 if ( false === strpos(get_ settings('home'), '://www.') )96 if ( false === strpos(get_option('home'), '://www.') ) 97 97 $url = str_replace('://www.', '://', $url); 98 98 … … 101 101 $url = str_replace('index.php/', '', $url); 102 102 103 if ( false !== strpos($url, get_ settings('home')) ) {103 if ( false !== strpos($url, get_option('home')) ) { 104 104 // Chop off http://domain.com 105 $url = str_replace(get_ settings('home'), '', $url);105 $url = str_replace(get_option('home'), '', $url); 106 106 } else { 107 107 // Chop off /path/to/blog 108 $home_path = parse_url(get_ settings('home'));108 $home_path = parse_url(get_option('home')); 109 109 $home_path = $home_path['path']; 110 110 $url = str_replace($home_path, '', $url); … … 260 260 261 261 function page_rewrite_rules() { 262 $uris = get_ settings('page_uris');263 $attachment_uris = get_ settings('page_attachment_uris');262 $uris = get_option('page_uris'); 263 $attachment_uris = get_option('page_attachment_uris'); 264 264 265 265 $rewrite_rules = array(); … … 758 758 } 759 759 760 $site_root = parse_url(get_ settings('siteurl'));760 $site_root = parse_url(get_option('siteurl')); 761 761 $site_root = trailingslashit($site_root['path']); 762 762 763 $home_root = parse_url(get_ settings('home'));763 $home_root = parse_url(get_option('home')); 764 764 $home_root = trailingslashit($home_root['path']); 765 765 … … 854 854 function init() { 855 855 $this->extra_rules = $this->non_wp_rules = $this->endpoints = array(); 856 $this->permalink_structure = get_ settings('permalink_structure');856 $this->permalink_structure = get_option('permalink_structure'); 857 857 $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); 858 858 $this->root = ''; … … 860 860 $this->root = $this->index . '/'; 861 861 } 862 $this->category_base = get_ settings('category_base');862 $this->category_base = get_option('category_base'); 863 863 unset($this->category_structure); 864 864 unset($this->author_structure); -
trunk/wp-includes/script-loader.php
r4107 r4144 66 66 if ( isset($this->args[$handle]) ) 67 67 $ver .= '&' . $this->args[$handle]; 68 $src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_ settings( 'siteurl' ) . $this->scripts[$handle]->src;68 $src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_option( 'siteurl' ) . $this->scripts[$handle]->src; 69 69 echo "<script type='text/javascript' src='$src?ver=$ver'></script>\n"; 70 70 $this->printed[] = $handle; -
trunk/wp-includes/theme.php
r4035 r4144 5 5 6 6 function get_stylesheet() { 7 return apply_filters('stylesheet', get_ settings('stylesheet'));7 return apply_filters('stylesheet', get_option('stylesheet')); 8 8 } 9 9 … … 27 27 28 28 function get_template() { 29 return apply_filters('template', get_ settings('template'));29 return apply_filters('template', get_option('template')); 30 30 } 31 31 … … 238 238 $themes = get_themes(); 239 239 $theme_names = array_keys($themes); 240 $current_template = get_ settings('template');241 $current_stylesheet = get_ settings('stylesheet');240 $current_template = get_option('template'); 241 $current_stylesheet = get_option('stylesheet'); 242 242 $current_theme = 'WordPress Default'; 243 243 … … 260 260 261 261 function get_theme_root_uri() { 262 return apply_filters('theme_root_uri', get_ settings('siteurl') . "/wp-content/themes", get_settings('siteurl'));262 return apply_filters('theme_root_uri', get_option('siteurl') . "/wp-content/themes", get_option('siteurl')); 263 263 } 264 264 -
trunk/wp-includes/vars.php
r3990 r4144 90 90 $wp_smiliessearch[] = $smiley; 91 91 $smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES); 92 $wp_smiliesreplace[] = " <img src='" . get_ settings('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";92 $wp_smiliesreplace[] = " <img src='" . get_option('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> "; 93 93 } 94 94 -
trunk/wp-links-opml.php
r3875 r4144 6 6 } 7 7 8 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);8 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 9 9 $link_cat = $_GET['link_cat']; 10 10 if ((empty ($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) { -
trunk/wp-login.php
r4143 r4144 17 17 18 18 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 19 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_ settings('siteurl') )19 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) 20 20 update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) ); 21 21 } … … 46 46 <title>WordPress » <?php _e('Lost Password') ?></title> 47 47 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 48 <link rel="stylesheet" href="<?php echo get_ settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" />48 <link rel="stylesheet" href="<?php echo get_option('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> 49 49 <script type="text/javascript"> 50 50 function focusit() { … … 81 81 <ul> 82 82 <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">« <?php _e('Back to blog') ?></a></li> 83 <?php if (get_ settings('users_can_register')) : ?>83 <?php if (get_option('users_can_register')) : ?> 84 84 <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e('Register') ?></a></li> 85 85 <?php endif; ?> … … 112 112 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 113 113 $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n"; 114 $message .= get_ settings('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";115 116 $m = wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_ settings('blogname')), $message);114 $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n"; 115 116 $m = wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message); 117 117 118 118 if ($m == false) { … … 146 146 $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n"; 147 147 $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n"; 148 $message .= get_ settings('siteurl') . "/wp-login.php\r\n";149 150 $m = wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_ settings('blogname')), $message);148 $message .= get_option('siteurl') . "/wp-login.php\r\n"; 149 150 $m = wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message); 151 151 152 152 if ($m == false) { … … 159 159 // send a copy of password change notification to the admin 160 160 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 161 wp_mail(get_ settings('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_settings('blogname')), $message);161 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); 162 162 die(); 163 163 } … … 196 196 // If the user can't edit posts, send them to their profile. 197 197 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) ) 198 $redirect_to = get_ settings('siteurl') . '/wp-admin/profile.php';198 $redirect_to = get_option('siteurl') . '/wp-admin/profile.php'; 199 199 200 200 if ( wp_login($user_login, $user_pass, $using_cookie) ) { … … 247 247 <ul> 248 248 <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">« <?php _e('Back to blog') ?></a></li> 249 <?php if (get_ settings('users_can_register')) : ?>249 <?php if (get_option('users_can_register')) : ?> 250 250 <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e('Register') ?></a></li> 251 251 <?php endif; ?> -
trunk/wp-mail.php
r4006 r4144 6 6 error_reporting(2037); 7 7 8 $time_difference = get_ settings('gmt_offset') * 3600;8 $time_difference = get_option('gmt_offset') * 3600; 9 9 10 10 $phone_delim = '::'; … … 12 12 $pop3 = new POP3(); 13 13 14 if (!$pop3->connect(get_ settings('mailserver_url'), get_settings('mailserver_port')))14 if (!$pop3->connect(get_option('mailserver_url'), get_option('mailserver_port'))) 15 15 wp_die($pop3->ERROR); 16 16 17 $count = $pop3->login(get_ settings('mailserver_login'), get_settings('mailserver_pass'));17 $count = $pop3->login(get_option('mailserver_login'), get_option('mailserver_pass')); 18 18 if (0 == $count) wp_die(__('There doesn’t seem to be any new mail.')); 19 19 … … 103 103 endforeach; 104 104 105 $subject = trim(str_replace(get_ settings('subjectprefix'), '', $subject));105 $subject = trim(str_replace(get_option('subjectprefix'), '', $subject)); 106 106 107 107 if ($content_type == 'multipart/alternative') { … … 127 127 if ($post_title == '') $post_title = $subject; 128 128 129 if (empty($post_categories)) $post_categories[] = get_ settings('default_email_category');129 if (empty($post_categories)) $post_categories[] = get_option('default_email_category'); 130 130 131 131 $post_category = $post_categories; -
trunk/wp-rdf.php
r2860 r4144 6 6 } 7 7 8 header('Content-type: application/rdf+xml; charset=' . get_ settings('blog_charset'), true);8 header('Content-type: application/rdf+xml; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 13 13 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 14 14 <rdf:RDF … … 46 46 <dc:creator><?php the_author() ?></dc:creator> 47 47 <?php the_category_rss('rdf') ?> 48 <?php if (get_ settings('rss_use_excerpt')) : ?>48 <?php if (get_option('rss_use_excerpt')) : ?> 49 49 <description><?php the_excerpt_rss() ?></description> 50 50 <?php else : ?> 51 <description><?php the_content_rss('', 0, '', get_ settings('rss_excerpt_length'), 2) ?></description>51 <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description> 52 52 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 53 53 <?php endif; ?> -
trunk/wp-register.php
r3862 r4144 4 4 5 5 $action = $_REQUEST['action']; 6 if ( !get_ settings('users_can_register') )6 if ( !get_option('users_can_register') ) 7 7 $action = 'disabled'; 8 8 … … 45 45 $user_id = wp_create_user( $user_login, $password, $user_email ); 46 46 if ( !$user_id ) 47 $errors['user_id'] = sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_ settings('admin_email'));47 $errors['user_id'] = sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_option('admin_email')); 48 48 else 49 49 wp_new_user_notification($user_id, $password); … … 57 57 <head> 58 58 <title>WordPress » <?php _e('Registration Complete') ?></title> 59 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />59 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 60 60 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 61 61 <style type="text/css"> … … 88 88 <head> 89 89 <title>WordPress » <?php _e('Registration Form') ?></title> 90 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />90 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 91 91 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 92 92 <style type="text/css"> … … 137 137 <head> 138 138 <title>WordPress » <?php _e('Registration Currently Disabled') ?></title> 139 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_ settings('blog_charset'); ?>" />139 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 140 140 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css"> 141 141 </head> … … 146 146 <h2><?php _e('Registration Disabled') ?></h2> 147 147 <p><?php _e('User registration is currently not allowed.') ?><br /> 148 <a href="<?php echo get_ settings('home'); ?>/" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a>148 <a href="<?php echo get_option('home'); ?>/" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a> 149 149 </p> 150 150 </div> -
trunk/wp-rss.php
r2627 r4144 6 6 } 7 7 8 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);8 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 13 13 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 14 14 <rss version="0.92"> … … 25 25 <item> 26 26 <title><?php the_title_rss() ?></title> 27 <?php if (get_ settings('rss_use_excerpt')) { ?>27 <?php if (get_option('rss_use_excerpt')) { ?> 28 28 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 29 29 <?php } else { // use content ?> 30 <description><?php the_content_rss('', 0, '', get_ settings('rss_excerpt_length')) ?></description>30 <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length')) ?></description> 31 31 <?php } ?> 32 32 <link><?php permalink_single_rss() ?></link> 33 33 <?php do_action('rss_item'); ?> 34 34 </item> 35 <?php $items_count++; if (($items_count == get_ settings('posts_per_rss')) && empty($m)) { break; } } } ?>35 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?> 36 36 </channel> 37 37 </rss> -
trunk/wp-rss2.php
r3866 r4144 6 6 } 7 7 8 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);8 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 13 13 14 14 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" --> … … 38 38 39 39 <guid isPermaLink="false"><?php the_guid(); ?></guid> 40 <?php if (get_ settings('rss_use_excerpt')) : ?>40 <?php if (get_option('rss_use_excerpt')) : ?> 41 41 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 42 42 <?php else : ?> … … 52 52 <?php do_action('rss2_item'); ?> 53 53 </item> 54 <?php $items_count++; if (($items_count == get_ settings('posts_per_rss')) && !is_date()) { break; } } } ?>54 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } } ?> 55 55 </channel> 56 56 </rss> -
trunk/wp-settings.php
r4131 r4144 142 142 if (!strstr($_SERVER['PHP_SELF'], 'install.php')) : 143 143 // Used to guarantee unique hash cookies 144 $cookiehash = md5(get_ settings('siteurl')); // Remove in 1.4144 $cookiehash = md5(get_option('siteurl')); // Remove in 1.4 145 145 define('COOKIEHASH', $cookiehash); 146 146 endif; … … 151 151 define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH); 152 152 if ( !defined('COOKIEPATH') ) 153 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_ settings('home') . '/' ) );153 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' ) ); 154 154 if ( !defined('SITECOOKIEPATH') ) 155 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_ settings('siteurl') . '/' ) );155 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/' ) ); 156 156 if ( !defined('COOKIE_DOMAIN') ) 157 157 define('COOKIE_DOMAIN', false); … … 160 160 161 161 // Check for hacks file if the option is enabled 162 if (get_ settings('hack_file')) {162 if (get_option('hack_file')) { 163 163 if (file_exists(ABSPATH . '/my-hacks.php')) 164 164 require(ABSPATH . '/my-hacks.php'); 165 165 } 166 166 167 if ( get_ settings('active_plugins') ) {168 $current_plugins = get_ settings('active_plugins');167 if ( get_option('active_plugins') ) { 168 $current_plugins = get_option('active_plugins'); 169 169 if ( is_array($current_plugins) ) { 170 170 foreach ($current_plugins as $plugin) { -
trunk/wp-trackback.php
r4133 r4144 43 43 44 44 if ( function_exists('mb_convert_encoding') ) { // For international trackbacks 45 $title = mb_convert_encoding($title, get_ settings('blog_charset'), $charset);46 $excerpt = mb_convert_encoding($excerpt, get_ settings('blog_charset'), $charset);47 $blog_name = mb_convert_encoding($blog_name, get_ settings('blog_charset'), $charset);45 $title = mb_convert_encoding($title, get_option('blog_charset'), $charset); 46 $excerpt = mb_convert_encoding($excerpt, get_option('blog_charset'), $charset); 47 $blog_name = mb_convert_encoding($blog_name, get_option('blog_charset'), $charset); 48 48 } 49 49 … … 71 71 $excerpt = strip_tags($excerpt); 72 72 if ( function_exists('mb_strcut') ) { // For international trackbacks 73 $excerpt = mb_strcut($excerpt, 0, 252, get_ settings('blog_charset')) . '...';74 $title = mb_strcut($title, 0, 250, get_ settings('blog_charset')) . '...';73 $excerpt = mb_strcut($excerpt, 0, 252, get_option('blog_charset')) . '...'; 74 $title = mb_strcut($title, 0, 250, get_option('blog_charset')) . '...'; 75 75 } else { 76 76 $excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252) . '...' : $excerpt; -
trunk/xmlrpc.php
r4133 r4144 13 13 14 14 if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd 15 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);15 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 16 16 17 17 ?> 18 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>18 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 19 19 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> 20 20 <service> … … 191 191 $struct = array( 192 192 'isAdmin' => $is_admin, 193 'url' => get_ settings('home') . '/',193 'url' => get_option('home') . '/', 194 194 'blogid' => '1', 195 'blogName' => get_ settings('blogname')195 'blogName' => get_option('blogname') 196 196 ); 197 197 … … 330 330 331 331 /* warning: here we make the assumption that the weblog's URL is on the same server */ 332 $filename = get_ settings('home') . '/';332 $filename = get_option('home') . '/'; 333 333 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 334 334 … … 365 365 366 366 /* warning: here we make the assumption that the weblog's URL is on the same server */ 367 $filename = get_ settings('home') . '/';367 $filename = get_option('home') . '/'; 368 368 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 369 369 … … 545 545 546 546 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 547 get_ settings('default_comment_status')547 get_option('default_comment_status') 548 548 : $content_struct['mt_allow_comments']; 549 549 550 550 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 551 get_ settings('default_ping_status')551 get_option('default_ping_status') 552 552 : $content_struct['mt_allow_pings']; 553 553 … … 642 642 643 643 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 644 get_ settings('default_comment_status')644 get_option('default_comment_status') 645 645 : $content_struct['mt_allow_comments']; 646 646 647 647 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 648 get_ settings('default_ping_status')648 get_option('default_ping_status') 649 649 : $content_struct['mt_allow_pings']; 650 650 … … 1112 1112 1113 1113 // Check if the page linked to is in our site 1114 $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_ settings('home')));1114 $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_option('home'))); 1115 1115 if( !$pos1 ) 1116 1116 return new IXR_Error(0, 'Is there no link to us?');
Note: See TracChangeset
for help on using the changeset viewer.