Changeset 8600
- Timestamp:
- 08/09/08 05:36:14 (4 months ago)
- Files:
-
- trunk/wp-admin/admin-ajax.php (modified) (2 diffs)
- trunk/wp-admin/admin-header.php (modified) (3 diffs)
- trunk/wp-admin/async-upload.php (modified) (1 diff)
- trunk/wp-admin/css/colors-classic.css (modified) (9 diffs)
- trunk/wp-admin/css/colors-fresh.css (modified) (10 diffs)
- trunk/wp-admin/css/dashboard-rtl.css (modified) (1 diff)
- trunk/wp-admin/css/dashboard.css (modified) (2 diffs)
- trunk/wp-admin/css/global-rtl.css (modified) (1 diff)
- trunk/wp-admin/css/ie-rtl.css (modified) (5 diffs)
- trunk/wp-admin/css/login.css (modified) (1 diff)
- trunk/wp-admin/css/media-rtl.css (modified) (1 diff)
- trunk/wp-admin/css/press-this-rtl.css (modified) (2 diffs)
- trunk/wp-admin/css/press-this.css (modified) (3 diffs)
- trunk/wp-admin/css/widgets.css (modified) (1 diff)
- trunk/wp-admin/custom-header.php (modified) (1 diff)
- trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
- trunk/wp-admin/edit-link-categories.php (modified) (1 diff)
- trunk/wp-admin/edit-link-form.php (modified) (1 diff)
- trunk/wp-admin/edit-page-form.php (modified) (4 diffs)
- trunk/wp-admin/gears-manifest.php (modified) (1 diff)
- trunk/wp-admin/import/mt.php (modified) (1 diff)
- trunk/wp-admin/import/wordpress.php (modified) (1 diff)
- trunk/wp-admin/import/wp-cat2tag.php (modified) (4 diffs)
- trunk/wp-admin/includes/bookmark.php (modified) (1 diff)
- trunk/wp-admin/includes/class-wp-filesystem-base.php (modified) (7 diffs)
- trunk/wp-admin/includes/class-wp-filesystem-ftpext.php (modified) (1 diff)
- trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php (modified) (2 diffs)
- trunk/wp-admin/includes/dashboard.php (modified) (1 diff)
- trunk/wp-admin/includes/file.php (modified) (2 diffs)
- trunk/wp-admin/includes/image.php (modified) (4 diffs)
- trunk/wp-admin/includes/media.php (modified) (1 diff)
- trunk/wp-admin/includes/misc.php (modified) (1 diff)
- trunk/wp-admin/includes/plugin-install.php (modified) (19 diffs)
- trunk/wp-admin/includes/plugin.php (modified) (6 diffs)
- trunk/wp-admin/includes/post.php (modified) (4 diffs)
- trunk/wp-admin/includes/schema.php (modified) (2 diffs)
- trunk/wp-admin/includes/template.php (modified) (13 diffs)
- trunk/wp-admin/includes/update-core.php (modified) (1 diff)
- trunk/wp-admin/includes/update.php (modified) (6 diffs)
- trunk/wp-admin/includes/upgrade.php (modified) (2 diffs)
- trunk/wp-admin/includes/widgets.php (modified) (1 diff)
- trunk/wp-admin/js/common.js (modified) (1 diff)
- trunk/wp-admin/js/editor.js (modified) (2 diffs)
- trunk/wp-admin/js/media-upload.js (modified) (2 diffs)
- trunk/wp-admin/js/revisions-js.php (modified) (1 diff)
- trunk/wp-admin/js/word-count.js (modified) (2 diffs)
- trunk/wp-admin/js/wp-gears.js (modified) (1 diff)
- trunk/wp-admin/plugins.php (modified) (8 diffs)
- trunk/wp-admin/post.php (modified) (1 diff)
- trunk/wp-admin/press-this.php (modified) (15 diffs)
- trunk/wp-admin/revision.php (modified) (2 diffs)
- trunk/wp-admin/rtl.css (modified) (5 diffs)
- trunk/wp-admin/update.php (modified) (3 diffs)
- trunk/wp-admin/upload.php (modified) (1 diff)
- trunk/wp-admin/user-edit.php (modified) (2 diffs)
- trunk/wp-admin/widgets.php (modified) (1 diff)
- trunk/wp-admin/wp-admin.css (modified) (3 diffs)
- trunk/wp-app.php (modified) (1 diff)
- trunk/wp-includes/cache.php (modified) (1 diff)
- trunk/wp-includes/class-phpass.php (modified) (1 diff)
- trunk/wp-includes/class.wp-dependencies.php (modified) (1 diff)
- trunk/wp-includes/classes.php (modified) (5 diffs)
- trunk/wp-includes/comment-template.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) (6 diffs)
- trunk/wp-includes/general-template.php (modified) (2 diffs)
- trunk/wp-includes/http.php (modified) (7 diffs)
- trunk/wp-includes/js/autosave.js (modified) (5 diffs)
- trunk/wp-includes/js/tinymce/tiny_mce_config.php (modified) (12 diffs)
- trunk/wp-includes/js/tinymce/wp-mce-help.php (modified) (2 diffs)
- trunk/wp-includes/l10n.php (modified) (1 diff)
- trunk/wp-includes/link-template.php (modified) (3 diffs)
- trunk/wp-includes/media.php (modified) (5 diffs)
- trunk/wp-includes/pluggable.php (modified) (5 diffs)
- trunk/wp-includes/post-template.php (modified) (2 diffs)
- trunk/wp-includes/post.php (modified) (5 diffs)
- trunk/wp-includes/query.php (modified) (2 diffs)
- trunk/wp-includes/rewrite.php (modified) (1 diff)
- trunk/wp-includes/script-loader.php (modified) (3 diffs)
- trunk/wp-includes/shortcodes.php (modified) (3 diffs)
- trunk/wp-includes/taxonomy.php (modified) (1 diff)
- trunk/wp-includes/theme.php (modified) (1 diff)
- trunk/wp-includes/user.php (modified) (2 diffs)
- trunk/wp-includes/widgets.php (modified) (4 diffs)
- trunk/wp-includes/wp-db.php (modified) (2 diffs)
- trunk/wp-login.php (modified) (2 diffs)
- trunk/wp-settings.php (modified) (1 diff)
- trunk/xmlrpc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-ajax.php
r8490 r8600 14 14 $s = $_GET['q']; // is this slashed already? 15 15 16 if ( strstr( $s, ',' ) ) { 17 $s = explode( ',', $s ); 18 $s = $s[count( $s ) - 1]; 16 if ( strstr( $s, ',' ) ) { 17 $s = explode( ',', $s ); 18 $s = $s[count( $s ) - 1]; 19 19 } 20 20 $s = trim( $s ); … … 279 279 $x->send(); 280 280 } 281 281 282 282 $cat = wp_insert_category( $_POST, true ); 283 283 trunk/wp-admin/admin-header.php
r8419 r8600 75 75 76 76 <?php 77 if ( ! $is_opera ) { 77 if ( ! $is_opera ) { 78 78 ?> 79 79 <div id="gears-info-box" class="info-box" style="display:none;"> … … 90 90 <div id="gears-msg2" style="display:none;"> 91 91 <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3> 92 <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p> 93 <p><?php 94 92 <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p> 93 <p><?php 94 95 95 if ( $is_safari ) 96 96 _e('To enable it, make sure this web site is not on the denied list in Gears Settings under the Safari menu, then click the button below.'); 97 97 else 98 _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser Tools menu, then click the button below.'); 99 98 _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser Tools menu, then click the button below.'); 99 100 100 ?></p> 101 101 <p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p> … … 107 107 <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3> 108 108 <p><?php 109 109 110 110 if ( $is_safari ) 111 111 _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.'); 112 112 else 113 _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); 114 113 _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); 114 115 115 ?></p> 116 116 <p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p> trunk/wp-admin/async-upload.php
r8190 r8600 23 23 wp_die(__('You do not have permission to upload files.')); 24 24 25 // just fetch the detail form for that attachment 25 // just fetch the detail form for that attachment 26 26 if ( ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) { 27 27 echo get_media_item($id); trunk/wp-admin/css/colors-classic.css
r8540 r8600 555 555 /* TinyMCE */ 556 556 .wp_themeSkin *, 557 .wp_themeSkin a:hover, 558 .wp_themeSkin a:link, 559 .wp_themeSkin a:visited, 557 .wp_themeSkin a:hover, 558 .wp_themeSkin a:link, 559 .wp_themeSkin a:visited, 560 560 .wp_themeSkin a:active { 561 561 color: #000; … … 578 578 579 579 /* Button */ 580 .wp_themeSkin .mceButton { 580 .wp_themeSkin .mceButton { 581 581 background-color: #e9e8e8; 582 582 border-color: #83B4D5; … … 584 584 585 585 .wp_themeSkin a.mceButtonEnabled:hover, 586 .wp_themeSkin a.mceButtonActive, 586 .wp_themeSkin a.mceButtonActive, 587 587 .wp_themeSkin a.mceButtonSelected { 588 588 background-color: #d6d8da; … … 601 601 } 602 602 603 .wp_themeSkin table.mceListBoxEnabled:hover .mceOpen, 603 .wp_themeSkin table.mceListBoxEnabled:hover .mceOpen, 604 604 .wp_themeSkin .mceListBoxHover .mceOpen, 605 605 .wp_themeSkin .mceListBoxSelected .mceOpen, … … 609 609 } 610 610 611 .wp_themeSkin table.mceListBoxEnabled:hover .mceText, 611 .wp_themeSkin table.mceListBoxEnabled:hover .mceText, 612 612 .wp_themeSkin .mceListBoxHover .mceText { 613 613 border-color: #7789ba !important; … … 615 615 616 616 .wp_themeSkin select.mceListBox { 617 border-color: #b3c7e1; 617 border-color: #b3c7e1; 618 618 background-color: #fff; 619 619 } 620 620 621 621 /* SplitButton */ 622 .wp_themeSkin .mceSplitButton a.mceAction, 622 .wp_themeSkin .mceSplitButton a.mceAction, 623 623 .wp_themeSkin .mceSplitButton a.mceOpen { 624 624 background-color: #e9e8e8; … … 632 632 background-color: #d6d8da; 633 633 border-color: #7789ba !important; 634 } 634 } 635 635 636 636 .wp_themeSkin .mceSplitButtonActive { … … 671 671 672 672 .wp_themeSkin .mceMenu .mceText { 673 color: #000; 673 color: #000; 674 674 } 675 675 … … 682 682 } 683 683 .wp_themeSkin .mceMenuItemTitle a { 684 background-color: #ccc; 684 background-color: #ccc; 685 685 border-bottom-color: #aaa; 686 686 } trunk/wp-admin/css/colors-fresh.css
r8540 r8600 38 38 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, li.widget-list-control-item h4.widget-title a, 39 39 #dragHelper li.widget-list-control-item h4.widget-title a, 40 #draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, 40 #draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, 41 41 #plugin-information .action-button a, #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { 42 42 color: #fff; … … 527 527 /* TinyMCE */ 528 528 .wp_themeSkin *, 529 .wp_themeSkin a:hover, 530 .wp_themeSkin a:link, 531 .wp_themeSkin a:visited, 529 .wp_themeSkin a:hover, 530 .wp_themeSkin a:link, 531 .wp_themeSkin a:visited, 532 532 .wp_themeSkin a:active { 533 533 color: #000; … … 550 550 551 551 /* Button */ 552 .wp_themeSkin .mceButton { 552 .wp_themeSkin .mceButton { 553 553 background-color: #e9e8e8; 554 554 border-color: #abc0fb; … … 556 556 557 557 .wp_themeSkin a.mceButtonEnabled:hover, 558 .wp_themeSkin a.mceButtonActive, 558 .wp_themeSkin a.mceButtonActive, 559 559 .wp_themeSkin a.mceButtonSelected { 560 560 background-color: #d6d8da; … … 573 573 } 574 574 575 .wp_themeSkin table.mceListBoxEnabled:hover .mceOpen, 575 .wp_themeSkin table.mceListBoxEnabled:hover .mceOpen, 576 576 .wp_themeSkin .mceListBoxHover .mceOpen, 577 577 .wp_themeSkin .mceListBoxSelected .mceOpen, … … 581 581 } 582 582 583 .wp_themeSkin table.mceListBoxEnabled:hover .mceText, 583 .wp_themeSkin table.mceListBoxEnabled:hover .mceText, 584 584 .wp_themeSkin .mceListBoxHover .mceText { 585 585 border-color: #7789ba !important; … … 587 587 588 588 .wp_themeSkin select.mceListBox { 589 border-color: #b3c7e1; 589 border-color: #b3c7e1; 590 590 background-color: #fff; 591 591 } 592 592 593 593 /* SplitButton */ 594 .wp_themeSkin .mceSplitButton a.mceAction, 594 .wp_themeSkin .mceSplitButton a.mceAction, 595 595 .wp_themeSkin .mceSplitButton a.mceOpen { 596 596 background-color: #e9e8e8; … … 604 604 background-color: #d6d8da; 605 605 border-color: #7789ba !important; 606 } 606 } 607 607 608 608 .wp_themeSkin .mceSplitButtonActive { … … 643 643 644 644 .wp_themeSkin .mceMenu .mceText { 645 color: #000; 645 color: #000; 646 646 } 647 647 … … 654 654 } 655 655 .wp_themeSkin .mceMenuItemTitle a { 656 background-color: #ccc; 656 background-color: #ccc; 657 657 border-bottom-color: #aaa; 658 658 } trunk/wp-admin/css/dashboard-rtl.css
r8327 r8600 26 26 font-family: sans-serif !important; 27 27 } 28 28 29 29 #dashboard-widgets .widget_rss ul li a { 30 30 float:right; trunk/wp-admin/css/dashboard.css
r7453 r8600 67 67 } 68 68 69 div.dashboard-widget-holder { 69 div.dashboard-widget-holder { 70 70 margin-top: 20px; 71 71 width: 50%; … … 158 158 border-radius: 3px; 159 159 cursor: pointer; 160 text-decoration: none; 160 text-decoration: none; 161 161 } 162 162 trunk/wp-admin/css/global-rtl.css
r8327 r8600 9 9 .textleft { text-align: right; } 10 10 .textright { text-align: left; } 11 11 12 12 .wrap h2 { font-family: sans-serif; } 13 13 trunk/wp-admin/css/ie-rtl.css
r8590 r8600 4 4 } 5 5 6 #wpcontent #sidemenu li a { 7 float: left; 6 #wpcontent #sidemenu li a { 7 float: left; 8 8 } 9 9 … … 60 60 61 61 /* Search box gets stuck to the right, hidden outside view */ 62 * html #post-search, * html #widget-search { 62 * html #post-search, * html #widget-search { 63 63 height: 1% !important; 64 64 right: 600px !important; … … 76 76 77 77 /* Bad floating in the sub-sub-sub menu makes links un-clickable */ 78 * html .subsubsub li { 78 * html .subsubsub li { 79 79 display: block; float: right; margin: 0 2px; 80 80 } … … 86 86 87 87 /* Theme selector on theme edit page gets stuck to the left, hidden outside view */ 88 * html #themeselector { 88 * html #themeselector { 89 89 position: static; 90 90 } … … 92 92 /* Template edit area floats beneath template list, gets RTLed */ 93 93 * html #template { 94 float: right; 94 float: right; 95 95 overflow: hidden; 96 width: 755px !important; 96 width: 755px !important; 97 97 } 98 98 * html #template #newcontent { trunk/wp-admin/css/login.css
r7187 r8600 31 31 border-radius: 3px; 32 32 cursor: default; 33 text-decoration: none; 33 text-decoration: none; 34 34 margin-top: -6px; 35 35 } trunk/wp-admin/css/media-rtl.css
r7398 r8600 7 7 float: right; 8 8 padding: 0 25px 0 0; 9 margin: 5px 3px 5px 5px; 9 margin: 5px 3px 5px 5px; 10 10 } 11 11 .align .field input { trunk/wp-admin/css/press-this-rtl.css
r8328 r8600 3 3 } 4 4 5 #viewsite { 6 right:auto; left: 8px; 5 #viewsite { 6 right:auto; left: 8px; 7 7 } 8 8 9 ul#menu { 10 padding-right: 8px; 9 ul#menu { 10 padding-right: 8px; 11 11 } 12 12 13 .ui-tabs-nav li { 14 float: right; 13 .ui-tabs-nav li { 14 float: right; 15 15 } 16 16 17 div#posting { 18 padding-right:16px; padding-left: 0; 17 div#posting { 18 padding-right:16px; padding-left: 0; 19 19 } 20 20 21 div#categories { 22 right: auto; left: 16px; 21 div#categories { 22 right: auto; left: 16px; 23 23 } 24 24 25 div#categories h2 { 26 margin:0.5em 1em 0.5em 0; 25 div#categories h2 { 26 margin:0.5em 1em 0.5em 0; 27 27 } 28 28 29 #jaxtag { 30 padding-right :1em; padding-left: 0; 29 #jaxtag { 30 padding-right :1em; padding-left: 0; 31 31 } 32 32 33 input#newtag { 34 margin-left: 4px; width: 100px; 33 input#newtag { 34 margin-left: 4px; width: 100px; 35 35 } 36 36 37 #photo_directions span { 38 right: auto; left: 3px 37 #photo_directions span { 38 right: auto; left: 3px 39 39 } 40 40 41 #TB_ajaxContent #options { 42 right: auto; left: 25px; 41 #TB_ajaxContent #options { 42 right: auto; left: 25px; 43 43 } 44 44 … … 51 51 } 52 52 53 .video_split #extra_fields { 54 float: right; 53 .video_split #extra_fields { 54 float: right; 55 55 } 56 56 57 .video_split .editor_area { 58 float: left; 57 .video_split .editor_area { 58 float: left; 59 59 } trunk/wp-admin/css/press-this.css
r8551 r8600 87 87 88 88 .ui-tabs-nav a:hover,.ui-tabs-nav a:focus,.ui-tabs-nav a:active, 89 .ui-tabs-nav .ui-tabs-selected a:link,.ui-tabs-nav .ui-tabs-selected a:visited { 89 .ui-tabs-nav .ui-tabs-selected a:link,.ui-tabs-nav .ui-tabs-selected a:visited { 90 90 cursor: pointer; 91 91 } … … 262 262 border: 2px solid #ccc; 263 263 margin: 0 4px 4px 0; 264 } 264 } 265 265 #img_container a:hover, #img_container a:active { 266 266 border: 2px solid #000; … … 300 300 padding: 3px; 301 301 margin-right: 5px; 302 width: 16em; 302 width: 16em; 303 303 } 304 304 trunk/wp-admin/css/widgets.css
r7977 r8600 113 113 } 114 114 115 li.widget-list-control-item h4, 116 #dragHelper li.widget-list-control-item h4, 115 li.widget-list-control-item h4, 116 #dragHelper li.widget-list-control-item h4, 117 117 li.widget-sortable h4 { 118 118 margin: 0; trunk/wp-admin/custom-header.php
r7998 r8600 28 28 if ( 1 == $step ) 29 29 wp_enqueue_script('colorpicker'); 30 elseif ( 2 == $step ) 30 elseif ( 2 == $step ) 31 31 wp_enqueue_script('cropper'); 32 32 } trunk/wp-admin/edit-form-advanced.php
r8589 r8600 106 106 <p> 107 107 <select name='post_status' id='post_status' tabindex='4'> 108 <?php 109 // only show the publish menu item if they are allowed to publish posts or they are allowed to edit this post (accounts for 'edit_published_posts' capability) 108 <?php 109 // only show the publish menu item if they are allowed to publish posts or they are allowed to edit this post (accounts for 'edit_published_posts' capability) 110 110 if ( current_user_can('publish_posts') OR ( $post->post_status == 'publish' AND current_user_can('edit_post', $post->ID) ) ) : 111 111 ?> trunk/wp-admin/edit-link-categories.php
r8388 r8600 12 12 $cat_name = get_term_field('name', $cat_ID, 'link_category'); 13 13 $default_cat_id = get_option('default_link_category'); 14 14 15 15 // Don't delete the default cats. 16 16 if ( $cat_ID == $default_cat_id ) trunk/wp-admin/edit-link-form.php
r8589 r8600 117 117 <div id="categories-all" class="ui-tabs-panel"> 118 118 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 119 <?php 119 <?php 120 120 if ( isset($link->link_id) ) 121 121 wp_link_category_checklist($link->link_id); trunk/wp-admin/edit-page-form.php
r8589 r8600 91 91 <?php // Show publish in dropdown if user can publish or if they can re-publish this page ('edit_published_pages') 92 92 // 'publish' option will be selected for published AND private posts (checkbox overrides dropdown) 93 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 93 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 94 94 ?> 95 95 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> … … 102 102 </select> 103 103 </p> 104 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 104 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 105 105 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p> 106 106 <?php endif; ?> … … 210 210 211 211 212 <?php 212 <?php 213 213 function page_custom_meta_box($post){ 214 214 ?> … … 239 239 <p><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></p> 240 240 <p><?php _e('These settings apply to this page only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p> 241 <?php 241 <?php 242 242 } 243 243 add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', 'advanced', 'core'); trunk/wp-admin/gears-manifest.php
r8517 r8600 47 47 if ( is_bool( $style->extra['rtl'] ) ) 48 48 $rtl_href = str_replace( '.css', '-rtl.css', $src ); 49 else 49 else 50 50 $rtl_href = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->extra['rtl'] ); 51 51 trunk/wp-admin/import/mt.php
r7999 r8600 225 225 wp_create_categories($post->categories, $post_id); 226 226 } 227 227 228 228 // Add tags or keywords 229 229 if ( 1 < strlen($post->post_keywords) ) { 230 // Keywords exist. 230 // Keywords exist. 231 231 printf(__('<br />Adding tags <i>%s</i>...'), stripslashes($post->post_keywords)); 232 232 wp_add_post_tags($post_id, $post->post_keywords); trunk/wp-admin/import/wordpress.php
r7965 r8600 340 340 if ( $post_ID && !empty($this->post_ids_processed[$post_ID]) ) // Processed already 341 341 return 0; 342 342 343 343 set_time_limit( 60 ); 344 344 trunk/wp-admin/import/wp-cat2tag.php
r8279 r8600 104 104 if ( in_array( intval($category->term_id), $this->hybrids_ids ) ) 105 105 echo ' <a href="#note"> * </a>'; 106 106 107 107 if ( isset($hier[$category->term_id]) ) 108 108 $this->_category_children($category, $hier); ?></li> … … 244 244 if ( ! ($id = is_term( $category->slug, 'post_tag' ) ) ) 245 245 $id = wp_insert_term($category->name, 'post_tag', array('slug' => $category->slug)); 246 246 247 247 $id = $id['term_taxonomy_id']; 248 248 $posts = get_objects_in_term($category->term_id, 'category'); … … 253 253 clean_post_cache($post); 254 254 } 255 255 256 256 if ( $values ) { 257 257 $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)"); … … 263 263 continue; 264 264 } 265 265 266 266 // if tag already exists, add it to all posts in the category 267 267 if ( $tag_ttid = $wpdb->get_var( $wpdb->prepare("SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'post_tag'", $category->term_id) ) ) { trunk/wp-admin/includes/bookmark.php
r7693 r8600 121 121 if ( $update ) { 122 122 $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_url = %s, 123 link_name = %s, link_image = %s, link_target = %s, 124 link_visible = %s, link_description = %s, link_rating = %s, 123 link_name = %s, link_image = %s, link_target = %s, 124 link_visible = %s, link_description = %s, link_rating = %s, 125 125 link_rel = %s, link_notes = %s, link_rss = %s 126 126 WHERE link_id = %s", $link_url, $link_name, $link_image, $link_target, $link_visible, $link_description, $link_rating, $link_rel, $link_notes, $link_rss, $link_id) ); 127 127 } else { 128 $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->links (link_url, link_name, link_image, link_target, link_description, link_visible, link_owner, link_rating, link_rel, link_notes, link_rss) VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", 128 $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->links (link_url, link_name, link_image, link_target, link_description, link_visible, link_owner, link_rating, link_rel, link_notes, link_rss) VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", 129 129 $link_url,$link_name, $link_image, $link_target, $link_description, $link_visible, $link_owner, $link_rating, $link_rel, $link_notes, $link_rss) ); 130 130 $link_id = (int) $wpdb->insert_id; trunk/wp-admin/includes/class-wp-filesystem-base.php
r8255 r8600 3 3 var $verbose = false; 4 4 var $cache = array(); 5 5 6 6 var $method = ''; 7 7 8 8 function abspath() { 9 if ( defined('FTP_BASE') && strpos($this->method, 'ftp') !== false ) 9 if ( defined('FTP_BASE') && strpos($this->method, 'ftp') !== false ) 10 10 return FTP_BASE; 11 11 return $this->find_folder(ABSPATH); 12 12 } 13 13 function wp_content_dir() { 14 if ( defined('FTP_CONTENT_DIR') && strpos($this->method, 'ftp') !== false ) 14 if ( defined('FTP_CONTENT_DIR') && strpos($this->method, 'ftp') !== false ) 15 15 return FTP_CONTENT_DIR; 16 16 return $this->find_folder(WP_CONTENT_DIR); 17 17 } 18 18 function wp_plugins_dir() { 19 if ( defined('FTP_PLUGIN_DIR') && strpos($this->method, 'ftp') !== false ) 19 if ( defined('FTP_PLUGIN_DIR') && strpos($this->method, 'ftp') !== false ) 20 20 return FTP_PLUGIN_DIR; 21 21 return $this->find_folder(WP_PLUGIN_DIR); … … 34 34 return $this->abspath(); 35 35 } 36 36 37 37 function find_folder($folder) { 38 38 $folder = str_replace('\\', '/', $folder); //Windows Sanitiation … … 48 48 return $return; 49 49 } 50 50 51 51 // Assumes $folder is windows sanitized; 52 52 // Assumes that the drive letter is safe to be stripped off, Should not be a problem for windows servers. … … 54 54 if ( empty( $base ) || '.' == $base ) 55 55 $base = trailingslashit($this->cwd()); 56 56 57 57 $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows driveletter if its there. 58 58 59 59 $folder_parts = explode('/', $folder); 60 60 $last_path = $folder_parts[ count($folder_parts) - 1 ]; 61 61 62 62 $files = $this->dirlist( $base ); 63 63 64 64 foreach ( $folder_parts as $key ) { 65 65 if ( $key == $last_path ) 66 66 continue; //We want this to be caught by the next code block. 67 67 68 //Working from /home/ to /user/ to /wordpress/ see if that file exists within the current folder, 69 // If its found, change into it and follow through looking for it. 68 //Working from /home/ to /user/ to /wordpress/ see if that file exists within the current folder, 69 // If its found, change into it and follow through looking for it. 70 70 // If it cant find WordPress down that route, it'll continue onto the next folder level, and see if that matches, and so on. 71 71 // If it reaches the end, and still cant find it, it'll return false for the entire function. … … 79 79 } 80 80 } 81 81 82 82 //Only check this as a last resort, to prevent locating the incorrect install. All above proceeedures will fail quickly if this is the right branch to take. 83 83 if(isset( $files[ $last_path ] ) ) { … … 89 89 return false;//Prevent tihs function looping again. 90 90 //As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups. 91 return $this->search_for_folder($folder, '/', true); 92 91 return $this->search_for_folder($folder, '/', true); 92 93 93 } 94 94 95 95 //Common Helper functions. 96 96 function gethchmod($file){ … … 144 144 if($key = array_search($attarray[$i], $legal)) 145 145 $realmode .= $legal[$key]; 146 146 147 147 $mode = str_pad($realmode, 9, '-'); 148 148 $trans = array('-'=>'0', 'r'=>'4', 'w'=>'2', 'x'=>'1'); 149 149 $mode = strtr($mode,$trans); 150 150 151 151 $newmode = ''; 152 152 $newmode .= $mode[0] + $mode[1] + $mode[2]; trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r8540 r8600 83 83 $this->permission = $perm; 84 84 } 85 85 86 86 function get_contents($file, $type = '', $resumepos = 0 ){ 87 87 if( empty($type) ){ trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r8018 r8600 126 126 $temp = wp_tempnam( $file ); 127 127 if ( ! $temphandle = fopen($temp, 'w+') ){ 128 unlink($temp); 128 unlink($temp); 129 129 return false; 130 130 } … … 147 147 return $this->ftp->chdir($file); 148 148 } 149 149 150 150 function chgrp($file, $group, $recursive = false ) { 151 151 return false; trunk/wp-admin/includes/dashboard.php
r8550 r8600 436 436 if( preg_match('|/([^/]+?)/?$|', $link, $matches) ) 437 437 $slug = $matches[1];
