Ticket #59389: 59389.diff
File 59389.diff, 3.2 KB (added by , 15 months ago) |
---|
-
tests/phpunit/tests/media/getPostGalleries.php
575 575 576 576 } 577 577 578 $ids_joined = join( ',', $ids );578 $ids_joined = implode( ',', $ids ); 579 579 580 580 $global_post_id = self::factory()->post->create( 581 581 array( … … 844 844 845 845 } 846 846 847 $ids1_joined = join( ',', array_slice( $ids, 0, 3 ) );848 $ids2_joined = join( ',', array_slice( $ids, 3, 3 ) );847 $ids1_joined = implode( ',', array_slice( $ids, 0, 3 ) ); 848 $ids2_joined = implode( ',', array_slice( $ids, 3, 3 ) ); 849 849 850 850 $blob = <<<BLOB 851 851 [gallery ids="$ids1_joined"] … … 907 907 908 908 } 909 909 910 $ids1_joined = join( ',', array_slice( $ids, 0, 3 ) );911 $ids2_joined = join( ',', array_slice( $ids, 3, 3 ) );910 $ids1_joined = implode( ',', array_slice( $ids, 0, 3 ) ); 911 $ids2_joined = implode( ',', array_slice( $ids, 3, 3 ) ); 912 912 $blob = <<<BLOB 913 913 [gallery ids="$ids1_joined" type="type" foo="bar"] 914 914 -
tests/phpunit/tests/media.php
552 552 $ids2_srcs[] = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . "image$i.jpg"; 553 553 } 554 554 555 $ids1_joined = join( ',', array_slice( $ids1, 0, 3 ) );556 $ids2_joined = join( ',', array_slice( $ids2, 3, 3 ) );555 $ids1_joined = implode( ',', array_slice( $ids1, 0, 3 ) ); 556 $ids2_joined = implode( ',', array_slice( $ids2, 3, 3 ) ); 557 557 558 558 $blob = <<<BLOB 559 559 [gallery ids="$ids1_joined"] … … 638 638 $imgs[] = '<figure><img src="' . $url . '" data-id="' . $i . '" /></figure>'; 639 639 } 640 640 641 $imgs1_joined = join( "\n", array_slice( $imgs, 0, 3 ) );642 $imgs2_joined = join( "\n", array_slice( $imgs, 3, 3 ) );641 $imgs1_joined = implode( "\n", array_slice( $imgs, 0, 3 ) ); 642 $imgs2_joined = implode( "\n", array_slice( $imgs, 3, 3 ) ); 643 643 644 644 $blob = <<<BLOB 645 645 <!-- wp:gallery --> … … 677 677 678 678 } 679 679 680 $ids1_joined = join( ',', array_slice( $ids, 0, 3 ) );681 $ids2_joined = join( ',', array_slice( $ids, 3, 3 ) );680 $ids1_joined = implode( ',', array_slice( $ids, 0, 3 ) ); 681 $ids2_joined = implode( ',', array_slice( $ids, 3, 3 ) ); 682 682 683 683 $blob = <<<BLOB 684 684 <!-- wp:gallery {"ids":[$ids1_joined]} --> … … 718 718 $imgs[] = '<figure><img src="' . $url . '" data-id="' . $i . '" /></figure>'; 719 719 } 720 720 721 $ids1_joined = join( "\n", array_slice( $ids, 0, 3 ) );722 $ids2_joined = join( "\n", array_slice( $ids, 3, 3 ) );723 $imgs2_joined = join( "\n", array_slice( $imgs, 3, 3 ) );721 $ids1_joined = implode( "\n", array_slice( $ids, 0, 3 ) ); 722 $ids2_joined = implode( "\n", array_slice( $ids, 3, 3 ) ); 723 $imgs2_joined = implode( "\n", array_slice( $imgs, 3, 3 ) ); 724 724 725 725 $blob = <<<BLOB 726 726 [gallery ids="$ids1_joined"] … … 762 762 763 763 } 764 764 765 $imgs_joined = join( "\n", $imgs );765 $imgs_joined = implode( "\n", $imgs ); 766 766 767 767 $blob = <<<BLOB 768 768 <!-- wp:columns --> … … 805 805 806 806 } 807 807 808 $imgs_joined = join( "\n", $imgs );808 $imgs_joined = implode( "\n", $imgs ); 809 809 810 810 $blob = <<<BLOB 811 811 <!-- wp:gallery -->