Commit 551fa31
committed
Media: Add a
Fixes #37813
Props grapplerulrich, mrahmadawais
git-svn-id: https://develop.svn.wordpress.org/trunk@38408 602fd350-edb4-49c9-b593-d223f7449a82$wp_error parameter to wp_insert_attachment() to give it parity with wp_insert_post().1 parent f59a3b5 commit 551fa31
2 files changed
Lines changed: 28 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
2869 | | - | |
| 2869 | + | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
| |||
4694 | 4694 | | |
4695 | 4695 | | |
4696 | 4696 | | |
| 4697 | + | |
4697 | 4698 | | |
4698 | 4699 | | |
4699 | 4700 | | |
4700 | | - | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
4704 | 4706 | | |
4705 | | - | |
| 4707 | + | |
4706 | 4708 | | |
4707 | 4709 | | |
4708 | 4710 | | |
| |||
4716 | 4718 | | |
4717 | 4719 | | |
4718 | 4720 | | |
4719 | | - | |
| 4721 | + | |
4720 | 4722 | | |
4721 | 4723 | | |
4722 | 4724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
1799 | 1818 | | |
1800 | 1819 | | |
1801 | 1820 | | |
| |||
0 commit comments