|
@@ 1609-1615 (lines=7) @@
|
| 1606 |
|
static $instance = 0; |
| 1607 |
|
$instance++; |
| 1608 |
|
|
| 1609 |
|
if ( ! empty( $attr['ids'] ) ) { |
| 1610 |
|
// 'ids' is explicitly ordered, unless you specify otherwise. |
| 1611 |
|
if ( empty( $attr['orderby'] ) ) { |
| 1612 |
|
$attr['orderby'] = 'post__in'; |
| 1613 |
|
} |
| 1614 |
|
$attr['include'] = $attr['ids']; |
| 1615 |
|
} |
| 1616 |
|
|
| 1617 |
|
/** |
| 1618 |
|
* Filters the default gallery shortcode output. |
|
@@ 1895-1901 (lines=7) @@
|
| 1892 |
|
static $instance = 0; |
| 1893 |
|
$instance++; |
| 1894 |
|
|
| 1895 |
|
if ( ! empty( $attr['ids'] ) ) { |
| 1896 |
|
// 'ids' is explicitly ordered, unless you specify otherwise. |
| 1897 |
|
if ( empty( $attr['orderby'] ) ) { |
| 1898 |
|
$attr['orderby'] = 'post__in'; |
| 1899 |
|
} |
| 1900 |
|
$attr['include'] = $attr['ids']; |
| 1901 |
|
} |
| 1902 |
|
|
| 1903 |
|
/** |
| 1904 |
|
* Filters the playlist output. |