Skip to content

Commit 7682e43

Browse files
committed
Docs: Put "it's" in its place (again).
Props kitchin. Fixes #33894. git-svn-id: https://develop.svn.wordpress.org/trunk@34234 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c57efab commit 7682e43

8 files changed

Lines changed: 17 additions & 13 deletions

File tree

src/wp-admin/includes/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function wp_tempnam( $filename = '', $dir = '' ) {
154154
$temp_filename = basename( $filename );
155155
$temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename );
156156

157-
// If the folder is falsey, use it's parent directory name instead
157+
// If the folder is falsey, use its parent directory name instead.
158158
if ( ! $temp_filename ) {
159159
return wp_tempnam( dirname( $filename ), $dir );
160160
}

src/wp-admin/includes/image-edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function wp_restore_image($post_id) {
614614
if ( $parts['basename'] != $data['file'] ) {
615615
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
616616

617-
// Delete only if it's edited image.
617+
// Delete only if it's an edited image.
618618
if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
619619
wp_delete_file( $file );
620620
}
@@ -637,7 +637,7 @@ function wp_restore_image($post_id) {
637637
if ( isset($meta['sizes'][$default_size]) && $meta['sizes'][$default_size]['file'] != $data['file'] ) {
638638
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
639639

640-
// Delete only if it's edited image
640+
// Delete only if it's an edited image.
641641
if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
642642
$delete_file = path_join( $parts['dirname'], $meta['sizes'][$default_size]['file'] );
643643
wp_delete_file( $delete_file );

src/wp-includes/class-json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Services_JSON
136136
* from encode() should be checked with isError()
137137
* - SERVICES_JSON_USE_TO_JSON: call toJSON when serializing objects
138138
* It serializes the return value from the toJSON call rather
139-
* than the object it'self, toJSON can return associative arrays,
139+
* than the object itself, toJSON can return associative arrays,
140140
* strings or numbers, if you return an object, make sure it does
141141
* not have a toJSON method, otherwise an error will occur.
142142
*/

src/wp-includes/class-pop3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function connect ($server, $port = 110) {
8282
// Opens a socket to the specified server. Unless overridden,
8383
// port defaults to 110. Returns true on success, false on fail
8484

85-
// If MAILSERVER is set, override $server with it's value
85+
// If MAILSERVER is set, override $server with its value.
8686

8787
if (!isset($port) || !$port) {$port = 110;}
8888
if(!empty($this->MAILSERVER))

src/wp-includes/class-wp-http-streams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function request($url, $args = array()) {
313313
}
314314

315315
/**
316-
* Verifies the received SSL certificate against it's Common Names and subjectAltName fields
316+
* Verifies the received SSL certificate against its Common Names and subjectAltName fields.
317317
*
318318
* PHP's SSL verifications only verify that it's a valid Certificate, it doesn't verify if
319319
* the certificate is valid for the hostname which was requested.
@@ -415,7 +415,7 @@ public static function test( $args = array() ) {
415415
* Deprecated HTTP Transport method which used fsockopen.
416416
*
417417
* This class is not used, and is included for backwards compatibility only.
418-
* All code should make use of WP_HTTP directly through it's API.
418+
* All code should make use of WP_Http directly through its API.
419419
*
420420
* @see WP_HTTP::request
421421
*

src/wp-includes/wp-db.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,8 +2049,10 @@ protected function process_field_formats( $data, $format ) {
20492049
protected function process_field_charsets( $data, $table ) {
20502050
foreach ( $data as $field => $value ) {
20512051
if ( '%d' === $value['format'] || '%f' === $value['format'] ) {
2052-
// We can skip this field if we know it isn't a string.
2053-
// This checks %d/%f versus ! %s because it's sprintf() could take more.
2052+
/*
2053+
* We can skip this field if we know it isn't a string.
2054+
* This checks %d/%f versus ! %s because its sprintf() could take more.
2055+
*/
20542056
$value['charset'] = false;
20552057
} else {
20562058
$value['charset'] = $this->get_col_charset( $table, $field );
@@ -2079,8 +2081,10 @@ protected function process_field_charsets( $data, $table ) {
20792081
protected function process_field_lengths( $data, $table ) {
20802082
foreach ( $data as $field => $value ) {
20812083
if ( '%d' === $value['format'] || '%f' === $value['format'] ) {
2082-
// We can skip this field if we know it isn't a string.
2083-
// This checks %d/%f versus ! %s because it's sprintf() could take more.
2084+
/*
2085+
* We can skip this field if we know it isn't a string.
2086+
* This checks %d/%f versus ! %s because its sprintf() could take more.
2087+
*/
20842088
$value['length'] = false;
20852089
} else {
20862090
$value['length'] = $this->get_col_length( $table, $field );

tests/phpunit/tests/canonical.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function data() {
5252
* [2]: (optional) The ticket the test refers to, Can be skipped if unknown.
5353
*/
5454

55-
// Please Note: A few test cases are commented out below, Look at the test case following it, in most cases it's simple showing 2 options for the "proper" redirect.
55+
// Please Note: A few test cases are commented out below, Look at the test case following it, in most cases it's simply showing 2 options for the "proper" redirect.
5656
return array(
5757
// Categories
5858

tests/phpunit/tests/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function setUp() {
1212
/**
1313
* Send a mail with a 1000 char long line.
1414
*
15-
* `PHPMailer::createBody()` will set `$this->Encoding = 'quoted-printable'` (away from it's default of 8bit)
15+
* `PHPMailer::createBody()` will set `$this->Encoding = 'quoted-printable'` (away from its default of 8bit)
1616
* when it encounters a line longer than 999 characters. But PHPMailer doesn't clean up after itself / presets
1717
* all variables, which means that following tests would fail. To solve this issue we set `$this->Encoding`
1818
* back to 8bit in `MockPHPMailer::preSend`.

0 commit comments

Comments
 (0)