Ticket #11875: 11875.002.diff
File 11875.002.diff, 17.9 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-filesystem-base.php
13 13 */ 14 14 class WP_Filesystem_Base { 15 15 /** 16 * Whether to display debug data for the connection or not.16 * Whether to display debug data for the connection. 17 17 * 18 18 * @since 2.5 19 19 * @access public -
wp-admin/includes/misc.php
125 125 $home_path = get_home_path(); 126 126 $htaccess_file = $home_path.'.htaccess'; 127 127 128 // If the file doesn't already exists check for write access to the directory and whether of notwe have some rules.128 // If the file doesn't already exists check for write access to the directory and whether we have some rules. 129 129 // else check for write access to the file. 130 130 if ((!file_exists($htaccess_file) && is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks()) || is_writable($htaccess_file)) { 131 131 if ( got_mod_rewrite() ) { … … 358 358 } 359 359 360 360 /** 361 * Determine whether to use CodePress or not.361 * Determine whether to use CodePress. 362 362 * 363 363 * @since 2.8 364 364 **/ -
wp-admin/includes/template.php
377 377 * 378 378 * @param any $checked One of the values to compare 379 379 * @param any $current (true) The other value to compare if not just true 380 * @param bool $echo Whether or notto echo or just return the string380 * @param bool $echo Whether to echo or just return the string 381 381 */ 382 382 function checked( $checked, $current = true, $echo = true) { 383 383 return __checked_selected_helper( $checked, $current, $echo, 'checked' ); … … 392 392 * 393 393 * @param any selected One of the values to compare 394 394 * @param any $current (true) The other value to compare if not just true 395 * @param bool $echo Whether or notto echo or just return the string395 * @param bool $echo Whether to echo or just return the string 396 396 */ 397 397 function selected( $selected, $current = true, $echo = true) { 398 398 return __checked_selected_helper( $selected, $current, $echo, 'selected' ); … … 408 408 * 409 409 * @param any $helper One of the values to compare 410 410 * @param any $current (true) The other value to compare if not just true 411 * @param bool $echo Whether or notto echo or just return the string411 * @param bool $echo Whether to echo or just return the string 412 412 * @param string $type The type of checked|selected we are doing. 413 413 */ 414 414 function __checked_selected_helper( $helper, $current, $echo, $type) { -
wp-content/themes/default/header.php
18 18 <style type="text/css" media="screen"> 19 19 20 20 <?php 21 // Checks to see whether it needs a sidebar or not21 // Checks to see whether it needs a sidebar 22 22 if ( empty($withcomments) && !is_single() ) { 23 23 ?> 24 24 #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; } -
wp-includes/capabilities.php
272 272 * PHP4 Constructor - Setup object properties. 273 273 * 274 274 * The list of capabilities, must have the key as the name of the capability 275 * and the value a boolean of whether it is granted to the role or not.275 * and the value a boolean of whether it is granted to the role. 276 276 * 277 277 * @since 2.0.0 278 278 * @access public -
wp-includes/category.php
100 100 * @since 2.1.0 101 101 * 102 102 * @param string $category_path URL containing category slugs. 103 * @param bool $full_match Optional. Whether should match full path or not.103 * @param bool $full_match Optional. Whether full path should be matched. 104 104 * @param string $output Optional. Constant OBJECT, ARRAY_A, or ARRAY_N 105 105 * @return null|object|array Null on failure. Type is based on $output value. 106 106 */ -
wp-includes/comment-template.php
907 907 * 908 908 * @since 0.71 909 909 * @global string $wpcommentspopupfile The URL to use for the popup window 910 * @global int $wpcommentsjavascript Whether to use JavaScript or not. Set when function is called910 * @global int $wpcommentsjavascript Whether to use JavaScript. Set when function is called 911 911 * 912 912 * @param int $width Optional. The width of the popup window 913 913 * @param int $height Optional. The height of the popup window -
wp-includes/comment.php
526 526 } 527 527 528 528 /** 529 * Validates whether this comment is allowed to be made or not.529 * Validates whether this comment is allowed to be made. 530 530 * 531 531 * @since 2.0.0 532 532 * @uses $wpdb -
wp-includes/deprecated.php
1343 1343 * @see get_comment() 1344 1344 * 1345 1345 * @param int $comment_ID The ID of the comment 1346 * @param int $no_cache Whether to use the cache or not(casted to bool)1347 * @param bool $include_unapproved Whether to include unapproved comments or not1346 * @param int $no_cache Whether to use the cache (casted to bool) 1347 * @param bool $include_unapproved Whether to include unapproved comments 1348 1348 * @return array The comment data 1349 1349 */ 1350 1350 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { -
wp-includes/formatting.php
287 287 * @param string $string The text which is to be encoded. 288 288 * @param mixed $quote_style Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES. 289 289 * @param string $charset Optional. The character encoding of the string. Default is false. 290 * @param boolean $double_encode Optional. Whether or notto encode existing html entities. Default is false.290 * @param boolean $double_encode Optional. Whether to encode existing html entities. Default is false. 291 291 * @return string The encoded text with HTML entities. 292 292 */ 293 293 function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { … … 1104 1104 * @since 0.71 1105 1105 * 1106 1106 * @param string $content The text about to be edited. 1107 * @param bool $richedit Whether or notthe $content should pass through htmlspecialchars(). Default false.1107 * @param bool $richedit Whether the $content should pass through htmlspecialchars(). Default false. 1108 1108 * @return string The text after the filter (and possibly htmlspecialchars()) has been run. 1109 1109 */ 1110 1110 function format_to_edit($content, $richedit = false) { -
wp-includes/functions.php
1928 1928 * @since 2.0.1 1929 1929 * 1930 1930 * @param string $target Full path to attempt to create. 1931 * @return bool Whether the path was created or not. True if path already exists.1931 * @return bool Whether the path was created. True if path already exists. 1932 1932 */ 1933 1933 function wp_mkdir_p( $target ) { 1934 1934 // from php.net/mkdir user contributed notes … … 2923 2923 * 2924 2924 * @since 2.5.0 2925 2925 * 2926 * @return bool Whether or notSSL access is available2926 * @return bool Whether SSL access is available 2927 2927 */ 2928 2928 function url_is_accessable_via_ssl($url) 2929 2929 { -
wp-includes/general-template.php
135 135 * Display the Log In/Out link. 136 136 * 137 137 * Displays a link, which allows the user to navigate to the Log In page to log in 138 * or log out depending on whether or notthey are currently logged in.138 * or log out depending on whether they are currently logged in. 139 139 * 140 140 * @since 1.5.0 141 141 * @uses apply_filters() Calls 'loginout' hook on HTML link content. … … 1364 1364 * @since 2.0.0 1365 1365 * 1366 1366 * @param string $d Optional Either 'G', 'U', or php date format. 1367 * @param bool $gmt Optional, default is false. Whether of notto return the gmt time.1367 * @param bool $gmt Optional, default is false. Whether to return the gmt time. 1368 1368 * @param int|object $post Optional post ID or object. Default is global $post object. 1369 * @param bool $translate Whether to translate the time string or not1369 * @param bool $translate Whether to translate the time string 1370 1370 * @return string 1371 1371 */ 1372 1372 function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp … … 1414 1414 * @since 2.0.0 1415 1415 * 1416 1416 * @param string $d Optional, default is 'U'. Either 'G', 'U', or php date format. 1417 * @param bool $gmt Optional, default is false. Whether of notto return the gmt time.1417 * @param bool $gmt Optional, default is false. Whether to return the gmt time. 1418 1418 * @param int|object $post Optional, default is global post object. A post_id or post object 1419 * @param bool $translate Optional, default is false. Whether to translate the result or not1419 * @param bool $translate Optional, default is false. Whether to translate the result 1420 1420 * @return string Returns timestamp 1421 1421 */ 1422 1422 function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { … … 1627 1627 * 1628 1628 * @since 2.1.0 1629 1629 * 1630 * @return bool Whether of notTinyMCE exists.1630 * @return bool Whether TinyMCE exists. 1631 1631 */ 1632 1632 function rich_edit_exists() { 1633 1633 global $wp_rich_edit_exists; … … 1637 1637 } 1638 1638 1639 1639 /** 1640 * Whether or notthe user should have a WYSIWIG editor.1640 * Whether the user should have a WYSIWIG editor. 1641 1641 * 1642 1642 * Checks that the user requires a WYSIWIG editor and that the editor is 1643 1643 * supported in the users browser. -
wp-includes/kses.php
696 696 * @since 1.0.0 697 697 * 698 698 * @param string $value Attribute value 699 * @param string $vless Whether the value is valueless or not. Use 'y' or 'n'699 * @param string $vless Whether the value is valueless. Use 'y' or 'n' 700 700 * @param string $checkname What $checkvalue is checking for. 701 701 * @param mixed $checkvalue What constraint the value should pass 702 * @return bool Whether check passes (true) or not (false)702 * @return bool Whether check passes 703 703 */ 704 704 function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { 705 705 $ok = true; -
wp-includes/media.php
1308 1308 * 1309 1309 * @param string $format The format of URL that this provider can handle. You can use asterisks as wildcards. 1310 1310 * @param string $provider The URL to the oEmbed provider. 1311 * @param boolean $regex Whether the $format parameter is in a regex format or not.1311 * @param boolean $regex Whether the $format parameter is in a regex format. 1312 1312 */ 1313 1313 function wp_oembed_add_provider( $format, $provider, $regex = false ) { 1314 1314 require_once( 'class-oembed.php' ); -
wp-includes/pluggable.php
405 405 406 406 $phpmailer->ContentType = $content_type; 407 407 408 // Set whether it's plaintext or not, depending on $content_type408 // Set whether it's plaintext, depending on $content_type 409 409 if ( $content_type == 'text/html' ) { 410 410 $phpmailer->IsHTML( true ); 411 411 } … … 633 633 * @since 2.5 634 634 * 635 635 * @param int $user_id User ID 636 * @param bool $remember Whether to remember the user or not636 * @param bool $remember Whether to remember the user 637 637 */ 638 638 function wp_set_auth_cookie($user_id, $remember = false, $secure = '') { 639 639 if ( $remember ) { -
wp-includes/post-template.php
1150 1150 /** 1151 1151 * Whether currently in a page template. 1152 1152 * 1153 * This template tag allows you to determine whether or not you are in a page1154 * template.You can optional provide a template name and then the check will be1153 * This template tag allows you to determine if you are in a page template. 1154 * You can optional provide a template name and then the check will be 1155 1155 * specific to that template. 1156 1156 * 1157 1157 * @since 2.5.0 -
wp-includes/post-thumbnail-template.php
15 15 * @since 2.9.0 16 16 * 17 17 * @param int $post_id Optional. Post ID. 18 * @return bool Whether post has an image attached (true) or not (false).18 * @return bool Whether post has an image attached. 19 19 */ 20 20 function has_post_thumbnail( $post_id = NULL ) { 21 21 global $id; -
wp-includes/post.php
39 39 * @uses apply_filters() Calls 'get_attached_file' on file path and attachment ID. 40 40 * 41 41 * @param int $attachment_id Attachment ID. 42 * @param bool $unfiltered Whether to apply filters or not.42 * @param bool $unfiltered Whether to apply filters. 43 43 * @return string The file path to the attached file. 44 44 */ 45 45 function get_attached_file( $attachment_id, $unfiltered = false ) { … … 894 894 * @since 2.7.0 895 895 * 896 896 * @param int $post_id Optional. Post ID. 897 * @return bool Whether post is sticky (true) or not sticky (false).897 * @return bool Whether post is sticky. 898 898 */ 899 899 function is_sticky($post_id = null) { 900 900 global $id; -
wp-includes/registration.php
83 83 * 'first_name' - The user's first name. 84 84 * 'last_name' - The user's last name. 85 85 * 'description' - A string containing content about the user. 86 * 'rich_editing' - A string for whether to enable the rich editor or not. False86 * 'rich_editing' - A string for whether to enable the rich editor. False 87 87 * if not empty. 88 88 * 'user_registered' - The date the user registered. Format is 'Y-m-d H:i:s'. 89 89 * 'role' - A string used to set the user's role. -
wp-includes/taxonomy.php
94 94 * @uses $wp_taxonomies 95 95 * 96 96 * @param string $taxonomy Name of taxonomy object 97 * @return bool Whether the taxonomy exists or not.97 * @return bool Whether the taxonomy exists. 98 98 */ 99 99 function is_taxonomy( $taxonomy ) { 100 100 global $wp_taxonomies; -
wp-includes/user.php
252 252 * @param int $user_id User ID 253 253 * @param string $option_name User option name. 254 254 * @param mixed $newvalue User option value. 255 * @param bool $global Optional. Whether option name is blog specific or not.255 * @param bool $global Optional. Whether option name is blog specific. 256 256 * @return unknown 257 257 */ 258 258 function update_user_option( $user_id, $option_name, $newvalue, $global = false ) { -
wp-includes/wp-db.php
706 706 * 707 707 * @since 0.71 708 708 * 709 * @return bool Whether showing of errors was active or not709 * @return bool Whether showing of errors was active 710 710 */ 711 711 function hide_errors() { 712 712 $show = $this->show_errors; … … 1168 1168 } 1169 1169 1170 1170 /** 1171 * Whether or notMySQL database is at least the required minimum version.1171 * Whether MySQL database is at least the required minimum version. 1172 1172 * 1173 1173 * @since 2.5.0 1174 1174 * @uses $wp_version … … 1184 1184 } 1185 1185 1186 1186 /** 1187 * Whether of notthe database supports collation.1187 * Whether the database supports collation. 1188 1188 * 1189 1189 * Called when WordPress is generating the table scheme. 1190 1190 * -
wp-trackback.php
13 13 /** 14 14 * trackback_response() - Respond with error or success XML message 15 15 * 16 * @param int|bool $error Whether there was an error or not16 * @param int|bool $error Whether there was an error 17 17 * @param string $error_message Error message if an error occurred 18 18 */ 19 19 function trackback_response($error = 0, $error_message = '') {