@@ 1625-1631 (lines=7) @@ | ||
1622 | static $instance = 0; |
|
1623 | $instance++; |
|
1624 | ||
1625 | if ( ! empty( $attr['ids'] ) ) { |
|
1626 | // 'ids' is explicitly ordered, unless you specify otherwise. |
|
1627 | if ( empty( $attr['orderby'] ) ) { |
|
1628 | $attr['orderby'] = 'post__in'; |
|
1629 | } |
|
1630 | $attr['include'] = $attr['ids']; |
|
1631 | } |
|
1632 | ||
1633 | /** |
|
1634 | * Filters the default gallery shortcode output. |
|
@@ 1911-1917 (lines=7) @@ | ||
1908 | static $instance = 0; |
|
1909 | $instance++; |
|
1910 | ||
1911 | if ( ! empty( $attr['ids'] ) ) { |
|
1912 | // 'ids' is explicitly ordered, unless you specify otherwise. |
|
1913 | if ( empty( $attr['orderby'] ) ) { |
|
1914 | $attr['orderby'] = 'post__in'; |
|
1915 | } |
|
1916 | $attr['include'] = $attr['ids']; |
|
1917 | } |
|
1918 | ||
1919 | /** |
|
1920 | * Filters the playlist output. |