@@ 1639-1645 (lines=7) @@ | ||
1636 | static $instance = 0; |
|
1637 | $instance++; |
|
1638 | ||
1639 | if ( ! empty( $attr['ids'] ) ) { |
|
1640 | // 'ids' is explicitly ordered, unless you specify otherwise. |
|
1641 | if ( empty( $attr['orderby'] ) ) { |
|
1642 | $attr['orderby'] = 'post__in'; |
|
1643 | } |
|
1644 | $attr['include'] = $attr['ids']; |
|
1645 | } |
|
1646 | ||
1647 | /** |
|
1648 | * Filters the default gallery shortcode output. |
|
@@ 1925-1931 (lines=7) @@ | ||
1922 | static $instance = 0; |
|
1923 | $instance++; |
|
1924 | ||
1925 | if ( ! empty( $attr['ids'] ) ) { |
|
1926 | // 'ids' is explicitly ordered, unless you specify otherwise. |
|
1927 | if ( empty( $attr['orderby'] ) ) { |
|
1928 | $attr['orderby'] = 'post__in'; |
|
1929 | } |
|
1930 | $attr['include'] = $attr['ids']; |
|
1931 | } |
|
1932 | ||
1933 | /** |
|
1934 | * Filters the playlist output. |