Changeset 6026
- Timestamp:
- 09/03/07 23:32:58 (1 year ago)
- Files:
-
- trunk/wp-admin/admin-footer.php (modified) (1 diff)
- trunk/wp-admin/admin-header.php (modified) (1 diff)
- trunk/wp-admin/categories.php (modified) (1 diff)
- trunk/wp-admin/edit-category-form.php (modified) (1 diff)
- trunk/wp-admin/edit-comments.php (modified) (3 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (4 diffs)
- trunk/wp-admin/edit-form-comment.php (modified) (2 diffs)
- trunk/wp-admin/edit-form.php (modified) (1 diff)
- trunk/wp-admin/edit-pages.php (modified) (1 diff)
- trunk/wp-admin/edit-post-rows.php (modified) (1 diff)
- trunk/wp-admin/edit.php (modified) (4 diffs)
- trunk/wp-admin/import/blogger.php (modified) (4 diffs)
- trunk/wp-admin/import/dotclear.php (modified) (2 diffs)
- trunk/wp-admin/import/mt.php (modified) (1 diff)
- trunk/wp-admin/import/stp.php (modified) (4 diffs)
- trunk/wp-admin/import/textpattern.php (modified) (2 diffs)
- trunk/wp-admin/import/wordpress.php (modified) (2 diffs)
- trunk/wp-admin/includes/plugin.php (modified) (1 diff)
- trunk/wp-admin/includes/post.php (modified) (2 diffs)
- trunk/wp-admin/includes/taxonomy.php (modified) (1 diff)
- trunk/wp-admin/includes/template.php (modified) (1 diff)
- trunk/wp-admin/includes/update.php (modified) (1 diff)
- trunk/wp-admin/includes/upgrade.php (modified) (1 diff)
- trunk/wp-admin/includes/user.php (modified) (1 diff)
- trunk/wp-admin/index-extra.php (modified) (1 diff)
- trunk/wp-admin/index.php (modified) (3 diffs)
- trunk/wp-admin/link-category.php (modified) (1 diff)
- trunk/wp-admin/link-import.php (modified) (1 diff)
- trunk/wp-admin/menu.php (modified) (1 diff)
- trunk/wp-admin/moderation.php (modified) (3 diffs)
- trunk/wp-admin/options-discussion.php (modified) (2 diffs)
- trunk/wp-admin/options-general.php (modified) (3 diffs)
- trunk/wp-admin/options-permalink.php (modified) (5 diffs)
- trunk/wp-admin/options-reading.php (modified) (3 diffs)
- trunk/wp-admin/options-writing.php (modified) (1 diff)
- trunk/wp-admin/page-new.php (modified) (1 diff)
- trunk/wp-admin/page.php (modified) (1 diff)
- trunk/wp-admin/post-new.php (modified) (2 diffs)
- trunk/wp-admin/post.php (modified) (1 diff)
- trunk/wp-admin/theme-editor.php (modified) (1 diff)
- trunk/wp-admin/upgrade.php (modified) (2 diffs)
- trunk/wp-admin/users.php (modified) (2 diffs)
- trunk/wp-admin/widgets.php (modified) (3 diffs)
- trunk/wp-app.php (modified) (4 diffs)
- trunk/wp-content/plugins/hello.php (modified) (1 diff)
- trunk/wp-content/themes/classic/comments-popup.php (modified) (1 diff)
- trunk/wp-content/themes/default/attachment.php (modified) (1 diff)
- trunk/wp-content/themes/default/comments-popup.php (modified) (1 diff)
- trunk/wp-includes/atomlib.php (modified) (6 diffs)
- trunk/wp-includes/author-template.php (modified) (2 diffs)
- trunk/wp-includes/bookmark-template.php (modified) (4 diffs)
- trunk/wp-includes/bookmark.php (modified) (4 diffs)
- trunk/wp-includes/canonical.php (modified) (1 diff)
- trunk/wp-includes/category-template.php (modified) (7 diffs)
- trunk/wp-includes/category.php (modified) (1 diff)
- trunk/wp-includes/class-IXR.php (modified) (5 diffs)
- trunk/wp-includes/class-phpmailer.php (modified) (45 diffs)
- trunk/wp-includes/class-pop3.php (modified) (1 diff)
- trunk/wp-includes/class-snoopy.php (modified) (1 diff)
- trunk/wp-includes/comment-template.php (modified) (1 diff)
- trunk/wp-includes/feed-atom-comments.php (modified) (1 diff)
- trunk/wp-includes/feed-rss2-comments.php (modified) (1 diff)
- trunk/wp-includes/feed.php (modified) (1 diff)
- trunk/wp-includes/formatting.php (modified) (5 diffs)
- trunk/wp-includes/functions.php (modified) (5 diffs)
- trunk/wp-includes/general-template.php (modified) (7 diffs)
- trunk/wp-includes/js/tinymce/wp-mce-help.php (modified) (1 diff)
- trunk/wp-includes/kses.php (modified) (4 diffs)
- trunk/wp-includes/locale.php (modified) (2 diffs)
- trunk/wp-includes/pluggable.php (modified) (3 diffs)
- trunk/wp-includes/plugin.php (modified) (12 diffs)
- trunk/wp-includes/post-template.php (modified) (3 diffs)
- trunk/wp-includes/post.php (modified) (9 diffs)
- trunk/wp-includes/query.php (modified) (9 diffs)
- trunk/wp-includes/rss.php (modified) (1 diff)
- trunk/wp-includes/streams.php (modified) (1 diff)
- trunk/wp-includes/taxonomy.php (modified) (10 diffs)
- trunk/wp-includes/theme.php (modified) (2 diffs)
- trunk/wp-includes/update.php (modified) (1 diff)
- trunk/wp-includes/widgets.php (modified) (5 diffs)
- trunk/wp-includes/wp-db.php (modified) (1 diff)
- trunk/wp-login.php (modified) (1 diff)
- trunk/wp-settings.php (modified) (4 diffs)
- trunk/xmlrpc.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-footer.php
r5955 r6026 1 1 2 2 <div id="footer"> 3 <p><?php 3 <p><?php 4 4 5 5 $upgrade = apply_filters( 'update_footer', '' ); 6 echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>').' | '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' | '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>').' '.$upgrade; 6 echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>').' | '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' | '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>').' '.$upgrade; 7 7 8 8 ?></p> trunk/wp-admin/admin-header.php
r5965 r6026 18 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 wp_specialchars( strip_tags( $title ) ); ?> — WordPress</title> 20 <?php wp_admin_css(); ?> 20 <?php wp_admin_css(); ?> 21 21 <script type="text/javascript"> 22 22 //<![CDATA[ trunk/wp-admin/categories.php
r5654 r6026 61 61 62 62 if ( wp_update_category($_POST) ) 63 wp_redirect('categories.php?message=3'); 63 wp_redirect('categories.php?message=3'); 64 64 else 65 wp_redirect('categories.php?message=5'); 65 wp_redirect('categories.php?message=5'); 66 66 67 67 exit; trunk/wp-admin/edit-category-form.php
r5529 r6026 35 35 <tr> 36 36 <th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th> 37 <td> 37 <td> 38 38 <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?> 39 39 </td> trunk/wp-admin/edit-comments.php
r5909 r6026 40 40 <div class="wrap"> 41 41 <h2><?php _e('Comments'); ?></h2> 42 <form name="searchform" action="" method="get" id="editcomments"> 43 <fieldset> 44 <legend><?php _e('Show Comments That Contain...') ?></legend> 45 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" /> 46 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 42 <form name="searchform" action="" method="get" id="editcomments"> 43 <fieldset> 44 <legend><?php _e('Show Comments That Contain...') ?></legend> 45 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" /> 46 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 47 47 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 48 48 <?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?> 49 </fieldset> 49 </fieldset> 50 50 </form> 51 51 <p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p> … … 89 89 90 90 $page_links = paginate_links( array( 91 'base' => add_query_arg( 'apage', '%#%' ), 91 'base' => add_query_arg( 'apage', '%#%' ), 92 92 'format' => '', 93 93 'total' => ceil($total / 20), … … 177 177 } ?></td> 178 178 </tr> 179 <?php 179 <?php 180 180 } // end foreach 181 181 ?></table> trunk/wp-admin/edit-form-advanced.php
r5786 r6026 85 85 <label for="comment_status" class="selectit"> 86 86 <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> 87 <?php _e('Allow Comments') ?></label> 87 <?php _e('Allow Comments') ?></label> 88 88 <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label> 89 89 </div> … … 91 91 92 92 <fieldset id="passworddiv" class="dbx-box"> 93 <h3 class="dbx-handle"><?php _e('Post Password') ?></h3> 93 <h3 class="dbx-handle"><?php _e('Post Password') ?></h3> 94 94 <div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></div> 95 95 </fieldset> 96 96 97 97 <fieldset id="slugdiv" class="dbx-box"> 98 <h3 class="dbx-handle"><?php _e('Post Slug') ?></h3> 98 <h3 class="dbx-handle"><?php _e('Post Slug') ?></h3> 99 99 <div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /></div> 100 100 </fieldset> 101 101 102 102 <fieldset id="poststatusdiv" class="dbx-box"> 103 <h3 class="dbx-handle"><?php _e('Post Status') ?></h3> 103 <h3 class="dbx-handle"><?php _e('Post Status') ?></h3> 104 104 <div class="dbx-content"> 105 105 <?php if ( current_user_can('publish_posts') ) : ?> … … 118 118 <?php endif; ?> 119 119 120 <?php 120 <?php 121 121 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM 122 122 if ( $authors && count( $authors ) > 1 ) : … … 164 164 <span id="autosave"></span> 165 165 <?php echo $saveasdraft; ?> 166 <input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> 167 <?php 166 <input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> 167 <?php 168 168 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { 169 169 ?> 170 170 <?php if ( current_user_can('publish_posts') ) : ?> 171 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> 171 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> 172 172 <?php else : ?> 173 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" /> 174 <?php endif; ?> 175 <?php 176 } 177 ?> 178 <input name="referredby" type="hidden" id="referredby" value="<?php 173 <input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" /> 174 <?php endif; ?> 175 <?php 176 } 177 ?> 178 <input name="referredby" type="hidden" id="referredby" value="<?php 179 179 if ( !empty($_REQUEST['popupurl']) ) 180 180 echo clean_url(stripslashes($_REQUEST['popupurl'])); trunk/wp-admin/edit-form-comment.php
r6003 r6026 55 55 <tr> 56 56 <th scope="row" valign="top"><?php _e('Comment Status') ?>:</th> 57 <td><label for="comment_status_approved" class="selectit"><input id="comment_status_approved" name="comment_status" type="radio" value="1" <?php checked($comment->comment_approved, '1'); ?> /> <?php _e('Approved') ?></label> 58 <label for="comment_status_moderated" class="selectit"><input id="comment_status_moderated" name="comment_status" type="radio" value="0" <?php checked($comment->comment_approved, '0'); ?> /> <?php _e('Moderated') ?></label> 57 <td><label for="comment_status_approved" class="selectit"><input id="comment_status_approved" name="comment_status" type="radio" value="1" <?php checked($comment->comment_approved, '1'); ?> /> <?php _e('Approved') ?></label> 58 <label for="comment_status_moderated" class="selectit"><input id="comment_status_moderated" name="comment_status" type="radio" value="0" <?php checked($comment->comment_approved, '0'); ?> /> <?php _e('Moderated') ?></label> 59 59 <label for="comment_status_spam" class="selectit"><input id="comment_status_spam" name="comment_status" type="radio" value="spam" <?php checked($comment->comment_approved, 'spam'); ?> /> <?php _e('Spam') ?></label></td> 60 60 </tr> … … 69 69 <tr> 70 70 <th scope="row" valign="top"> </th> 71 <td><input name="deletecomment" class="button delete" type="submit" id="deletecomment" tabindex="10" value="<?php _e('Delete this comment') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { document.forms.post._wpnonce.value = '" . wp_create_nonce( 'delete-comment_' . $comment->comment_ID ) . "'; return true; } return false;\""; ?> /> 71 <td><input name="deletecomment" class="button delete" type="submit" id="deletecomment" tabindex="10" value="<?php _e('Delete this comment') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { document.forms.post._wpnonce.value = '" . wp_create_nonce( 'delete-comment_' . $comment->comment_ID ) . "'; return true; } return false;\""; ?> /> 72 72 <input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" /> 73 73 <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" /> trunk/wp-admin/edit-form.php
r5543 r6026 21 21 <div id="poststuff"> 22 22 <fieldset id="titlediv"> 23 <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend> 23 <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend> 24 24 <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" /></div> 25 25 </fieldset> 26 26 27 27 <fieldset id="categorydiv"> 28 <legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend> 28 <legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend> 29 29 <div><?php dropdown_categories($post->post_category); ?></div> 30 30 </fieldset> trunk/wp-admin/edit-pages.php
r5963 r6026 72 72 if ($posts) { 73 73 ?> 74 <table class="widefat"> 74 <table class="widefat"> 75 75 <thead> 76 76 <tr> trunk/wp-admin/edit-post-rows.php
r5933 r6026 103 103 } 104 104 ?> 105 </tr> 105 </tr> 106 106 <?php 107 107 endwhile; 108 108 } else { 109 109 ?> 110 <tr style='background-color: <?php echo $bgcolor; ?>'> 111 <td colspan="8"><?php _e('No posts found.') ?></td> 112 </tr> 110 <tr style='background-color: <?php echo $bgcolor; ?>'> 111 <td colspan="8"><?php _e('No posts found.') ?></td> 112 </tr> 113 113 <?php 114 114 } // end if ( have_posts() ) trunk/wp-admin/edit.php
r5963 r6026 84 84 } else { 85 85 $author_user = get_userdata( get_query_var( 'author' ) ); 86 $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name )); 86 $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name )); 87 87 } 88 88 } … … 95 95 96 96 <form name="searchform" id="searchform" action="" method="get"> 97 <fieldset><legend><?php _e('Search terms…'); ?></legend> 98 <input type="text" name="s" id="s" value="<?php the_search_query(); ?>" size="17" /> 99 </fieldset> 100 101 <fieldset><legend><?php _e('Status…'); ?></legend> 97 <fieldset><legend><?php _e('Search terms…'); ?></legend> 98 <input type="text" name="s" id="s" value="<?php the_search_query(); ?>" size="17" /> 99 </fieldset> 100 101 <fieldset><legend><?php _e('Status…'); ?></legend> 102 102 <select name='post_status'> 103 103 <option<?php selected( @$_GET['post_status'], 0 ); ?> value='0'><?php _e('Any'); ?></option> … … 108 108 </fieldset> 109 109 110 <?php 110 <?php 111 111 $editable_ids = get_editable_user_ids( $user_ID ); 112 112 if ( $editable_ids && count( $editable_ids ) > 1 ) : … … 154 154 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> 155 155 </fieldset> 156 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 156 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 157 157 </form> 158 158 trunk/wp-admin/import/blogger.php
r5966 r6026 920 920 } else if(in_array($tag, $this->ATOM_CONTENT_ELEMENTS) || in_array($tag, $this->ATOM_SIMPLE_ELEMENTS)) { 921 921 $this->in_content = array(); 922 $this->is_xhtml = $attrs['type'] == 'xhtml'; 922 $this->is_xhtml = $attrs['type'] == 'xhtml'; 923 923 array_push($this->in_content, array($tag,$this->depth)); 924 924 } else if($tag == 'link') { … … 936 936 937 937 if(!empty($this->in_content)) { 938 if($this->in_content[0][0] == $tag && 938 if($this->in_content[0][0] == $tag && 939 939 $this->in_content[0][1] == $this->depth) { 940 940 array_shift($this->in_content); … … 999 999 } 1000 1000 } 1001 } 1001 } 1002 1002 return $name; 1003 1003 } … … 1005 1005 function xml_escape($string) 1006 1006 { 1007 return str_replace(array('&','"',"'",'<','>'), 1008 array('&','"',''','<','>'), 1007 return str_replace(array('&','"',"'",'<','>'), 1008 array('&','"',''','<','>'), 1009 1009 $string ); 1010 1010 } trunk/wp-admin/import/dotclear.php
r5953 r6026 110 110 class Dotclear_Import { 111 111 112 function header() 112 function header() 113 113 { 114 114 echo '<div class="wrap">'; … … 117 117 } 118 118 119 function footer() 119 function footer() 120 120 { 121 121 echo '</div>'; 122 122 } 123 123 124 function greet() 124 function greet() 125 125 { 126 126 echo '<div class="narrow"><p>'.__('Howdy! This importer allows you to extract posts from a DotClear database into your blog. Mileage may vary.').'</p>'; trunk/wp-admin/import/mt.php
r5962 r6026 358 358 $post->post_date_gmt = $date_gmt; 359 359 } else if ( 'comment' == $context ) { 360 $comment->comment_date = $date; 360 $comment->comment_date = $date; 361 361 } else if ( 'ping' == $context ) { 362 $ping->comment_date = $date; 362 $ping->comment_date = $date; 363 363 } 364 364 } else if ( 0 === strpos($line, "EMAIL:") ) { trunk/wp-admin/import/stp.php
r5977 r6026 20 20 echo '<p><strong>'.__('Don’t be stupid - backup your database before proceeding!').'</strong></p>'; 21 21 echo '<form action="admin.php?import=stp&step=1" method="post">'; 22 wp_nonce_field('import-utw'); 22 wp_nonce_field('import-utw'); 23 23 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 1 »').'" /></p>'; 24 24 echo '</form>'; … … 89 89 90 90 echo '<form action="admin.php?import=stp&step=2" method="post">'; 91 wp_nonce_field('import-utw'); 91 wp_nonce_field('import-utw'); 92 92 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2 »').'" /></p>'; 93 93 echo '</form>'; … … 108 108 109 109 echo '<form action="admin.php?import=stp&step=3" method="post">'; 110 wp_nonce_field('import-utw'); 110 wp_nonce_field('import-utw'); 111 111 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3 »').'" /></p>'; 112 112 echo '</form>'; … … 140 140 141 141 // loop through each post and add its tags to the db 142 foreach ( $posts as $this_post ) { 142 foreach ( $posts as $this_post ) { 143 143 $the_post = (int) $this_post->post_id; 144 144 $the_tag = $wpdb->escape($this_post->tag_name); trunk/wp-admin/import/textpattern.php
r5953 r6026 27 27 class Textpattern_Import { 28 28 29 function header() 29 function header() 30 30 { 31 31 echo '<div class="wrap">'; … … 34 34 } 35 35 36 function footer() 36 function footer() 37 37 { 38 38 echo '</div>'; trunk/wp-admin/import/wordpress.php
r5937 r6026 105 105 $this->posts[$num] = ''; 106 106 $doing_entry = true; 107 continue; 107 continue; 108 108 } 109 109 if ( false !== strpos($importline, '</item>') ) { 110 110 $num++; 111 111 $doing_entry = false; 112 continue; 112 continue; 113 113 } 114 114 if ( $doing_entry ) { … … 336 336 } 337 337 wp_set_post_categories($post_id, $post_cats); 338 } 338 } 339 339 } 340 340 trunk/wp-admin/includes/plugin.php
r6020 r6026 262 262 foreach (array_keys( $submenu ) as $parent) { 263 263 foreach ( $submenu[$parent] as $submenu_array ) { 264 if ( isset( $plugin_page ) && 265 ($plugin_page == $submenu_array[2] ) && 264 if ( isset( $plugin_page ) && 265 ($plugin_page == $submenu_array[2] ) && 266 266 (($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) ) 267 267 ) { trunk/wp-admin/includes/post.php
r5967 r6026 335 335 336 336 if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) { 337 // We have a key/value pair. If both the select and the 337 // We have a key/value pair. If both the select and the 338 338 // input for the key have data, the input takes precedence: 339 339 … … 348 348 349 349 $result = $wpdb->query( " 350 INSERT INTO $wpdb->postmeta 351 (post_id,meta_key,meta_value ) 350 INSERT INTO $wpdb->postmeta 351 (post_id,meta_key,meta_value ) 352 352 VALUES ('$post_ID','$metakey','$metavalue' ) 353 353 " ); trunk/wp-admin/includes/taxonomy.php
r5938 r6026 152 152 return $id; 153 153 154 return wp_insert_term($tag_name, 'post_tag'); 154 return wp_insert_term($tag_name, 'post_tag'); 155 155 } 156 156 trunk/wp-admin/includes/template.php
r5998 r6026 181 181 $class = ('alternate' == $class ) ? '' : 'alternate'; 182 182 ?> 183 <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'> 184 <th scope="row" style="text-align: center"><?php echo $post->ID; ?></th> 183 <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'> 184 <th scope="row" style="text-align: center"><?php echo $post->ID; ?></th> 185 185 <td> 186 186 <?php echo $pad; ?><?php the_title() ?> 187 </td> 187 </td> 188 188 <td><?php the_author() ?></td> 189 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td> 189 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td> 190 190 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e( 'View' ); ?></a></td> 191 <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td> 192 <td><?php if ( current_user_can( 'delete_page', $id ) ) { echo "<a href='" . wp_nonce_url( "page.php?action=delete&post=$id", 'delete-page_' . $id ) . "' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . js_escape(sprintf( __("You are about to delete the '%s' page.\n'OK' to delete, 'Cancel' to stop." ), get_the_title() ) ) . "' );\">" . __( 'Delete' ) . "</a>"; } ?></td> 193 </tr> 191 <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td> 192 <td><?php if ( current_user_can( 'delete_page', $id ) ) { echo "<a href='" . wp_nonce_url( "page.php?action=delete&post=$id", 'delete-page_' . $id ) . "' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . js_escape(sprintf( __("You are about to delete the '%s' page.\n'OK' to delete, 'Cancel' to stop." ), get_the_title() ) ) . "' );\">" . __( 'Delete' ) . "</a>"; } ?></td> 193 </tr> 194 194 195 195 <?php trunk/wp-admin/includes/update.php
r5994 r6026 63 63 } 64 64 65 if ( 66 isset( $current->last_checked ) && 67 43200 > ( time() - $current->last_checked ) && 65 if ( 66 isset( $current->last_checked ) && 67 43200 > ( time() - $current->last_checked ) && 68 68 !$plugin_changed 69 69 ) trunk/wp-admin/includes/upgrade.php
r6025 r6026 625 625 if ( empty($term_id) ) { 626 626 $wpdb->query("INSERT INTO $wpdb->terms (name, slug, term_group) VALUES ('$name', '$slug', '$term_group')"); 627 $term_id = (int) $wpdb->insert_id; 627 $term_id = (int) $wpdb->insert_id; 628 628 } 629 629 trunk/wp-admin/includes/user.php
r5750 r6026 40 40 $pass2 = $_POST['pass2']; 41 41 42 if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { 42 if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { 43 43 if( $user_id != $current_user->id || $wp_roles->role_objects[$_POST['role']]->has_cap( 'edit_users' )) 44 44 $user->role = $_POST['role']; trunk/wp-admin/index-extra.php
r5893 r6026 9 9 case 'incominglinks' : 10 10 11 $rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); 11 $rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); 12 12 $more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); 13 13 trunk/wp-admin/index.php
r6002 r6026 1 1 <?php 2 require_once('admin.php'); 2 require_once('admin.php'); 3 3 4 4 function index_js() { … … 17 17 wp_enqueue_script( 'jquery' ); 18 18 19 $title = __('Dashboard'); 19 $title = __('Dashboard'); 20 20 $parent_file = 'index.php'; 21 21 require_once('admin-header.php'); … … 40 40 ?> 41 41 <div> 42 <h3><?php printf( __( 'Comments <a href="%s" title="More comments…">»</a>' ), 'edit-comments.php' ); ?></h3> 42 <h3><?php printf( __( 'Comments <a href="%s" title="More comments…">»</a>' ), 'edit-comments.php' ); ?></h3> 43 43 44 44 <?php if ( $numcomments ) : ?> trunk/wp-admin/link-category.php
r5654 r6026 61 61 62 62 if ( wp_update_term($cat_ID, 'link_category', $_POST) ) 63 wp_redirect('edit-link-categories.php?message=3'); 63 wp_redirect('edit-link-categories.php?message=3'); 64 64 else 65 wp_redirect('edit-link-categories.php?message=5'); 65 wp_redirect('edit-link-categories.php?message=5'); 66 66 67 67 exit; trunk/wp-admin/link-import.php
r5835 r6026 124 124 125 125 if ( ! $blogrolling ) 126 apply_filters( 'wp_delete_file', $opml_url); 126 apply_filters( 'wp_delete_file', $opml_url); 127 127 @unlink($opml_url); 128 128 ?> trunk/wp-admin/menu.php
r5654 r6026 97 97 // submenu in line be assigned as the new menu parent. 98 98 foreach ( $menu as $id => $data ) { 99 if ( empty($submenu[$data[2]]) ) 99 if ( empty($submenu[$data[2]]) ) 100 100 continue; 101 101 $subs = $submenu[$data[2]]; trunk/wp-admin/moderation.php
r5773 r6026 125 125 $stop = $start + $per; 126 126 127 $page_links = paginate_links( array( 128 'base' => add_query_arg( 'paged', '%#%' ), 129 'format' => '', 130 'total' => ceil( $total / $per ), 131 'current' => $page, 132 'prev_text' => '«', 127 $page_links = paginate_links( array( 128 'base' => add_query_arg( 'paged', '%#%' ), 129 'format' => '', 130 'total' => ceil( $total / $per ), 131 'current' => $page, 132 'prev_text' => '«', 133 133 'next_text' => '»' 134 134 ) ); … … 161 161 <li id="comment-<?php comment_ID(); ?>" class="<?php echo $class; ?>"> 162 162 <p> 163 <strong><?php comment_author(); ?></strong> 163 <strong><?php comment_author(); ?></strong> 164 164 <?php if ( !empty( $comment->comment_author_email ) ) { ?>| <?php comment_author_email_link(); ?> <?php } ?> 165 165 <?php if ( !empty( $comment->comment_author_url ) && $comment->comment_author_url != 'http://' ) { ?>| <?php comment_author_url_link(); ?> <?php } ?> … … 172 172 173 173 <p><small> 174 <?php comment_date( __( 'M j, g:i A' ) ); ?> — 175 [ <a href="comment.php?action=editcomment&c=<?php comment_ID(); ?>" title="<?php _e( 'Edit this comment' ); ?>"><?php _e( 'Edit' ); ?></a> | 176 <a href="post.php?action=deletecomment&p=<?php echo $comment->comment_post_ID; ?>" title="<?php _e( 'Delete this comment' ); ?>" onclick="return deleteSomething( 'comment', <?php comment_ID(); ?>, '<?php echo js_escape( sprintf( __( "You are about to delete this comment by '%s'.\n'OK' to delete, 'Cancel' to stop." ), get_comment_author() ) ); ?>', theCommentList );"><?php _e( 'Delete' ); ?></a> ] — 174 <?php comment_date( __( 'M j, g:i A' ) ); ?> — 175 [ <a href="comment.php?action=editcomment&c=<?php comment_ID(); ?>" title="<?php _e( 'Edit this comment' ); ?>"><?php _e( 'Edit' ); ?></a> | 176 <a href="post.php?action=deletecomment&p=<?php echo $comment->comment_post_ID; ?>" title="<?php _e( 'Delete this comment' ); ?>" onclick="return deleteSomething( 'comment', <?php comment_ID(); ?>, '<?php echo js_escape( sprintf( __( "You are about to delete this comment by '%s'.\n'OK' to delete, 'Cancel' to stop." ), get_comment_author() ) ); ?>', theCommentList );"><?php _e( 'Delete' ); ?></a> ] — 177 177 <a href="<?php echo get_permalink( $comment->comment_post_ID ); ?>" title="<?php _e( 'View the post' ); ?>"><?php printf( __( 'View post “%s”' ), get_the_title( $comment->comment_post_ID ) ); ?></a> 178 178 </small></p> trunk/wp-admin/options-discussion.php
r5825 r6026 8 8 ?> 9 9 10 <div class="wrap"> 11 <h2><?php _e('Discussion Options') ?></h2> 12 <form method="post" action="options.php"> 10 <div class="wrap"> 11 <h2><?php _e('Discussion Options') ?></h2> 12 <form method="post" action="options.php"> 13 13 <?php wp_nonce_field('update-options') ?> 14 14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 15 15 <fieldset class="options"> 16 <legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend> 17 <ul> 18 <li> 19 <label for="default_pingback_flag"> 20 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> 21 <?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label> 22 </li> 23 <li> 24 <label for="default_ping_status"> 25 <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> /> 26 <?php _e('Allow link notifications from other blogs (pingbacks and trackbacks.)') ?></label> 27 </li> 28 <li> 29 <label for="default_comment_status"> 30 <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> /> 31 <?php _e('Allow people to post comments on the article') ?></label> 32 </li> 33 </ul> 16 <legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend> 17 <ul> 18 <li> 19 <label for="default_pingback_flag"> 20 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> 21 <?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label> 22 </li
