Network: display all sites available in network.#6999
Conversation
By default, get_sites() only displays up to 100 sites by default.
Rodrigoleon
left a comment
There was a problem hiding this comment.
Successfully tested on 360Sites.net which holds 187 sites. Jetpack now displays 186 sites. Main site is missing from the list.
|
Any way we can force the root site to appear? Note that it also doesn't show up on my multisite on /wp-admin/network/admin.php?page=jetpack |
It's hidden on purpose. You can read more about why in #271 |
|
Tested on wordcamp.org -- 777 sites, not counting the main one -- and it worked as expected :) |
* Changelog: initial commit for 4.9 release. * Changelog: add #6929 * Changelog: move old changelogs to changelog.txt * Readme: restore deleted release post link. The post is now live. * Changelog: add #6853 * Changelog: add #6856 * Changelog: add #6857 * Changelog: add #6884 * Changelog: add #6885 * Changelog: add #6892 * Changelog: add #6894 * Changelog: add #6898 * Changelog: add #6899 * Changelog: add #6900 * Changelog: add #6909 * Changelog: add #6927 * Changelog: add #6947 * Chagelog: add #6958 * Changelog: add #6961 * Changelog: add #6963 * Changelog: add #6965 * Changelog: add #6986 * Changelog: add #7000 * Changelog: add #7013 * Changelog: add #7015 * Changelog: add #7019 * Changelog: add #7028 * Changelog: add #6998 * Changelog: add #6999 * Changelog: add #7044 * Changelog: add #6881 * Changelog: add #6922 * Changelog: add #6940 * Changelog: add #6962 * Changelog: add #6942 * Changelog: add #6959 * Changelog: add #7018 * Changelog: add #6948 * Changelog: add #6657 * Changelog: add #7030 * Changelog: add #7048 * Changelog: add #7031 * Changelog: add #6990 * Changelog: add #6957 * Changelog: add #7027
|
A user wrote in about this in 3179447-t and mentioned that they have over 1800 sites. Is the sites list paginated? Will there be any performance issues with this PR, with that amount of sites? |
|
Yeah, It's paginated. It used to show all sites before 9a64496, so I don't think this'll have any side-effects; it's just restoring the original behavior. |
|
Er, the pagination seems like its implemented in a less-than-ideal way, because it fetches all sites every time, rather than using an If someone has |
By default,
get_sites()only displays up to 100 sites by default.Fixes 170-gh-jpop-issues
Before we ship this, it'd be great to test it on large networks. cc @iandunn
Proposed changelog entry for your changes: