WordPress.org

Make WordPress Core

Ticket #11875: 11875.002.diff

File 11875.002.diff, 17.9 KB (added by nacin, 5 years ago)
  • wp-admin/includes/class-wp-filesystem-base.php

     
    1313 */ 
    1414class WP_Filesystem_Base { 
    1515        /** 
    16          * Whether to display debug data for the connection or not. 
     16         * Whether to display debug data for the connection. 
    1717         * 
    1818         * @since 2.5 
    1919         * @access public 
  • wp-admin/includes/misc.php

     
    125125        $home_path = get_home_path(); 
    126126        $htaccess_file = $home_path.'.htaccess'; 
    127127 
    128         // If the file doesn't already exists check for write access to the directory and whether of not we have some rules. 
     128        // If the file doesn't already exists check for write access to the directory and whether we have some rules. 
    129129        // else check for write access to the file. 
    130130        if ((!file_exists($htaccess_file) && is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks()) || is_writable($htaccess_file)) { 
    131131                if ( got_mod_rewrite() ) { 
     
    358358} 
    359359 
    360360/** 
    361  * Determine whether to use CodePress or not. 
     361 * Determine whether to use CodePress. 
    362362 * 
    363363 * @since 2.8 
    364364**/ 
  • wp-admin/includes/template.php

     
    377377 * 
    378378 * @param any $checked One of the values to compare 
    379379 * @param any $current (true) The other value to compare if not just true 
    380  * @param bool $echo Whether or not to echo or just return the string 
     380 * @param bool $echo Whether to echo or just return the string 
    381381 */ 
    382382function checked( $checked, $current = true, $echo = true) { 
    383383        return __checked_selected_helper( $checked, $current, $echo, 'checked' ); 
     
    392392 * 
    393393 * @param any selected One of the values to compare 
    394394 * @param any $current (true) The other value to compare if not just true 
    395  * @param bool $echo Whether or not to echo or just return the string 
     395 * @param bool $echo Whether to echo or just return the string 
    396396 */ 
    397397function selected( $selected, $current = true, $echo = true) { 
    398398        return __checked_selected_helper( $selected, $current, $echo, 'selected' ); 
     
    408408 * 
    409409 * @param any $helper One of the values to compare 
    410410 * @param any $current (true) The other value to compare if not just true 
    411  * @param bool $echo Whether or not to echo or just return the string 
     411 * @param bool $echo Whether to echo or just return the string 
    412412 * @param string $type The type of checked|selected we are doing. 
    413413 */ 
    414414function __checked_selected_helper( $helper, $current, $echo, $type) { 
  • wp-content/themes/default/header.php

     
    1818<style type="text/css" media="screen"> 
    1919 
    2020<?php 
    21 // Checks to see whether it needs a sidebar or not 
     21// Checks to see whether it needs a sidebar 
    2222if ( empty($withcomments) && !is_single() ) { 
    2323?> 
    2424        #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; } 
  • wp-includes/capabilities.php

     
    272272         * PHP4 Constructor - Setup object properties. 
    273273         * 
    274274         * 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. 
    276276         * 
    277277         * @since 2.0.0 
    278278         * @access public 
  • wp-includes/category.php

     
    100100 * @since 2.1.0 
    101101 * 
    102102 * @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. 
    104104 * @param string $output Optional. Constant OBJECT, ARRAY_A, or ARRAY_N 
    105105 * @return null|object|array Null on failure. Type is based on $output value. 
    106106 */ 
  • wp-includes/comment-template.php

     
    907907 * 
    908908 * @since 0.71 
    909909 * @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 called 
     910 * @global int $wpcommentsjavascript Whether to use JavaScript. Set when function is called 
    911911 * 
    912912 * @param int $width Optional. The width of the popup window 
    913913 * @param int $height Optional. The height of the popup window 
  • wp-includes/comment.php

     
    526526} 
    527527 
    528528/** 
    529  * Validates whether this comment is allowed to be made or not. 
     529 * Validates whether this comment is allowed to be made. 
    530530 * 
    531531 * @since 2.0.0 
    532532 * @uses $wpdb 
  • wp-includes/deprecated.php

     
    13431343 * @see get_comment() 
    13441344 * 
    13451345 * @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 not 
     1346 * @param int $no_cache Whether to use the cache (casted to bool) 
     1347 * @param bool $include_unapproved Whether to include unapproved comments 
    13481348 * @return array The comment data 
    13491349 */ 
    13501350function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { 
  • wp-includes/formatting.php

     
    287287 * @param string $string The text which is to be encoded. 
    288288 * @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. 
    289289 * @param string $charset Optional. The character encoding of the string. Default is false. 
    290  * @param boolean $double_encode Optional. Whether or not to encode existing html entities. Default is false. 
     290 * @param boolean $double_encode Optional. Whether to encode existing html entities. Default is false. 
    291291 * @return string The encoded text with HTML entities. 
    292292 */ 
    293293function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { 
     
    11041104 * @since 0.71 
    11051105 * 
    11061106 * @param string $content The text about to be edited. 
    1107  * @param bool $richedit Whether or not the $content should pass through htmlspecialchars(). Default false. 
     1107 * @param bool $richedit Whether the $content should pass through htmlspecialchars(). Default false. 
    11081108 * @return string The text after the filter (and possibly htmlspecialchars()) has been run. 
    11091109 */ 
    11101110function format_to_edit($content, $richedit = false) { 
  • wp-includes/functions.php

     
    19281928 * @since 2.0.1 
    19291929 * 
    19301930 * @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. 
    19321932 */ 
    19331933function wp_mkdir_p( $target ) { 
    19341934        // from php.net/mkdir user contributed notes 
     
    29232923 * 
    29242924 * @since 2.5.0 
    29252925 * 
    2926  * @return bool Whether or not SSL access is available 
     2926 * @return bool Whether SSL access is available 
    29272927 */ 
    29282928function url_is_accessable_via_ssl($url) 
    29292929{ 
  • wp-includes/general-template.php

     
    135135 * Display the Log In/Out link. 
    136136 * 
    137137 * 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 not they are currently logged in. 
     138 * or log out depending on whether they are currently logged in. 
    139139 * 
    140140 * @since 1.5.0 
    141141 * @uses apply_filters() Calls 'loginout' hook on HTML link content. 
     
    13641364 * @since 2.0.0 
    13651365 * 
    13661366 * @param string $d Optional Either 'G', 'U', or php date format. 
    1367  * @param bool $gmt Optional, default is false. Whether of not to return the gmt time. 
     1367 * @param bool $gmt Optional, default is false. Whether to return the gmt time. 
    13681368 * @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 not 
     1369 * @param bool $translate Whether to translate the time string 
    13701370 * @return string 
    13711371 */ 
    13721372function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { // returns timestamp 
     
    14141414 * @since 2.0.0 
    14151415 * 
    14161416 * @param string $d Optional, default is 'U'. Either 'G', 'U', or php date format. 
    1417  * @param bool $gmt Optional, default is false. Whether of not to return the gmt time. 
     1417 * @param bool $gmt Optional, default is false. Whether to return the gmt time. 
    14181418 * @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 not 
     1419 * @param bool $translate Optional, default is false. Whether to translate the result 
    14201420 * @return string Returns timestamp 
    14211421 */ 
    14221422function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { 
     
    16271627 * 
    16281628 * @since 2.1.0 
    16291629 * 
    1630  * @return bool Whether of not TinyMCE exists. 
     1630 * @return bool Whether TinyMCE exists. 
    16311631 */ 
    16321632function rich_edit_exists() { 
    16331633        global $wp_rich_edit_exists; 
     
    16371637} 
    16381638 
    16391639/** 
    1640  * Whether or not the user should have a WYSIWIG editor. 
     1640 * Whether the user should have a WYSIWIG editor. 
    16411641 * 
    16421642 * Checks that the user requires a WYSIWIG editor and that the editor is 
    16431643 * supported in the users browser. 
  • wp-includes/kses.php

     
    696696 * @since 1.0.0 
    697697 * 
    698698 * @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' 
    700700 * @param string $checkname What $checkvalue is checking for. 
    701701 * @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 
    703703 */ 
    704704function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { 
    705705        $ok = true; 
  • wp-includes/media.php

     
    13081308 * 
    13091309 * @param string $format The format of URL that this provider can handle. You can use asterisks as wildcards. 
    13101310 * @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. 
    13121312 */ 
    13131313function wp_oembed_add_provider( $format, $provider, $regex = false ) { 
    13141314        require_once( 'class-oembed.php' ); 
  • wp-includes/pluggable.php

     
    405405 
    406406        $phpmailer->ContentType = $content_type; 
    407407 
    408         // Set whether it's plaintext or not, depending on $content_type 
     408        // Set whether it's plaintext, depending on $content_type 
    409409        if ( $content_type == 'text/html' ) { 
    410410                $phpmailer->IsHTML( true ); 
    411411        } 
     
    633633 * @since 2.5 
    634634 * 
    635635 * @param int $user_id User ID 
    636  * @param bool $remember Whether to remember the user or not 
     636 * @param bool $remember Whether to remember the user 
    637637 */ 
    638638function wp_set_auth_cookie($user_id, $remember = false, $secure = '') { 
    639639        if ( $remember ) { 
  • wp-includes/post-template.php

     
    11501150/** 
    11511151 * Whether currently in a page template. 
    11521152 * 
    1153  * This template tag allows you to determine whether or not you are in a page 
    1154  * template. You can optional provide a template name and then the check will be 
     1153 * 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 
    11551155 * specific to that template. 
    11561156 * 
    11571157 * @since 2.5.0 
  • wp-includes/post-thumbnail-template.php

     
    1515 * @since 2.9.0 
    1616 * 
    1717 * @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. 
    1919 */ 
    2020function has_post_thumbnail( $post_id = NULL ) { 
    2121        global $id; 
  • wp-includes/post.php

     
    3939 * @uses apply_filters() Calls 'get_attached_file' on file path and attachment ID. 
    4040 * 
    4141 * @param int $attachment_id Attachment ID. 
    42  * @param bool $unfiltered Whether to apply filters or not. 
     42 * @param bool $unfiltered Whether to apply filters. 
    4343 * @return string The file path to the attached file. 
    4444 */ 
    4545function get_attached_file( $attachment_id, $unfiltered = false ) { 
     
    894894 * @since 2.7.0 
    895895 * 
    896896 * @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. 
    898898 */ 
    899899function is_sticky($post_id = null) { 
    900900        global $id; 
  • wp-includes/registration.php

     
    8383 * 'first_name' - The user's first name. 
    8484 * 'last_name' - The user's last name. 
    8585 * 'description' - A string containing content about the user. 
    86  * 'rich_editing' - A string for whether to enable the rich editor or not. False 
     86 * 'rich_editing' - A string for whether to enable the rich editor. False 
    8787 *              if not empty. 
    8888 * 'user_registered' - The date the user registered. Format is 'Y-m-d H:i:s'. 
    8989 * 'role' - A string used to set the user's role. 
  • wp-includes/taxonomy.php

     
    9494 * @uses $wp_taxonomies 
    9595 * 
    9696 * @param string $taxonomy Name of taxonomy object 
    97  * @return bool Whether the taxonomy exists or not. 
     97 * @return bool Whether the taxonomy exists. 
    9898 */ 
    9999function is_taxonomy( $taxonomy ) { 
    100100        global $wp_taxonomies; 
  • wp-includes/user.php

     
    252252 * @param int $user_id User ID 
    253253 * @param string $option_name User option name. 
    254254 * @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. 
    256256 * @return unknown 
    257257 */ 
    258258function update_user_option( $user_id, $option_name, $newvalue, $global = false ) { 
  • wp-includes/wp-db.php

     
    706706         * 
    707707         * @since 0.71 
    708708         * 
    709          * @return bool Whether showing of errors was active or not 
     709         * @return bool Whether showing of errors was active 
    710710         */ 
    711711        function hide_errors() { 
    712712                $show = $this->show_errors; 
     
    11681168        } 
    11691169 
    11701170        /** 
    1171          * Whether or not MySQL database is at least the required minimum version. 
     1171         * Whether MySQL database is at least the required minimum version. 
    11721172         * 
    11731173         * @since 2.5.0 
    11741174         * @uses $wp_version 
     
    11841184        } 
    11851185 
    11861186        /** 
    1187          * Whether of not the database supports collation. 
     1187         * Whether the database supports collation. 
    11881188         * 
    11891189         * Called when WordPress is generating the table scheme. 
    11901190         * 
  • wp-trackback.php

     
    1313/** 
    1414 * trackback_response() - Respond with error or success XML message 
    1515 * 
    16  * @param int|bool $error Whether there was an error or not 
     16 * @param int|bool $error Whether there was an error 
    1717 * @param string $error_message Error message if an error occurred 
    1818 */ 
    1919function trackback_response($error = 0, $error_message = '') {