Ensure uploaded image is inserted with correct size #323
45.87% of diff hit (within 50.00% threshold of 75.63%)
View this Pull Request on Codecov
45.87% of diff hit (within 50.00% threshold of 75.63%)
Annotations
Check warning on line 49 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L49
Added line #L49 was not covered by tests
Check warning on line 81 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L81
Added line #L81 was not covered by tests
Check warning on line 86 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L86
Added line #L86 was not covered by tests
Check warning on line 91 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L88-L91
Added lines #L88 - L91 were not covered by tests
Check warning on line 95 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L95
Added line #L95 was not covered by tests
Check warning on line 120 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L120
Added line #L120 was not covered by tests
Check warning on line 343 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L343
Added line #L343 was not covered by tests
Check warning on line 353 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L353
Added line #L353 was not covered by tests
Check warning on line 361 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L361
Added line #L361 was not covered by tests
Check warning on line 369 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L369
Added line #L369 was not covered by tests
Check warning on line 377 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L377
Added line #L377 was not covered by tests
Check warning on line 385 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L385
Added line #L385 was not covered by tests
Check warning on line 393 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L393
Added line #L393 was not covered by tests
Check warning on line 410 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L410
Added line #L410 was not covered by tests
Check warning on line 473 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L472-L473
Added lines #L472 - L473 were not covered by tests
Check warning on line 476 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L475-L476
Added lines #L475 - L476 were not covered by tests
Check warning on line 484 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L479-L484
Added lines #L479 - L484 were not covered by tests
Check warning on line 492 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L487-L492
Added lines #L487 - L492 were not covered by tests
Check warning on line 495 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L495
Added line #L495 was not covered by tests
Check warning on line 506 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L506
Added line #L506 was not covered by tests
Check warning on line 508 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L508
Added line #L508 was not covered by tests
Check warning on line 580 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L580
Added line #L580 was not covered by tests
Check warning on line 607 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L606-L607
Added lines #L606 - L607 were not covered by tests
Check warning on line 613 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L609-L613
Added lines #L609 - L613 were not covered by tests
Check warning on line 616 in inc/class-rest-attachments-controller.php
codecov / codecov/patch
inc/class-rest-attachments-controller.php#L615-L616
Added lines #L615 - L616 were not covered by tests