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
This commit is contained in:
parent
c57efab4f4
commit
7682e433fc
@ -154,7 +154,7 @@ function wp_tempnam( $filename = '', $dir = '' ) {
|
||||
$temp_filename = basename( $filename );
|
||||
$temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename );
|
||||
|
||||
// If the folder is falsey, use it's parent directory name instead
|
||||
// If the folder is falsey, use its parent directory name instead.
|
||||
if ( ! $temp_filename ) {
|
||||
return wp_tempnam( dirname( $filename ), $dir );
|
||||
}
|
||||
|
@ -614,7 +614,7 @@ function wp_restore_image($post_id) {
|
||||
if ( $parts['basename'] != $data['file'] ) {
|
||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||
|
||||
// Delete only if it's edited image.
|
||||
// Delete only if it's an edited image.
|
||||
if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
|
||||
wp_delete_file( $file );
|
||||
}
|
||||
@ -637,7 +637,7 @@ function wp_restore_image($post_id) {
|
||||
if ( isset($meta['sizes'][$default_size]) && $meta['sizes'][$default_size]['file'] != $data['file'] ) {
|
||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||
|
||||
// Delete only if it's edited image
|
||||
// Delete only if it's an edited image.
|
||||
if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
|
||||
$delete_file = path_join( $parts['dirname'], $meta['sizes'][$default_size]['file'] );
|
||||
wp_delete_file( $delete_file );
|
||||
|
@ -136,7 +136,7 @@ class Services_JSON
|
||||
* from encode() should be checked with isError()
|
||||
* - SERVICES_JSON_USE_TO_JSON: call toJSON when serializing objects
|
||||
* It serializes the return value from the toJSON call rather
|
||||
* than the object it'self, toJSON can return associative arrays,
|
||||
* than the object itself, toJSON can return associative arrays,
|
||||
* strings or numbers, if you return an object, make sure it does
|
||||
* not have a toJSON method, otherwise an error will occur.
|
||||
*/
|
||||
|
@ -82,7 +82,7 @@ class POP3 {
|
||||
// Opens a socket to the specified server. Unless overridden,
|
||||
// port defaults to 110. Returns true on success, false on fail
|
||||
|
||||
// If MAILSERVER is set, override $server with it's value
|
||||
// If MAILSERVER is set, override $server with its value.
|
||||
|
||||
if (!isset($port) || !$port) {$port = 110;}
|
||||
if(!empty($this->MAILSERVER))
|
||||
|
@ -313,7 +313,7 @@ class WP_Http_Streams {
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifies the received SSL certificate against it's Common Names and subjectAltName fields
|
||||
* Verifies the received SSL certificate against its Common Names and subjectAltName fields.
|
||||
*
|
||||
* PHP's SSL verifications only verify that it's a valid Certificate, it doesn't verify if
|
||||
* the certificate is valid for the hostname which was requested.
|
||||
@ -415,7 +415,7 @@ class WP_Http_Streams {
|
||||
* Deprecated HTTP Transport method which used fsockopen.
|
||||
*
|
||||
* This class is not used, and is included for backwards compatibility only.
|
||||
* All code should make use of WP_HTTP directly through it's API.
|
||||
* All code should make use of WP_Http directly through its API.
|
||||
*
|
||||
* @see WP_HTTP::request
|
||||
*
|
||||
|
@ -2049,8 +2049,10 @@ class wpdb {
|
||||
protected function process_field_charsets( $data, $table ) {
|
||||
foreach ( $data as $field => $value ) {
|
||||
if ( '%d' === $value['format'] || '%f' === $value['format'] ) {
|
||||
// We can skip this field if we know it isn't a string.
|
||||
// This checks %d/%f versus ! %s because it's sprintf() could take more.
|
||||
/*
|
||||
* We can skip this field if we know it isn't a string.
|
||||
* This checks %d/%f versus ! %s because its sprintf() could take more.
|
||||
*/
|
||||
$value['charset'] = false;
|
||||
} else {
|
||||
$value['charset'] = $this->get_col_charset( $table, $field );
|
||||
@ -2079,8 +2081,10 @@ class wpdb {
|
||||
protected function process_field_lengths( $data, $table ) {
|
||||
foreach ( $data as $field => $value ) {
|
||||
if ( '%d' === $value['format'] || '%f' === $value['format'] ) {
|
||||
// We can skip this field if we know it isn't a string.
|
||||
// This checks %d/%f versus ! %s because it's sprintf() could take more.
|
||||
/*
|
||||
* We can skip this field if we know it isn't a string.
|
||||
* This checks %d/%f versus ! %s because its sprintf() could take more.
|
||||
*/
|
||||
$value['length'] = false;
|
||||
} else {
|
||||
$value['length'] = $this->get_col_length( $table, $field );
|
||||
|
@ -52,7 +52,7 @@ class Tests_Canonical extends WP_Canonical_UnitTestCase {
|
||||
* [2]: (optional) The ticket the test refers to, Can be skipped if unknown.
|
||||
*/
|
||||
|
||||
// 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.
|
||||
// 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.
|
||||
return array(
|
||||
// Categories
|
||||
|
||||
|
@ -12,7 +12,7 @@ class Tests_Mail extends WP_UnitTestCase {
|
||||
/**
|
||||
* Send a mail with a 1000 char long line.
|
||||
*
|
||||
* `PHPMailer::createBody()` will set `$this->Encoding = 'quoted-printable'` (away from it's default of 8bit)
|
||||
* `PHPMailer::createBody()` will set `$this->Encoding = 'quoted-printable'` (away from its default of 8bit)
|
||||
* when it encounters a line longer than 999 characters. But PHPMailer doesn't clean up after itself / presets
|
||||
* all variables, which means that following tests would fail. To solve this issue we set `$this->Encoding`
|
||||
* back to 8bit in `MockPHPMailer::preSend`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user