Changeset 18632
- Timestamp:
- 09/03/2011 02:18:10 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r18577 r18632 55 55 <div class="misc-pub-section curtime misc-pub-section-last"> 56 56 <?php 57 // translators: Publish box date form t, see http://php.net/date57 // translators: Publish box date format, see http://php.net/date 58 58 $datef = __( 'M j, Y @ G:i' ); 59 59 $stamp = __('Submitted on: <b>%1$s</b>'); -
trunk/wp-admin/includes/class-wp-filesystem-base.php
r18268 r18632 154 154 return trailingslashit(constant($constant)); 155 155 } elseif ( 'direct' == $this->method ) { 156 $folder = str_replace('\\', '/', $folder); //Windows path saniti ation156 $folder = str_replace('\\', '/', $folder); //Windows path sanitisation 157 157 return trailingslashit($folder); 158 158 } 159 159 160 $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows drive letter if its there.161 $folder = str_replace('\\', '/', $folder); //Windows path saniti ation160 $folder = preg_replace('|^([a-z]{1}):|i', '', $folder); //Strip out windows drive letter if it's there. 161 $folder = str_replace('\\', '/', $folder); //Windows path sanitisation 162 162 163 163 if ( isset($this->cache[ $folder ] ) ) … … 224 224 if ( $loop ) 225 225 return false; //Prevent this function from looping again. 226 //As an extra last resort, Change back to / if the folder wasn t found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.226 //As an extra last resort, Change back to / if the folder wasn't found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups. 227 227 return $this->search_for_folder($folder, '/', true); 228 228 -
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r17926 r18632 90 90 * @param string $file Path to the file. 91 91 * @param mixed $group A group name or number. 92 * @param bool $recursive (optional) If set True changes file group recursiv ly. Defaults to False.92 * @param bool $recursive (optional) If set True changes file group recursively. Defaults to False. 93 93 * @return bool Returns true on success or false on failure. 94 94 */ … … 113 113 * @param string $file Path to the file. 114 114 * @param int $mode (optional) The permissions as octal number, usually 0644 for files, 0755 for dirs. 115 * @param bool $recursive (optional) If set True changes file group recursiv ly. Defaults to False.115 * @param bool $recursive (optional) If set True changes file group recursively. Defaults to False. 116 116 * @return bool Returns true on success or false on failure. 117 117 */ … … 141 141 * @param string $file Path to the file. 142 142 * @param mixed $owner A user name or number. 143 * @param bool $recursive (optional) If set True changes file owner recursiv ly. Defaults to False.143 * @param bool $recursive (optional) If set True changes file owner recursively. Defaults to False. 144 144 * @return bool Returns true on success or false on failure. 145 145 */ -
trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r17771 r18632 339 339 340 340 $pwd = @ftp_pwd($this->link); 341 if ( ! @ftp_chdir($this->link, $path) ) // Cant change to folder = folder doesn t exist341 if ( ! @ftp_chdir($this->link, $path) ) // Cant change to folder = folder doesn't exist 342 342 return false; 343 343 $list = @ftp_rawlist($this->link, '-a', false); -
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
r17771 r18632 307 307 308 308 function touch($file, $time = 0, $atime = 0) { 309 //Not impl mented.309 //Not implemented. 310 310 } 311 311 -
trunk/wp-admin/includes/class-wp-list-table.php
r18600 r18632 327 327 * 328 328 * @param array $actions The list of actions 329 * @param bool $always_visible W ether the actions should be always visible329 * @param bool $always_visible Whether the actions should be always visible 330 330 * @return string 331 331 */ -
trunk/wp-admin/includes/class-wp-upgrader.php
r18618 r18632 213 213 214 214 if ( $clear_destination ) { 215 //We're going to clear the destination if there s something there215 //We're going to clear the destination if there's something there 216 216 $this->skin->feedback('remove_old'); 217 217 $removed = true; … … 225 225 return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']); 226 226 } elseif ( $wp_filesystem->exists($remote_destination) ) { 227 //If we're not clearing the destination folder and something exists there al lready, Bail.227 //If we're not clearing the destination folder and something exists there already, Bail. 228 228 //But first check to see if there are actually any files in the folder. 229 229 $_files = $wp_filesystem->dirlist($remote_destination); … … 305 305 $delete_package = ($download != $package); // Do not delete a "local" file 306 306 307 //Unzip 's the file into a temporary directory307 //Unzips the file into a temporary directory 308 308 $working_dir = $this->unpack_package( $download, $delete_package ); 309 309 if ( is_wp_error($working_dir) ) { … … 326 326 $this->skin->feedback('process_failed'); 327 327 } else { 328 //Install Suc eeded328 //Install Succeeded 329 329 $this->skin->feedback('process_success'); 330 330 } … … 435 435 add_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade'), 10, 2); 436 436 add_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'), 10, 4); 437 //'source_selection' => array(&$this, 'source_selection'), //there s a trackticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins.437 //'source_selection' => array(&$this, 'source_selection'), //there's a trac ticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins. 438 438 439 439 $this->run(array( … … 447 447 )); 448 448 449 // Cleanup our hooks, in case something else does a upgrade on this connection.449 // Cleanup our hooks, in case something else does a upgrade on this connection. 450 450 remove_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade')); 451 451 remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin')); … … 532 532 $this->skin->footer(); 533 533 534 // Cleanup our hooks, in case something else does a upgrade on this connection.534 // Cleanup our hooks, in case something else does a upgrade on this connection. 535 535 remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin')); 536 536 … … 813 813 $this->skin->footer(); 814 814 815 // Cleanup our hooks, in case something else does a upgrade on this connection.815 // Cleanup our hooks, in case something else does a upgrade on this connection. 816 816 remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2); 817 817 remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2); … … 874 874 875 875 //Ensure stylesheet name hasnt changed after the upgrade: 876 // @TODO: Note, This doesn t handle the Template changing, or the Template name changing.876 // @TODO: Note, This doesn't handle the Template changing, or the Template name changing. 877 877 if ( $theme == get_stylesheet() && $theme != $this->result['destination_name'] ) { 878 878 $theme_info = $this->theme_info(); … … 917 917 918 918 /** 919 * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combi antion with the wp-admin/includes/update-core.php file919 * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combination with the wp-admin/includes/update-core.php file 920 920 * 921 921 * @TODO More Detailed docs, for methods as well. -
trunk/wp-admin/includes/dashboard.php
r18582 r18632 1024 1024 * 1025 1025 * If $check_urls is empty, look for the rss feed url found in the dashboard 1026 * widget optio s of $widget_id. If cached, call $callback, a function that1026 * widget options of $widget_id. If cached, call $callback, a function that 1027 1027 * echoes out output for this widget. If not cache, echo a "Loading..." stub 1028 1028 * which is later replaced by AJAX call (see top of /wp-admin/index.php) -
trunk/wp-admin/includes/deprecated.php
r18504 r18632 38 38 39 39 /** 40 * Calculates the new dimen tions for a downsampled image.40 * Calculates the new dimensions for a downsampled image. 41 41 * 42 42 * @since 2.0.0 -
trunk/wp-admin/includes/file.php
r18517 r18632 364 364 365 365 /** 366 * Handle sideloads, which is the process of retri ving a media item from another server instead of366 * Handle sideloads, which is the process of retrieving a media item from another server instead of 367 367 * a traditional media upload. This process involves sanitizing the filename, checking extensions 368 368 * for mime type, and moving the file to the appropriate directory within the uploads directory. … … 520 520 521 521 /** 522 * Unzip 's a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction.522 * Unzips a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction. 523 523 * Assumes that WP_Filesystem() has already been called and set up. Does not extract a root-level __MACOSX directory, if present. 524 524 * … … 834 834 835 835 if ( !$wp_filesystem->connect() ) 836 return false; //There was an er orr connecting to the server.836 return false; //There was an error connecting to the server. 837 837 838 838 // Set the permission constants if not already set. … … 847 847 /** 848 848 * Determines which Filesystem Method to use. 849 * The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fso xkopen())849 * The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fsockopen()) 850 850 * 851 851 * Note that the return value of this function can be overridden in 2 ways -
trunk/wp-admin/includes/image.php
r13860 r18632 139 139 140 140 /** 141 * Calculated the new dimen tions for a downsampled image.141 * Calculated the new dimensions for a downsampled image. 142 142 * 143 143 * @since 2.0.0 -
trunk/wp-admin/includes/meta-boxes.php
r18445 r18632 156 156 157 157 <?php 158 // translators: Publish box date form t, see http://php.net/date158 // translators: Publish box date format, see http://php.net/date 159 159 $datef = __( 'M j, Y @ G:i' ); 160 160 if ( 0 != $post->ID ) { -
trunk/wp-admin/includes/plugin-install.php
r18586 r18632 36 36 37 37 // Allows a plugin to override the WordPress.org API entirely. 38 // Use the filter 'plugins_api_result' to me arly add results.38 // Use the filter 'plugins_api_result' to merely add results. 39 39 // Please ensure that a object is returned from the following filters. 40 40 $args = apply_filters('plugins_api_args', $args, $action); … … 98 98 echo $api_tags->get_error_message(); 99 99 } else { 100 //Set up the tags in a way which can be interpr ated by wp_generate_tag_cloud()100 //Set up the tags in a way which can be interpreted by wp_generate_tag_cloud() 101 101 $tags = array(); 102 102 foreach ( (array)$api_tags as $tag ) … … 176 176 */ 177 177 function install_plugin_install_status($api, $loop = false) { 178 // this function is called recursiv ly, $loop prevents futhur loops.178 // this function is called recursively, $loop prevents further loops. 179 179 if ( is_array($api) ) 180 180 $api = (object) $api; -
trunk/wp-admin/includes/post.php
r18500 r18632 613 613 614 614 // Reunite any orphaned attachments with their parent 615 // Does this need to be u dpated? ~ Mark615 // Does this need to be updated? ~ Mark 616 616 if ( !$draft_ids = get_user_option( 'autosave_draft_ids' ) ) 617 617 $draft_ids = array(); -
trunk/wp-admin/includes/template.php
r18607 r18632 898 898 if ( empty($priority) ) { 899 899 $priority = $a_priority; 900 // else if we're adding to the sorted prior tiy, we don't know the title or callback. Glab them from the previously added context/priority.900 // else if we're adding to the sorted priority, we don't know the title or callback. Grab them from the previously added context/priority. 901 901 } elseif ( 'sorted' == $priority ) { 902 902 $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title']; … … 1110 1110 * 1111 1111 * The $callback argument should be the name of a function that echoes out the 1112 * html input tags for this setting field. Use get_option() to retri ve existing1112 * html input tags for this setting field. Use get_option() to retrieve existing 1113 1113 * values to show. 1114 1114 * … … 1121 1121 * @param string $callback Function that fills the field with the desired form inputs. The function should echo its output. 1122 1122 * @param string $page The slug-name of the settings page on which to show the section (general, reading, writing, ...). 1123 * @param string $section The slug-name of the section of the settings spage in which to show the box (default, ...).1123 * @param string $section The slug-name of the section of the settings page in which to show the box (default, ...). 1124 1124 * @param array $args Additional arguments 1125 1125 */ … … 1275 1275 1276 1276 // If settings were passed back from options.php then use them 1277 // Ignore transients if $sanitize is true, we don t'want the old values anyway1277 // Ignore transients if $sanitize is true, we don't want the old values anyway 1278 1278 if ( isset($_GET['settings-updated']) && $_GET['settings-updated'] && get_transient('settings_errors') ) { 1279 1279 $settings_errors = get_transient('settings_errors'); … … 2160 2160 * @param array|string $other_attributes Other attributes that should be output with the button, 2161 2161 * mapping attributes to their values, such as array( 'tabindex' => '1' ). 2162 * These attributes will be ou put as attribute="value", such as tabindex="1".2162 * These attributes will be output as attribute="value", such as tabindex="1". 2163 2163 * Defaults to no other attributes. Other attributes can also be provided as a 2164 2164 * string such as 'tabindex="1"', though the array format is typically cleaner. … … 2181 2181 * @param array|string $other_attributes Other attributes that should be output with the button, 2182 2182 * mapping attributes to their values, such as array( 'tabindex' => '1' ). 2183 * These attributes will be ou put as attribute="value", such as tabindex="1".2183 * These attributes will be output as attribute="value", such as tabindex="1". 2184 2184 * Defaults to no other attributes. Other attributes can also be provided as a 2185 2185 * string such as 'tabindex="1"', though the array format is typically cleaner. -
trunk/wp-admin/includes/update.php
r17984 r18632 27 27 * 28 28 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, 29 * set $options['available'] to false to skip not-di missed updates.29 * set $options['available'] to false to skip not-dismissed updates. 30 30 * @return array Array of the update objects 31 31 */ -
trunk/wp-admin/includes/upgrade.php
r18552 r18632 577 577 if (!$got_gmt_fields) { 578 578 579 // Add or sub stract time to all dates, to get GMT dates579 // Add or subtract time to all dates, to get GMT dates 580 580 $add_hours = intval($diff_gmt_weblogger); 581 581 $add_minutes = intval(60 * ($diff_gmt_weblogger - $add_hours)); … … 1608 1608 1609 1609 // Copy files from the old locations to the site theme. 1610 // TODO: This does not copy arbit arary include dependencies. Only the1610 // TODO: This does not copy arbitrary include dependencies. Only the 1611 1611 // standard WP files are copied. 1612 1612 $files = array('index.php' => 'index.php', 'wp-layout.css' => 'style.css', 'wp-comments.php' => 'comments.php', 'wp-comments-popup.php' => 'comments-popup.php'); -
trunk/wp-admin/includes/user.php
r18597 r18632 197 197 * Simple function who's main purpose is to allow filtering of the 198 198 * list of roles in the $wp_roles object so that plugins can remove 199 * in nappropriate ones depending on the situation or user making edits.199 * inappropriate ones depending on the situation or user making edits. 200 200 * Specifically because without filtering anyone with the edit_users 201 201 * capability can edit others to be administrators, even if they are … … 330 330 return; 331 331 332 //get_user_setting = JS saved UI setting. else no-js-fal back code.332 //get_user_setting = JS saved UI setting. else no-js-fallback code. 333 333 if ( 'hide' == get_user_setting('default_password_nag') || isset($_GET['default_password_nag']) && '0' == $_GET['default_password_nag'] ) { 334 334 delete_user_setting('default_password_nag'); -
trunk/wp-admin/includes/widgets.php
r18010 r18632 161 161 } 162 162 163 // We aren't showing a widget control, we're output ing a template for a mult-widget control163 // We aren't showing a widget control, we're outputting a template for a multi-widget control 164 164 if ( isset($sidebar_args['_display']) && 'template' == $sidebar_args['_display'] && $widget_number ) { 165 165 // number == -1 implies a template where id numbers are replaced by a generic '__i__' -
trunk/wp-admin/menu.php
r18468 r18632 135 135 } 136 136 137 // Add 'Editor' to the bottom of the Appear ence menu.137 // Add 'Editor' to the bottom of the Appearance menu. 138 138 if ( ! is_multisite() ) 139 139 add_action('admin_menu', '_add_themes_utility_last', 101);
Note: See TracChangeset
for help on using the changeset viewer.