Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pagination in AMP-compatible tab of plugins list page. #6681

Merged

Conversation

dhaval-parekh
Copy link
Collaborator

@dhaval-parekh dhaval-parekh commented Nov 3, 2021

Summary

Related: #2313
Amends: #6597

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@dhaval-parekh dhaval-parekh marked this pull request as ready for review November 3, 2021 10:49
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2021

Plugin builds for af471e6 are ready 🛎️!

@@ -274,7 +274,7 @@ public function filter_plugins_api( $response, /** @noinspection PhpUnusedParame
$response->info = [
'page' => $page,
'pages' => $total_page,
'results' => count( $plugins ),
'results' => count( $this->get_plugins() ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see what I did wrong when I changed this. I didn't account for $plugins being overridden. Ooops.

@westonruter westonruter enabled auto-merge November 3, 2021 18:50
@westonruter westonruter added this to the v2.2 milestone Nov 3, 2021
@westonruter westonruter merged commit 4521a5e into develop Nov 3, 2021
@westonruter westonruter deleted the enhancement/2313-highlight-amp-compatible-theme-plugin branch November 3, 2021 18:57
@delawski
Copy link
Collaborator

QA Passed

Pagination works as expected on Add Plugins screen's "AMP Compatible" tab:
Screenshot 2021-11-30 at 18 24 19

Tested on AMP Version 2.2.0-alpha-20211123T020732Z-5405daa

@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelogged Whether the issue/PR has been added to release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants