Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (20 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r4142 r4144  
    152152                                $output .= ' ';
    153153                                if ( ($i != $page) || ((!$more) && ($page==1)) ) {
    154                                         if ( '' == get_settings('permalink_structure') )
     154                                        if ( '' == get_option('permalink_structure') )
    155155                                                $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">';
    156156                                        else
    … …  
    167167                                $i = $page - 1;
    168168                                if ( $i && $more ) {
    169                                         if ( '' == get_settings('permalink_structure') )
     169                                        if ( '' == get_option('permalink_structure') )
    170170                                                $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">'.$previouspagelink.'</a>';
    171171                                        else
    … …  
    174174                                $i = $page + 1;
    175175                                if ( $i <= $numpages && $more ) {
    176                                         if ( '' == get_settings('permalink_structure') )
     176                                        if ( '' == get_option('permalink_structure') )
    177177                                                $output .= '<a href="'.get_permalink() . '&amp;page=' . $i . '">'.$nextpagelink.'</a>';
    178178                                        else
    … …  
    265265                parse_str($args, $r);
    266266
    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'),
    268268                'child_of' => 0, 'title_li' => __('Pages'), 'echo' => 1);
    269269        $r = array_merge($defaults, $r);
    … …  
    441441
    442442function 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">
    444444        <p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
    445445        <p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . __("Submit") . '" /></p>
Note: See TracChangeset for help on using the changeset viewer.