Ticket #22665: 22665.diff
| File 22665.diff, 18.7 KB (added by , 13 years ago) |
|---|
-
wp-includes/class-http.php
134 134 unset( $homeURL ); 135 135 136 136 // If we are streaming to a file but no filename was given drop it in the WP temp dir 137 // and pick it 's name using the basename of the $url137 // and pick its name using the basename of the $url 138 138 if ( $r['stream'] && empty( $r['filename'] ) ) 139 139 $r['filename'] = get_temp_dir() . basename( $url ); 140 140 … … 530 530 if ( !empty($wildcard_regex) ) 531 531 return !preg_match($wildcard_regex, $check['host']); 532 532 else 533 return !in_array( $check['host'], $accessible_hosts ); //Inverse logic, If it s in the array, then we can't access it.533 return !in_array( $check['host'], $accessible_hosts ); //Inverse logic, If it's in the array, then we can't access it. 534 534 535 535 } 536 536 … … 555 555 // Start off with the Absolute URL path 556 556 $path = ! empty( $url_parts['path'] ) ? $url_parts['path'] : '/'; 557 557 558 // If theit's a root-relative path, then great558 // If it's a root-relative path, then great 559 559 if ( ! empty( $relative_url_parts['path'] ) && '/' == $relative_url_parts['path'][0] ) { 560 560 $path = $relative_url_parts['path']; 561 561 -
wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js
2 2 tinymce.create('tinymce.plugins.wpLink', { 3 3 /** 4 4 * Initializes the plugin, this will be executed after the plugin has been created. 5 * This call is done before the editor instance has finished it 's initialization so use the onInit event5 * This call is done before the editor instance has finished its initialization so use the onInit event 6 6 * of the editor instance to intercept that event. 7 7 * 8 8 * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. -
wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js
155 155 156 156 /** 157 157 * Stores the current editor selection for later restoration. This can be useful since some browsers 158 * lo oses it's selection if a control element is selected/focused inside the dialogs.158 * loses its selection if a control element is selected/focused inside the dialogs. 159 159 * 160 160 * @method storeSelection 161 161 */ … … 165 165 166 166 /** 167 167 * Restores any stored selection. This can be useful since some browsers 168 * lo oses it's selection if a control element is selected/focused inside the dialogs.168 * loses its selection if a control element is selected/focused inside the dialogs. 169 169 * 170 170 * @method restoreSelection 171 171 */ -
wp-includes/js/crop/cropper.css
5 5 cursor: crosshair; 6 6 } 7 7 8 /* an extra classname is applied for Opera < 9.0 to fix it 's lack of opacity support */8 /* an extra classname is applied for Opera < 9.0 to fix its lack of opacity support */ 9 9 .imgCrop_wrap.opera8 .imgCrop_overlay, 10 10 .imgCrop_wrap.opera8 .imgCrop_clickArea { 11 11 background-color: transparent; -
wp-includes/theme.php
631 631 */ 632 632 function preview_theme_ob_filter_callback( $matches ) { 633 633 if ( strpos($matches[4], 'onclick') !== false ) 634 $matches[4] = preg_replace('#onclick=([\'"]).*?(?<!\\\)\\1#i', '', $matches[4]); //Strip out any onclicks from rest of <a>. (?<!\\\) means to ignore the '" if it s escaped by \ to prevent breaking mid-attribute.634 $matches[4] = preg_replace('#onclick=([\'"]).*?(?<!\\\)\\1#i', '', $matches[4]); //Strip out any onclicks from rest of <a>. (?<!\\\) means to ignore the '" if it's escaped by \ to prevent breaking mid-attribute. 635 635 if ( 636 636 ( false !== strpos($matches[3], '/wp-admin/') ) 637 637 || -
wp-includes/comment.php
1673 1673 if ( preg_match('#(image|audio|video|model)/#is', wp_remote_retrieve_header( $response, 'content-type' )) ) 1674 1674 return false; 1675 1675 1676 // Now do a GET since we're going to look in the html headers (and we're sure it s not a binary file)1676 // Now do a GET since we're going to look in the html headers (and we're sure it's not a binary file) 1677 1677 $response = wp_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) ); 1678 1678 1679 1679 if ( is_wp_error( $response ) ) -
wp-includes/ms-blogs.php
84 84 } 85 85 86 86 /** 87 * Given a blog's (subdomain or directory) slug, retrieve it 's id.87 * Given a blog's (subdomain or directory) slug, retrieve its id. 88 88 * 89 89 * @since MU 90 90 * -
wp-includes/feed-atom-comments.php
75 75 <thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" /> 76 76 <?php else : // This comment is in reply to another comment 77 77 $parent_comment = get_comment($comment->comment_parent); 78 // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it s more important that they both use the same system78 // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it's more important that they both use the same system 79 79 ?> 80 80 <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" /> 81 81 <?php endif; -
wp-includes/query.php
2079 2079 if ( $q['day'] ) 2080 2080 $where .= " AND DAYOFMONTH($wpdb->posts.post_date)='" . $q['day'] . "'"; 2081 2081 2082 // If we've got a post_type AND it s not "any" post_type.2082 // If we've got a post_type AND it's not "any" post_type. 2083 2083 if ( !empty($q['post_type']) && 'any' != $q['post_type'] ) { 2084 2084 foreach ( (array)$q['post_type'] as $_post_type ) { 2085 2085 $ptype_obj = get_post_type_object($_post_type); -
wp-includes/deprecated.php
394 394 * @param string $cat_name Optional. The category name to use. If no match is found uses all. 395 395 * @param string $before Optional. The html to output before the link. 396 396 * @param string $after Optional. The html to output after the link. 397 * @param string $between Optional. The html to output between the link/image and it 's description. Not used if no image or $show_images is true.397 * @param string $between Optional. The html to output between the link/image and its description. Not used if no image or $show_images is true. 398 398 * @param bool $show_images Optional. Whether to show images (if defined). 399 399 * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner. 400 400 * If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a … … 547 547 * @param string $cat_name The category name to use. If no match is found uses all 548 548 * @param string $before The html to output before the link 549 549 * @param string $after The html to output after the link 550 * @param string $between The html to output between the link/image and it 's description. Not used if no image or show_images is true550 * @param string $between The html to output between the link/image and its description. Not used if no image or show_images is true 551 551 * @param bool $show_images Whether to show images (if defined). 552 552 * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url', 553 553 * 'description', or 'rating'. Or maybe owner. If you start the name with an … … 575 575 * @param int $category The category to use. If no category supplied uses all 576 576 * @param string $before The html to output before the link 577 577 * @param string $after The html to output after the link 578 * @param string $between The html to output between the link/image and it 's description. Not used if no image or show_images == true578 * @param string $between The html to output between the link/image and its description. Not used if no image or show_images == true 579 579 * @param bool $show_images Whether to show images (if defined). 580 580 * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 581 581 * 'description', or 'rating'. Or maybe owner. If you start the name with an -
wp-includes/rss.php
422 422 else { 423 423 // Flow 424 424 // 1. check cache 425 // 2. if there is a hit, make sure it s fresh425 // 2. if there is a hit, make sure it's fresh 426 426 // 3. if cached obj fails freshness check, fetch remote 427 427 // 4. if remote fails, return stale object, or error 428 428 -
wp-content/themes/twentyeleven/inc/widgets.php
30 30 * 31 31 * @param array An array of standard parameters for widgets in this theme 32 32 * @param array An array of settings for this widget instance 33 * @return void Echoes it 's output33 * @return void Echoes its output 34 34 **/ 35 35 function widget( $args, $instance ) { 36 36 $cache = wp_cache_get( 'widget_twentyeleven_ephemera', 'widget' ); -
wp-admin/includes/plugin.php
728 728 729 729 $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin_file) ); 730 730 // If plugin is in its own directory, recursively delete the directory. 731 if ( strpos($plugin_file, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it s not the root plugin folder731 if ( strpos($plugin_file, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it's not the root plugin folder 732 732 $deleted = $wp_filesystem->delete($this_plugin_dir, true); 733 733 else 734 734 $deleted = $wp_filesystem->delete($plugins_dir . $plugin_file); -
wp-admin/includes/file.php
926 926 $credentials['connection_type'] = 'ftps'; 927 927 else if ( !empty($_POST['connection_type']) ) 928 928 $credentials['connection_type'] = stripslashes($_POST['connection_type']); 929 else if ( !isset($credentials['connection_type']) ) //All else fails (And it s not defaulted to something else saved), Default to FTP929 else if ( !isset($credentials['connection_type']) ) //All else fails (And it's not defaulted to something else saved), Default to FTP 930 930 $credentials['connection_type'] = 'ftp'; 931 931 932 932 if ( ! $error && -
wp-admin/includes/class-wp-filesystem-base.php
203 203 continue; //We want this to be caught by the next code block. 204 204 205 205 //Working from /home/ to /user/ to /wordpress/ see if that file exists within the current folder, 206 // If it s found, change into it and follow through looking for it.206 // If it's found, change into it and follow through looking for it. 207 207 // If it cant find WordPress down that route, it'll continue onto the next folder level, and see if that matches, and so on. 208 208 // If it reaches the end, and still cant find it, it'll return false for the entire function. 209 209 if ( isset($files[ $key ]) ){ -
wp-admin/includes/class-wp-users-list-table.php
260 260 $actions = apply_filters( 'user_row_actions', $actions, $user_object ); 261 261 $edit .= $this->row_actions( $actions ); 262 262 263 // Set up the checkbox ( because the user is editable, otherwise it s empty )263 // Set up the checkbox ( because the user is editable, otherwise it's empty ) 264 264 $checkbox = '<label class="screen-reader-text" for="cb-select-' . $user_object->ID . '">' . sprintf( __( 'Select %s' ), $user_object->user_login ) . '</label>' 265 265 . "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />"; 266 266 -
wp-admin/includes/class-wp-list-table.php
72 72 var $_pagination; 73 73 74 74 /** 75 * Constructor. The child class should call this constructor from it 's own constructor75 * Constructor. The child class should call this constructor from its own constructor 76 76 * 77 77 * @param array $args An associative array with information about the current table 78 78 * @access protected -
wp-admin/includes/class-wp-plugin-install-list-table.php
40 40 $tabs = apply_filters( 'install_plugins_tabs', $tabs ); 41 41 $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); 42 42 43 // If a non-valid menu tab has been selected, And it s not a non-menu action.43 // If a non-valid menu tab has been selected, And it's not a non-menu action. 44 44 if ( empty( $tab ) || ( !isset( $tabs[ $tab ] ) && !in_array( $tab, (array) $nonmenu_tabs ) ) ) 45 45 $tab = key( $tabs ); 46 46 -
wp-admin/includes/class-wp-theme-install-list-table.php
51 51 $tabs = apply_filters( 'install_themes_tabs', $tabs ); 52 52 $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs ); 53 53 54 // If a non-valid menu tab has been selected, And it s not a non-menu action.54 // If a non-valid menu tab has been selected, And it's not a non-menu action. 55 55 if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs ) ) ) 56 56 $tab = key( $tabs ); 57 57 -
wp-admin/includes/class-wp-upgrader.php
194 194 $source = trailingslashit($source) . trailingslashit($source_files[0]); 195 195 elseif ( count($source_files) == 0 ) 196 196 return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], __( 'The plugin contains no files.' ) ); //There are no files? 197 else //It s only a single file, The upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.197 else //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename. 198 198 $source = trailingslashit($source); 199 199 200 200 //Hook ability to change the source file location.. … … 615 615 $plugins_dir = $wp_filesystem->wp_plugins_dir(); 616 616 $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) ); 617 617 618 if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it s already vanished.618 if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it's already vanished. 619 619 return $removed; 620 620 621 621 // If plugin is in its own directory, recursively delete the directory. 622 if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it s not the root plugin folder622 if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it's not the root plugin folder 623 623 $deleted = $wp_filesystem->delete($this_plugin_dir, true); 624 624 else 625 625 $deleted = $wp_filesystem->delete($plugins_dir . $plugin); … … 1597 1597 } 1598 1598 1599 1599 /** 1600 * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it s a local file to the Upgrade/Installer functions.1600 * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it's a local file to the Upgrade/Installer functions. 1601 1601 * 1602 1602 * @TODO More Detailed docs, for methods as well. 1603 1603 * … … 1615 1615 if ( empty($_FILES[$form]['name']) && empty($_GET[$urlholder]) ) 1616 1616 wp_die(__('Please select a file')); 1617 1617 1618 //Handle a newly uploaded file, Else assume it s already been uploaded1618 //Handle a newly uploaded file, Else assume it's already been uploaded 1619 1619 if ( ! empty($_FILES) ) { 1620 1620 $overrides = array( 'test_form' => false, 'test_type' => false ); 1621 1621 $file = wp_handle_upload( $_FILES[$form], $overrides ); -
wp-admin/includes/class-wp-filesystem-direct.php
229 229 if ( ! $recursive && $this->is_dir($file) ) 230 230 return @rmdir($file); 231 231 232 //At this point it s a folder, and we're in recursive mode232 //At this point it's a folder, and we're in recursive mode 233 233 $file = trailingslashit($file); 234 234 $filelist = $this->dirlist($file, true); 235 235