|
@@ 1514-1518 (lines=5) @@
|
| 1511 |
|
// Developers can use this hook to pass filename and parent data for the attachment. |
| 1512 |
|
$params = apply_filters( $this->option_prefix . 'set_initial_attachment_data', $params ); |
| 1513 |
|
|
| 1514 |
|
if ( isset( $params['filename']['value'] ) ) { |
| 1515 |
|
$filename = $params['filename']['value']; |
| 1516 |
|
} else { |
| 1517 |
|
$filename = false; |
| 1518 |
|
} |
| 1519 |
|
|
| 1520 |
|
if ( isset( $params['parent']['value'] ) ) { |
| 1521 |
|
$parent = $params['parent']['value']; |
|
@@ 1751-1755 (lines=5) @@
|
| 1748 |
|
} |
| 1749 |
|
} |
| 1750 |
|
|
| 1751 |
|
if ( isset( $params['filename']['value'] ) ) { |
| 1752 |
|
$filename = $params['filename']['value']; |
| 1753 |
|
} else { |
| 1754 |
|
$filename = false; |
| 1755 |
|
} |
| 1756 |
|
|
| 1757 |
|
if ( isset( $params['parent']['value'] ) ) { |
| 1758 |
|
$parent = $params['parent']['value']; |