Skip to content

Commit 8b9b1cc

Browse files
2 parents 2cc9b42 + 242f4e5 commit 8b9b1cc

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/wp-includes/taxonomy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,8 +3812,8 @@ function wp_get_split_term( $old_term_id, $taxonomy ) {
38123812
/**
38133813
* Determine whether a term is shared between multiple taxonomies.
38143814
*
3815-
* Shared taxonomy terms began to be split in 4.3, but failed cron tasks or other delays in upgrade routines may cause
3816-
* shared terms to remain.
3815+
* Shared taxonomy terms began to be split in 4.3, but failed cron tasks or
3816+
* other delays in upgrade routines may cause shared terms to remain.
38173817
*
38183818
* @since 4.4.0
38193819
*

tests/phpunit/tests/customize/manager.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ function setUp() {
5858
require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
5959
$this->manager = $this->instantiate();
6060
$this->undefined = new stdClass();
61+
62+
$orig_file = DIR_TESTDATA . '/images/canola.jpg';
63+
$this->test_file = '/tmp/canola.jpg';
64+
copy( $orig_file, $this->test_file );
65+
$orig_file2 = DIR_TESTDATA . '/images/waffles.jpg';
66+
$this->test_file2 = '/tmp/waffles.jpg';
67+
copy( $orig_file2, $this->test_file2 );
6168
}
6269

6370
/**
@@ -318,8 +325,7 @@ function test_import_theme_starter_content() {
318325
add_theme_support( 'custom-header' );
319326
add_theme_support( 'custom-background' );
320327

321-
$canola_file = DIR_TESTDATA . '/images/canola.jpg';
322-
$existing_canola_attachment_id = self::factory()->attachment->create_object( $canola_file, 0, array(
328+
$existing_canola_attachment_id = self::factory()->attachment->create_object( $this->test_file, 0, array(
323329
'post_mime_type' => 'image/jpeg',
324330
'post_type' => 'attachment',
325331
'post_name' => 'canola',
@@ -383,13 +389,13 @@ function test_import_theme_starter_content() {
383389
'post_title' => 'Waffles',
384390
'post_content' => 'Waffles Attachment Description',
385391
'post_excerpt' => 'Waffles Attachment Caption',
386-
'file' => DIR_TESTDATA . '/images/waffles.jpg',
392+
'file' => $this->test_file2,
387393
),
388394
'canola' => array(
389395
'post_title' => 'Canola',
390396
'post_content' => 'Canola Attachment Description',
391397
'post_excerpt' => 'Canola Attachment Caption',
392-
'file' => DIR_TESTDATA . '/images/canola.jpg',
398+
'file' => $this->test_file,
393399
),
394400
),
395401
'options' => array(

0 commit comments

Comments
 (0)