Changeset 9506
- Timestamp:
- 11/04/2008 03:22:24 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9477 r9506 231 231 </div> 232 232 233 <br class="clear" />234 233 </form> 234 235 <div class="form-wrap"> 236 <p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?></p> 237 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p> 238 </div> 239 235 240 </div> 236 241 </div><!-- /col-right --> … … 279 284 <?php } ?> 280 285 281 <div class="form-wrap">282 <p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?></p>283 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p>284 </div>285 286 286 </div> 287 287 </div><!-- /col-left --> -
trunk/wp-admin/edit-attachment-rows.php
r9180 r9506 129 129 $t_time = get_the_time(__('Y/m/d g:i:s A')); 130 130 $m_time = $post->post_date; 131 $time = get_post_time( 'G', true );131 $time = get_post_time( 'G', true, $post ); 132 132 if ( ( abs($t_diff = time() - $time) ) < 86400 ) { 133 133 if ( $t_diff < 0 ) -
trunk/wp-admin/edit-form-advanced.php
r9491 r9506 205 205 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?> 206 206 <?php if ( current_user_can('publish_posts') ) : ?> 207 <?php if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>207 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 208 208 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Schedule') ?>" /> 209 209 <?php else : ?> -
trunk/wp-admin/edit-link-categories.php
r9481 r9506 181 181 <div class="col-wrap"> 182 182 183 <?php if ( current_user_can('manage_categories') ) {183 <?php if ( isset( $category ) && current_user_can('manage_categories') ) { 184 184 $category = (object) array(); $category->parent = 0; do_action('add_link_category_form_pre', $category); ?> 185 185 … … 199 199 <label for="slug"><?php _e('Category slug') ?></label> 200 200 <input name="slug" id="slug" type="text" value="" size="40" /> 201 201 <p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p> 202 202 </div> 203 203 -
trunk/wp-admin/edit-link-form.php
r9363 r9506 71 71 72 72 <?php 73 if ( 'edit' == $_GET['action'] && current_user_can('manage_links') )73 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) 74 74 echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a>"; 75 75 ?> … … 342 342 --> 343 343 <?php 344 echo $form; 345 echo $link_added; 344 if ( !empty($form) ) 345 echo $form; 346 if ( !empty($link_added) ) 347 echo $link_added; 346 348 347 349 wp_nonce_field( $nonce_action ); -
trunk/wp-admin/edit-page-form.php
r9491 r9506 191 191 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?> 192 192 <?php if ( current_user_can('publish_posts') ) : ?> 193 <?php if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>193 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 194 194 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Schedule') ?>" /> 195 195 <?php else : ?> -
trunk/wp-admin/import/blogger.php
r8645 r9506 815 815 } elseif ( isset($_GET['token']) ) 816 816 $this->auth(); 817 elseif ( $this->token&& $this->token_is_valid() )817 elseif ( isset($this->token) && $this->token_is_valid() ) 818 818 $this->show_blogs(); 819 819 else -
trunk/wp-admin/includes/plugin-install.php
r9328 r9506 174 174 <input type="text" name="s" id="search-field" value="<?php echo attribute_escape($term) ?>" /> 175 175 <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')) ?>" class="button" /> 176 <?php echo $after_submit ?>177 176 </form><?php 178 177 } -
trunk/wp-admin/includes/template.php
r9491 r9506 1243 1243 $t_time = get_the_time(__('Y/m/d g:i:s A')); 1244 1244 $m_time = $post->post_date; 1245 $time = get_post_time('G', true );1245 $time = get_post_time('G', true, $post); 1246 1246 1247 1247 if ( ( abs(time() - $time) ) < 86400 ) { -
trunk/wp-admin/link.php
r8697 r9506 18 18 wp_die( __('You do not have sufficient permissions to edit the links for this blog.') ); 19 19 20 if ( '' != $_POST['deletebookmarks'])20 if ( !empty($_POST['deletebookmarks']) ) 21 21 $action = 'deletebookmarks'; 22 if ( '' != $_POST['move'])22 if ( !empty($_POST['move']) ) 23 23 $action = 'move'; 24 if ( '' != $_POST['linkcheck'])25 $linkcheck = $_POST[ linkcheck];24 if ( !empty($_POST['linkcheck']) ) 25 $linkcheck = $_POST['linkcheck']; 26 26 27 27 $this_file = 'link-manager.php'; -
trunk/wp-admin/options.php
r9487 r9506 71 71 foreach ( $options as $option ) { 72 72 $option = trim($option); 73 $value = $_POST[$option]; 73 $value = null; 74 if ( isset($_POST[$option]) ) 75 $value = $_POST[$option]; 74 76 if ( !is_array($value) ) $value = trim($value); 75 77 $value = stripslashes_deep($value); -
trunk/wp-admin/upload.php
r9414 r9506 185 185 foreach ( $matches as $type => $reals ) 186 186 foreach ( $reals as $real ) 187 $num_posts[$type] +=$_num_posts[$real];187 $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real]; 188 188 189 189 $class = empty($_GET['post_mime_type']) && ! isset($_GET['detached']) ? ' class="current"' : ''; … … 195 195 continue; 196 196 197 if ( wp_match_mime_types($mime_type, $_GET['post_mime_type']) )197 if ( !empty($_GET['post_mime_type']) && wp_match_mime_types($mime_type, $_GET['post_mime_type']) ) 198 198 $class = ' class="current"'; 199 199 -
trunk/wp-admin/user-edit.php
r9390 r9506 223 223 <tr> 224 224 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> 225 <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation. <a href="http://codex.wordpress.org/Keyboard_Shortcuts">More information</a>' ); ?></label></td>225 <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation. <a href="http://codex.wordpress.org/Keyboard_Shortcuts">More information</a>' ); ?></label></td> 226 226 </tr> 227 227 <?php -
trunk/wp-includes/canonical.php
r9475 r9506 62 62 $redirect = $original; 63 63 $redirect_url = false; 64 65 // Notice fixing 66 if ( !isset($redirect['path']) ) $redirect['path'] = ''; 67 if ( !isset($redirect['query']) ) $redirect['query'] = ''; 64 68 65 69 if ( is_singular() && 1 > $wp_query->post_count && ($id = get_query_var('p')) ) { -
trunk/wp-includes/category.php
r9080 r9506 278 278 $tags = get_terms( 'post_tag', $args ); 279 279 280 if ( empty( $tags ) ) 281 return array(); 280 if ( empty( $tags ) ) { 281 $return = array(); 282 return $return; 283 } 282 284 283 285 $tags = apply_filters( 'get_tags', $tags, $args ); -
trunk/wp-includes/rewrite.php
r9300 r9506 1627 1627 1628 1628 $site_root = parse_url(get_option('siteurl')); 1629 $site_root = trailingslashit($site_root['path']); 1629 if ( isset( $site_root['path'] ) ) { 1630 $site_root = trailingslashit($site_root['path']); 1631 } 1630 1632 1631 1633 $home_root = parse_url(get_option('home')); 1632 $home_root = trailingslashit($home_root['path']); 1634 if ( isset( $home_root['path'] ) ) { 1635 $home_root = trailingslashit($home_root['path']); 1636 } 1633 1637 1634 1638 $rules = "<IfModule mod_rewrite.c>\n"; -
trunk/wp-includes/widgets.php
r9234 r9506 1552 1552 } 1553 1553 1554 $default_args = array( 'show_author' => 0, 'show_date' => 0, 'show_summary' => 0 ); 1555 $args = wp_parse_args( $args, $default_args ); 1554 1556 extract( $args, EXTR_SKIP ); 1555 1557
Note: See TracChangeset
for help on using the changeset viewer.