Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 799 forks source link

Infinite Scroll: Settings label reads "Shows 0 posts on each load" #10151

Open laurelfulford opened 6 years ago

laurelfulford commented 6 years ago

Under /wp-admin/options-reading.php, the label for Infinite Scroll now reads "Shows 0 posts on each load" when you're using a theme that does not explicitly set posts-per-page in the infinite scroll settings. It used to say the default, "Shows 7 posts on each load".

image

Steps to reproduce the issue

  1. Start with a theme that does not set posts-per-page in the Infinite Scroll settings (like Apostrophe 2)
  2. Navigate to Dashboard > Settings > Reading
  3. Look at the infinite scroll settings.

What I expected

To see "Shows 7 posts on each load"

What happened instead

It read "Shows 0 posts on each load". Infinite scroll does work as expected though!

If you use a theme that does set posts-per-page in the infinite scroll settings (like Sketch or Dyad), the correct number is displayed.

I can recreate this on an AT site and a self-hosted site. On WordPress.com, this setting is replaced with a link to the Calypso interface.

This was originally reported as a theme issue here: https://github.com/Automattic/themes/issues/260 (hattip @druesome).

adv-ai-tech commented 5 years ago

I am also facing the same. I have tried quite a lot. This is clearly a bug. Now I am using Ajax Load More (Free Version)

stale[bot] commented 5 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

nirodaonline commented 3 years ago

I'm also having this issue with the black theme on the portfolio page.