Changeset 530

Show
Ignore:
Timestamp:
02/17/06 15:23:24 (3 years ago)
Author:
donncha
Message:

WP Merge
Fix for pages not displaying

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-inst/wp-admin/admin-functions.php

    r524 r530  
    611611                        if ($category->category_parent == $parent) { 
    612612                                $category->cat_name = wp_specialchars($category->cat_name); 
    613                                 //$count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID"); 
    614613                                $pad = str_repeat('— ', $level); 
    615614                                if ( current_user_can('manage_categories') ) { 
     
    631630                                                                <td>$edit</td> 
    632631                                                                </tr>"; 
    633                                                                 //<td>$count</td> 
    634632                                cat_rows($category->cat_ID, $level +1, $categories); 
    635633                        } 
     
    12341232        global $menu; 
    12351233        global $submenu; 
     1234        global $menu_nopriv; 
    12361235 
    12371236        $parent = get_admin_page_parent(); 
     1237         
     1238        if ( isset($menu_nopriv[$pagenow]) ) 
     1239                return false; 
     1240 
     1241        if ( empty($parent) ) 
     1242                return true; 
     1243 
     1244        if (isset ($submenu[$parent])) { 
     1245                foreach ($submenu[$parent] as $submenu_array) { 
     1246                        if ($submenu_array[2] == $pagenow) { 
     1247                                if (current_user_can($submenu_array[1])) 
     1248                                        return true; 
     1249                                else 
     1250                                        return false; 
     1251                        } 
     1252                } 
     1253        } 
    12381254 
    12391255        foreach ($menu as $menu_array) { 
    12401256                //echo "parent array: " . $menu_array[2]; 
    12411257                if ($menu_array[2] == $parent) { 
    1242                         if (!current_user_can($menu_array[1])) { 
     1258                        if (current_user_can($menu_array[1])) 
     1259                                return true; 
     1260                        else 
    12431261                                return false; 
    1244                         } else { 
    1245                                 break; 
    1246                         } 
    1247                 } 
    1248         } 
    1249  
    1250         if (isset ($submenu[$parent])) { 
    1251                 foreach ($submenu[$parent] as $submenu_array) { 
    1252                         if ($submenu_array[2] == $pagenow) { 
    1253                                 if (!current_user_can($submenu_array[1])) { 
    1254                                         return false; 
    1255                                 } else { 
    1256                                         return true; 
    1257                                 } 
    1258                         } 
    1259                 } 
    1260         } 
    1261  
     1262                } 
     1263        } 
     1264         
    12621265        return true; 
    12631266} 
     
    13161319        global $pagenow; 
    13171320        global $plugin_page; 
    1318  
    1319         if (isset ($parent_file) && !empty ($parent_file)) { 
     1321        global $real_parent_file; 
     1322 
     1323        if ( !empty ($parent_file) ) { 
     1324                if ( isset($real_parent_file[$parent_file]) ) 
     1325                        $parent_file = $real_parent_file[$parent_file]; 
     1326 
    13201327                return $parent_file; 
    13211328        } 
     
    13251332                        if ($parent_menu[2] == $plugin_page) { 
    13261333                                $parent_file = $plugin_page; 
    1327                                 return $plugin_page; 
     1334                                if ( isset($real_parent_file[$parent_file]) ) 
     1335                                        $parent_file = $real_parent_file[$parent_file]; 
     1336                                         
     1337                                return $parent_file; 
    13281338                        } 
    13291339                } 
     
    13321342        foreach (array_keys($submenu) as $parent) { 
    13331343                foreach ($submenu[$parent] as $submenu_array) { 
     1344                        if ( isset($real_parent_file[$parent]) ) 
     1345                                $parent = $real_parent_file[$parent]; 
    13341346                        if ($submenu_array[2] == $pagenow) { 
    13351347                                $parent_file = $parent; 
     
    13661378        global $submenu; 
    13671379        global $menu; 
     1380        global $real_parent_file; 
    13681381 
    13691382        $parent = plugin_basename($parent); 
     1383        if ( isset($real_parent_file[$parent]) ) 
     1384                $parent = $real_parent_file[$parent]; 
     1385 
    13701386        $file = plugin_basename($file); 
    13711387 
  • trunk/wp-inst/wp-admin/admin-header.php

    r524 r530  
    1 <?php  
     1<?php 
    22@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
    33if (!isset($_GET["page"])) require_once('admin.php'); 
     
    6060<body> 
    6161<div id="wphead"> 
    62 <h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> &raquo;</a>)</span></h1> 
     62<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site &raquo;') ?></a>)</span></h1> 
    6363</div> 
    6464<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 Account'); ?></a>] </p></div> 
  • trunk/wp-inst/wp-admin/categories.php

    r524 r530  
    9393                </tr> 
    9494                </table> 
    95           <p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category') ?> &raquo;" /></p> 
     95          <p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category &raquo;') ?>" /></p> 
    9696 </form> 
    9797 <p><a href="categories.php"><?php _e('&laquo; Return to category list'); ?></a></p> 
  • trunk/wp-inst/wp-admin/edit-comments.php

    r528 r530  
    164164        ?></table> 
    165165    <p><a href="javascript:;" onclick="checkAll(document.getElementById('deletecomments')); return false; "><?php _e('Invert Checkbox Selection') ?></a></p> 
    166             <p class="submit"><input type="submit" name="delete_button" value="<?php _e('Delete Checked Comments') ?> &raquo;" onclick="return confirm('<?php _e("You are about to delete these comments permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /> 
    167                         <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam') ?> &raquo;" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n  \'Cancel\' to stop, \'OK\' to mark as spam.") ?>')" /></p> 
     166            <p class="submit"><input type="submit" name="delete_button" value="<?php _e('Delete Checked Comments &raquo;') ?>" onclick="return confirm('<?php _e("You are about to delete these comments permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /> 
     167                        <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam &raquo;') ?>" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n  \'Cancel\' to stop, \'OK\' to mark as spam.") ?>')" /></p> 
    168168  </form> 
    169169<?php 
  • trunk/wp-inst/wp-admin/edit-page-form.php

    r524 r530  
    184184<?php if ( $post_ID ) : ?> 
    185185<input name="save" type="submit" id="save" tabindex="5" value=" <?php _e('Save and Continue Editing'); ?> "/>  
    186 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page') ?> &raquo;" />  
     186<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page &raquo;') ?>" />  
    187187<?php else : ?> 
    188 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page') ?> &raquo;" />  
     188<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page &raquo;') ?>" />  
    189189<?php endif; ?> 
    190190<input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" /> 
  • trunk/wp-inst/wp-admin/edit-pages.php

    r524 r530  
    99<div class="wrap"> 
    1010<h2><?php _e('Page Management'); ?></h2> 
    11 <p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page'); ?> &raquo;</a></p> 
     11<p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page &raquo;'); ?></a></p> 
    1212 
    1313<form name="searchform" action="" method="get">  
     
    7373?>  
    7474 
    75 <h3><a href="page-new.php"><?php _e('Create New Page'); ?> &raquo;</a></h3> 
     75<h3><a href="page-new.php"><?php _e('Create New Page &raquo;'); ?></a></h3> 
    7676 
    7777</div> 
  • trunk/wp-inst/wp-admin/inline-uploading.php

    r524 r530  
    238238                        $ypadding = (96 - $image['uheight']) / 2; 
    239239                        $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; 
    240                         $title = htmlentities($image['post_title'], ENT_QUOTES); 
     240                        $title = wp_specialchars($image['post_title'], ENT_QUOTES); 
    241241                        $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; 
    242242ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; 
     
    258258"; 
    259259                } else { 
    260                         $title = htmlentities($attachment['post_title'], ENT_QUOTES); 
     260                        $title = wp_specialchars($attachment['post_title'], ENT_QUOTES); 
    261261                        $filename = basename($attachment['guid']); 
    262262                        $icon = get_attachment_icon($ID); 
     
    660660<?php endif; ?> 
    661661<?php if ( false !== $next ) : ?> 
    662 <li><a href="<?php echo basename(__FILE__); ?>?action=<?php echo $action; ?>&amp;post=<?php echo $post; ?>&amp;all=<?php echo $all; ?>&amp;start=<?php echo $next; ?>"><?php _e('Next'); ?> &raquo;</a></li> 
     662<li><a href="<?php echo basename(__FILE__); ?>?action=<?php echo $action; ?>&amp;post=<?php echo $post; ?>&amp;all=<?php echo $all; ?>&amp;start=<?php echo $next; ?>"><?php _e('Next &raquo;'); ?></a></li> 
    663663<li><a href="<?php echo basename(__FILE__); ?>?action=<?php echo $action; ?>&amp;post=<?php echo $post; ?>&amp;all=<?php echo $all; ?>&amp;last=true" title="<?php _e('Last'); ?>">&raquo;|</a></li> 
    664664<?php else : ?> 
    665 <li class="inactive"><?php _e('Next'); ?> &raquo;</li> 
     665<li class="inactive"><?php _e('Next &raquo;'); ?></li> 
    666666<li class="inactive">&raquo;|</li> 
    667667<?php endif; ?> 
  • trunk/wp-inst/wp-admin/link-import.php

    r517 r530  
    5555</select></p> 
    5656 
    57 <p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File') ?> &raquo;" /></p> 
     57<p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File &raquo;') ?>" /></p> 
    5858</form> 
    5959 
  • trunk/wp-inst/wp-admin/menu-header.php

    r524 r530  
    1212        if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; 
    1313     
    14         if ( current_user_can($item[1]) ) { 
     14        if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) { 
    1515                if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") ) 
    1616                        echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 
  • trunk/wp-inst/wp-admin/menu.php

    r528 r530  
    5959$submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 
    6060 
     61// Loop over submenus and remove pages for which the user does not have privs. 
     62foreach ($submenu as $parent => $sub) { 
     63        foreach ($sub as $index => $data) { 
     64                if ( ! current_user_can($data[1]) ) { 
     65                        $menu_nopriv[$data[2]] = true; 
     66                        unset($submenu[$parent][$index]); 
     67                } 
     68        } 
     69         
     70        if ( empty($submenu[$parent]) ) 
     71                unset($submenu[$parent]); 
     72} 
     73 
     74// Loop over the top-level menu. 
     75// Remove menus that have no accessible submenus and require privs that the user does not have. 
     76// Menus for which the original parent is not acessible due to lack of privs will have the next 
     77// submenu in line be assigned as the new menu parent.  
     78foreach ( $menu as $id => $data ) { 
     79        // If submenu is empty... 
     80        if ( empty($submenu[$data[2]]) ) { 
     81                // And user doesn't have privs, remove menu. 
     82                if ( ! current_user_can($data[1]) ) { 
     83                        $menu_nopriv[$data[2]] = true; 
     84                        unset($menu[$id]); 
     85                } 
     86        } else { 
     87                $subs = $submenu[$data[2]]; 
     88                $first_sub = array_shift($subs); 
     89                $old_parent = $data[2]; 
     90                $new_parent = $first_sub[2]; 
     91                // If the first submenu is not the same as the assigned parent, 
     92                // make the first submenu the new parent. 
     93                if ( $new_parent != $old_parent ) { 
     94                        $real_parent_file[$old_parent] = $new_parent; 
     95                        $menu[$id][2] = $new_parent; 
     96                         
     97                        foreach ($submenu[$old_parent] as $index => $data) { 
     98                                $submenu[$new_parent][$index] = $submenu[$old_parent][$index]; 
     99                                unset($submenu[$old_parent][$index]); 
     100                        } 
     101                        unset($submenu[$old_parent]);    
     102                } 
     103        } 
     104} 
     105 
    61106get_currentuserinfo(); 
    62107if( is_site_admin() ) { 
  • trunk/wp-inst/wp-admin/options-general.php

    r497 r530  
    105105</fieldset>  
    106106 
    107 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" /> 
     107<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /> 
    108108<input type="hidden" name="action" value="update" />  
    109109<input type="hidden" name="page_options" value="blogname,blogdescription,users_can_register,gmt_offset,date_format,time_format,start_of_week,comment_registration, WPLANG" />  
  • trunk/wp-inst/wp-admin/options-misc.php

    r503 r530  
    4545<input type="hidden" name="action" value="update" /> 
    4646<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path" />  
    47 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" /> 
     47<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /> 
    4848</p> 
    4949</form>  
  • trunk/wp-inst/wp-admin/options-reading.php

    r439 r530  
    5353<input type="hidden" name="action" value="update" />  
    5454<input type="hidden" name="page_options" value="posts_per_page,what_to_show,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression " />  
    55 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />  
     55<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />  
    5656</p>  
    5757</form>  
  • trunk/wp-inst/wp-admin/options-writing.php

    r450 r530  
    4646<input type="hidden" name="action" value="update" />  
    4747<input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category,use_balanceTags" />  
    48 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />  
     48<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />  
    4949</p> 
    5050</form>  
  • trunk/wp-inst/wp-admin/page-new.php

    r528 r530  
    88 
    99<?php if ( isset($_GET['saved']) ) : ?> 
    10 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> &raquo;</a></strong></p></div> 
     10<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages &raquo;'); ?></a></strong></p></div> 
    1111<?php endif; ?> 
    1212 
  • trunk/wp-inst/wp-admin/plugin-editor.php

    r524 r530  
    104104     <p class="submit"> 
    105105<?php 
    106         echo "<input type='submit' name='submit' value='        " . __('Update File') . " &raquo;' tabindex='2' />"; 
     106        echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />"; 
    107107?> 
    108108</p> 
  • trunk/wp-inst/wp-admin/templates.php

    r524 r530  
    135135     <p class="submit"> 
    136136<?php 
    137         echo "<input type='submit' name='submit' value='        " . __('Update File') . " &raquo;' tabindex='2' />"; 
     137        echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />"; 
    138138?> 
    139139</p> 
  • trunk/wp-inst/wp-admin/theme-editor.php

    r524 r530  
    102102?> 
    103103 </select> 
    104  <input type="submit" name="Submit" value="<?php _e('Select') ?> &raquo;" /> 
     104 <input type="submit" name="Submit" value="<?php _e('Select &raquo;') ?>" /> 
    105105 </form> 
    106106 </div> 
     
    139139     <p class="submit"> 
    140140<?php 
    141         echo "<input type='submit' name='submit' value='        " . __('Update File') . " &raquo;' tabindex='2' />"; 
     141        echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />"; 
    142142?> 
    143143</p> 
  • trunk/wp-inst/wp-admin/users.php

    r525 r530  
    366366    </table> 
    367367  <p class="submit"> 
    368     <input name="adduser" type="submit" id="adduser" value="<?php _e('Add User') ?> &raquo;" /> 
     368    <input name="adduser" type="submit" id="adduser" value="<?php _e('Add User &raquo;') ?>" /> 
    369369  </p> 
    370370  </form> 
  • trunk/wp-inst/wp-comments-post.php

    r417 r530  
    5454        setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); 
    5555        setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); 
    56         setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); 
     56        setcookie('comment_author_url_' . COOKIEHASH, stripslashes(clean_url($comment_author_url)), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); 
    5757endif; 
    5858 
  • trunk/wp-inst/wp-includes/comment-functions.php

    r527 r530  
    7979        if ( ! isset($comment_approved) ) 
    8080                $comment_approved = 1; 
     81        if ( ! isset($user_id) ) 
     82                $user_id = 0; 
    8183 
    8284        $result = $wpdb->query("INSERT INTO $wpdb->comments  
  • trunk/wp-inst/wp-includes/functions-post.php

    r524 r530  
    313313                        post_date_gmt = '$post_date_gmt', 
    314314                        post_content = '$post_content', 
     315                        post_content_filtered = '$post_content_filtered', 
    315316                        post_title = '$post_title', 
    316317                        post_excerpt = '$post_excerpt', 
     
    333334                $wpdb->query( 
    334335                        "INSERT INTO $wpdb->posts 
    335                         (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt,  post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 
     336                        (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 
    336337                        VALUES 
    337                         ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 
     338                        ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 
    338339                        $post_ID = $wpdb->insert_id; 
    339340        } 
  • trunk/wp-inst/wp-includes/functions.php

    r527 r530  
    682682                $full_path .= ($pathdir!=''?'/':'') . sanitize_title($pathdir); 
    683683 
    684         $pages = $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_name = '$leaf_path'"); 
     684        $pages = $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_name = '$leaf_path' AND post_type='page'"); 
    685685 
    686686        if ( empty($pages) )  
     
    691691                $curpage = $page; 
    692692                while ($curpage->post_parent != 0) { 
    693                         $curpage = $wpdb->get_row("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = '$curpage->post_parent'"); 
     693                        $curpage = $wpdb->get_row("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = '$curpage->post_parent' and post_type='page'"); 
    694694                        $path = '/' . $curpage->post_name . $path; 
    695695                } 
  • trunk/wp-inst/wp-includes/template-functions-category.php

    r528 r530  
    4949                $thelist .= '<ul class="post-categories">'; 
    5050                foreach ( $categories as $category ) { 
    51                         $category->cat_name = $category->cat_name; 
    5251                        $thelist .= "\n\t<li>"; 
    5352                        switch ( strtolower($parents) ) { 
     
    7271                $i = 0; 
    7372                foreach ( $categories as $category ) { 
    74                         $category->cat_name = $category->cat_name; 
    7573                        if ( 0 < $i ) 
    7674                                $thelist .= $separator . ' '; 
  • trunk/wp-inst/wp-includes/template-functions-links.php

    r524 r530  
    6363                $authordata = get_userdata($post->post_author); 
    6464                $author = $authordata->user_nicename; 
     65                $date = explode(" ",date('Y m d H i s', $unixtime)); 
    6566                $rewritereplace =  
    6667                array( 
    67                         date('Y', $unixtime)
    68                         date('m', $unixtime)
    69                         date('d', $unixtime)
    70                         date('H', $unixtime)
    71                         date('i', $unixtime)
    72                         date('s', $unixtime)
     68                        $date[0]
     69                        $date[1]
     70                        $date[2]
     71                        $date[3]
     72                        $date[4]
     73                        $date[5]
    7374                        $post->post_name, 
    7475                        $post->ID, 
  • trunk/wp-inst/wp-login.php

    r525 r530  
    7474<input type="text" name="email" id="email" value="" size="25" tabindex="2" /></label><br /> 
    7575</p> 
    76 <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Retrieve Password'); ?> &raquo;" tabindex="3" /></p> 
     76<p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Retrieve Password &raquo;'); ?>" tabindex="3" /></p> 
    7777</form> 
    7878<ul> 
  • trunk/wp-inst/wp-register.php

    r524 r530  
    6969        <?php printf(__('Password: %s'), '<strong>' . __('emailed to you') . '</strong>') ?> <br /> 
    7070        <?php printf(__('E-mail: %s'), "<strong>$user_email</strong>") ?></p> 
    71         <p class="submit"><a href="wp-login.php"><?php _e('Login'); ?> &raquo;</a></p> 
     71        <p class="submit"><a href="wp-login.php"><?php _e('Login &raquo;'); ?></a></p> 
    7272</div> 
    7373</body> 
     
    112112        <p><label for="user_email"><?php _e('E-mail:') ?></label><br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" value="<?php echo $user_email; ?>" /></p> 
    113113        <p><?php _e('A password will be emailed to you.') ?></p> 
    114         <p class="submit"><input type="submit" value="<?php _e('Register') ?> &raquo;" id="submit" name="submit" /></p> 
     114        <p class="submit"><input type="submit" value="<?php _e('Register &raquo;') ?>" id="submit" name="submit" /></p> 
    115115</form> 
    116116<ul>