Changeset 45580
- Timestamp:
- 07/01/2019 08:00:12 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r45519 r45580 1721 1721 * @return bool|null True on success, false on failure, null if the filesystem method class file does not exist. 1722 1722 */ 1723 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { 1723 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 1724 1724 global $wp_filesystem; 1725 1725 -
trunk/src/wp-admin/includes/misc.php
r45448 r45580 832 832 * @param string $filename 833 833 */ 834 function saveDomDocument( $doc, $filename ) { 834 function saveDomDocument( $doc, $filename ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 835 835 $config = $doc->saveXML(); 836 836 $config = preg_replace( "/([^\r])\n/", "$1\r\n", $config ); -
trunk/src/wp-admin/includes/upgrade.php
r45448 r45580 2454 2454 * @return mixed 2455 2455 */ 2456 function __get_option( $setting ) { 2456 function __get_option( $setting ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 2457 2457 global $wpdb; 2458 2458 … … 2523 2523 * @return array Strings containing the results of the various update queries. 2524 2524 */ 2525 function dbDelta( $queries = '', $execute = true ) { 2525 function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 2526 2526 global $wpdb; 2527 2527 -
trunk/src/wp-admin/link-parse-opml.php
r42343 r45580 32 32 * @param array $attrs XML element attributes. 33 33 */ 34 function startElement( $parser, $tagName, $attrs ) { 34 function startElement( $parser, $tagName, $attrs ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 35 35 global $names, $urls, $targets, $descriptions, $feeds; 36 36 … … 69 69 * @param string $tagName XML tag name. 70 70 */ 71 function endElement( $parser, $tagName ) { 71 function endElement( $parser, $tagName ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 72 72 // Nothing to do. 73 73 } -
trunk/src/wp-includes/author-template.php
r45235 r45580 564 564 * @access private 565 565 */ 566 function __clear_multi_author_cache() { 566 function __clear_multi_author_cache() { //phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 567 567 delete_transient( 'is_multi_author' ); 568 568 } -
trunk/src/wp-includes/category-template.php
r44572 r45580 106 106 * @return string|WP_Error Category name on success, WP_Error on failure. 107 107 */ 108 function get_the_category_by_ID( $cat_ID ) { 108 function get_the_category_by_ID( $cat_ID ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 109 109 $cat_ID = (int) $cat_ID; 110 110 $category = get_term( $cat_ID ); -
trunk/src/wp-includes/category.php
r43571 r45580 198 198 * @return int 0, if failure and ID of category on success. 199 199 */ 200 function get_cat_ID( $cat_name ) { 200 function get_cat_ID( $cat_name ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 201 201 $cat = get_term_by( 'name', $cat_name, 'category' ); 202 202 if ( $cat ) { -
trunk/src/wp-includes/class-http.php
r45504 r45580 648 648 * @return array Array with 'headers' and 'body' keys. 649 649 */ 650 public static function processResponse( $strResponse ) { 650 public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 651 651 $res = explode( "\r\n\r\n", $strResponse, 2 ); 652 652 … … 670 670 * Then a numbered array is returned as the value of that header-key. 671 671 */ 672 public static function processHeaders( $headers, $url = '' ) { 672 public static function processHeaders( $headers, $url = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 673 673 // Split headers, one per array element. 674 674 if ( is_string( $headers ) ) { … … 753 753 * @param array $r Full array of args passed into ::request() 754 754 */ 755 public static function buildCookieHeader( &$r ) { 755 public static function buildCookieHeader( &$r ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 756 756 if ( ! empty( $r['cookies'] ) ) { 757 757 // Upgrade any name => value cookie pairs to WP_HTTP_Cookie instances. … … 789 789 * @return string Chunked decoded body on success or raw body on failure. 790 790 */ 791 public static function chunkTransferDecode( $body ) { 791 public static function chunkTransferDecode( $body ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 792 792 // The body is not chunked encoded or is malformed. 793 793 if ( ! preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', trim( $body ) ) ) { -
trunk/src/wp-includes/class-wp-http-cookie.php
r45135 r45580 212 212 * @return string Header encoded cookie name and value. 213 213 */ 214 public function getHeaderValue() { 214 public function getHeaderValue() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 215 215 if ( ! isset( $this->name ) || ! isset( $this->value ) ) { 216 216 return ''; … … 235 235 * @return string 236 236 */ 237 public function getFullHeader() { 237 public function getFullHeader() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 238 238 return 'Cookie: ' . $this->getHeaderValue(); 239 239 } -
trunk/src/wp-includes/class-wp-http-response.php
r41707 r45580 148 148 * @return mixed Any JSON-serializable value. 149 149 */ 150 public function jsonSerialize() { 150 public function jsonSerialize() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 151 151 return $this->get_data(); 152 152 } -
trunk/src/wp-includes/comment-template.php
r45505 r45580 263 263 * @return string Comment author's IP address. 264 264 */ 265 function get_comment_author_IP( $comment_ID = 0 ) { 265 function get_comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 266 266 $comment = get_comment( $comment_ID ); 267 267 … … 288 288 * Default current comment. 289 289 */ 290 function comment_author_IP( $comment_ID = 0 ) { 290 function comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 291 291 echo esc_html( get_comment_author_IP( $comment_ID ) ); 292 292 } … … 652 652 * @return int The comment ID. 653 653 */ 654 function get_comment_ID() { 654 function get_comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 655 655 $comment = get_comment(); 656 656 … … 672 672 * @since 0.71 673 673 */ 674 function comment_ID() { 674 function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 675 675 echo get_comment_ID(); 676 676 } -
trunk/src/wp-includes/compat.php
r44953 r45580 435 435 */ 436 436 interface JsonSerializable { 437 // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 437 438 public function jsonSerialize(); 438 439 } -
trunk/src/wp-includes/formatting.php
r45578 r45580 2428 2428 * @return string Balanced text 2429 2429 */ 2430 function balanceTags( $text, $force = false ) { 2430 function balanceTags( $text, $force = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 2431 2431 if ( $force || get_option( 'use_balanceTags' ) == 1 ) { 2432 2432 return force_balance_tags( $text ); -
trunk/src/wp-includes/functions.php
r45555 r45580 5632 5632 * @return true True. 5633 5633 */ 5634 function __return_true() { 5634 function __return_true() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5635 5635 return true; 5636 5636 } … … 5647 5647 * @return false False. 5648 5648 */ 5649 function __return_false() { 5649 function __return_false() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5650 5650 return false; 5651 5651 } … … 5660 5660 * @return int 0. 5661 5661 */ 5662 function __return_zero() { 5662 function __return_zero() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5663 5663 return 0; 5664 5664 } … … 5673 5673 * @return array Empty array. 5674 5674 */ 5675 function __return_empty_array() { 5675 function __return_empty_array() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5676 5676 return array(); 5677 5677 } … … 5686 5686 * @return null Null value. 5687 5687 */ 5688 function __return_null() { 5688 function __return_null() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5689 5689 return null; 5690 5690 } … … 5701 5701 * @return string Empty string. 5702 5702 */ 5703 function __return_empty_string() { 5703 function __return_empty_string() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 5704 5704 return ''; 5705 5705 } -
trunk/src/wp-includes/general-template.php
r45424 r45580 4549 4549 * @return string html attribute or empty string 4550 4550 */ 4551 function __checked_selected_helper( $helper, $current, $echo, $type ) { 4551 function __checked_selected_helper( $helper, $current, $echo, $type ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore 4552 4552 if ( (string) $helper === (string) $current ) { 4553 4553 $result = " $type='$type'"; -
trunk/src/wp-includes/load.php
r45400 r45580 27 27 * @access private 28 28 */ 29 function wp_unregister_GLOBALS() { 29 function wp_unregister_GLOBALS() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 30 30 if ( ! ini_get( 'register_globals' ) ) { 31 31 return; -
trunk/src/wp-includes/ms-functions.php
r45204 r45580 2253 2253 * @return string URL with https as the scheme 2254 2254 */ 2255 function filter_SSL( $url ) { 2255 function filter_SSL( $url ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 2256 2256 if ( ! is_string( $url ) ) { 2257 2257 return get_bloginfo( 'url' ); // Return home blog url with proper scheme -
trunk/src/wp-includes/pomo/streams.php
r44614 r45580 35 35 * @param string $endian Set the endianness of the file. Accepts 'big', or 'little'. 36 36 */ 37 function setEndian( $endian ) { 37 function setEndian( $endian ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 38 38 $this->endian = $endian; 39 39 } -
trunk/src/wp-includes/post-template.php
r45491 r45580 14 14 * @since 0.71 15 15 */ 16 function the_ID() { 16 function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 17 17 echo get_the_ID(); 18 18 } … … 25 25 * @return int|false The ID of the current item in the WordPress Loop. False if $post is not set. 26 26 */ 27 function get_the_ID() { 27 function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 28 28 $post = get_post(); 29 29 return ! empty( $post ) ? $post->ID : false; -
trunk/src/xmlrpc.php
r43571 r45580 97 97 * @param string $msg Information describing logging reason. 98 98 */ 99 function logIO( $io, $msg ) { 99 function logIO( $io, $msg ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 100 100 _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); 101 101 if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) { -
trunk/tests/phpunit/includes/class-basic-object.php
r42381 r45580 38 38 } 39 39 40 // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 40 41 private function callMe() { 41 42 return 'maybe'; -
trunk/tests/phpunit/includes/functions.php
r45160 r45580 22 22 * Resets various `$_SERVER` variables that can get altered during tests. 23 23 */ 24 function tests_reset__SERVER() { 24 function tests_reset__SERVER() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 25 25 $_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN; 26 26 $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; -
trunk/tests/phpunit/includes/object-cache.php
r42343 r45580 762 762 } 763 763 764 // phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 764 765 class WP_Object_Cache { 765 766 … … 2161 2162 } 2162 2163 } 2164 // phpcs:enable -
trunk/tests/phpunit/includes/phpunit6/compat.php
r44701 r45580 18 18 class PHPUnit_Util_Test { 19 19 20 // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 20 21 public static function getTickets( $className, $methodName ) { 21 22 $annotations = PHPUnit\Util\Test::parseTestMethodAnnotations( $className, $methodName ); -
trunk/tests/phpunit/includes/trac.php
r42343 r45580 14 14 * @return bool|null true if the ticket is resolved, false if not resolved, null on error 15 15 */ 16 public static function isTracTicketClosed( $trac_url, $ticket_id ) { 16 public static function isTracTicketClosed( $trac_url, $ticket_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 17 17 if ( ! extension_loaded( 'openssl' ) ) { 18 18 $trac_url = preg_replace( '/^https:/', 'http:', $trac_url ); … … 45 45 } 46 46 47 // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 47 48 public static function usingLocalCache() { 48 49 echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K"; … … 51 52 } 52 53 54 // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 53 55 public static function forcingKnownBugs() { 54 56 echo PHP_EOL . "\x1b[0m\x1b[37;41m\x1b[2K"; -
trunk/tests/phpunit/includes/utils.php
r43653 r45580 183 183 // convert valid xml to an array tree structure 184 184 // kinda lame but it works with a default php 4 installation 185 class testXMLParser {185 class TestXMLParser { 186 186 var $xml; 187 187 var $data = array(); … … 194 194 xml_set_object( $this->xml, $this ); 195 195 xml_parser_set_option( $this->xml, XML_OPTION_CASE_FOLDING, 0 ); 196 xml_set_element_handler( $this->xml, array( $this, 'start Handler' ), array( $this, 'endHandler' ) );197 xml_set_character_data_handler( $this->xml, array( $this, 'data Handler' ) );196 xml_set_element_handler( $this->xml, array( $this, 'start_handler' ), array( $this, 'end_handler' ) ); 197 xml_set_character_data_handler( $this->xml, array( $this, 'data_handler' ) ); 198 198 $this->parse( $in ); 199 199 } … … 215 215 } 216 216 217 function start Handler( $parser, $name, $attributes ) {217 function start_handler( $parser, $name, $attributes ) { 218 218 $data['name'] = $name; 219 219 if ( $attributes ) { … … 222 222 } 223 223 224 function data Handler( $parser, $data ) {224 function data_handler( $parser, $data ) { 225 225 $index = count( $this->data ) - 1; 226 226 @$this->data[ $index ]['content'] .= $data; 227 227 } 228 228 229 function end Handler( $parser, $name ) {229 function end_handler( $parser, $name ) { 230 230 if ( count( $this->data ) > 1 ) { 231 231 $data = array_pop( $this->data ); … … 237 237 238 238 function xml_to_array( $in ) { 239 $p = new testXMLParser( $in );239 $p = new TestXMLParser( $in ); 240 240 return $p->data; 241 241 }
Note: See TracChangeset
for help on using the changeset viewer.