[wp-trac] [WordPress Trac] #61525: Plugins page keeps making HTTP requests for plugin dependencies which are not in the WordPress Plugin Directory

WordPress Trac noreply at wordpress.org
Sat Jun 29 08:56:21 UTC 2024


#61525: Plugins page keeps making HTTP requests for plugin dependencies which are
not in the WordPress Plugin Directory
--------------------------+------------------------------
 Reporter:  siliconforks  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by the ank):

 Hi @siliconforks, I tried to replicate this issue in my local WP. I found
 it keeps triggering the plugin check API, but it only triggers on the wp-
 admin/plugins.php page and not on other pages.

 So yes, if the admin visits the plugins page multiple times, it will
 trigger the same API for missing required plugins not listed in
 WordPress.org.


 Code -

 {{{
 $information = plugins_api(
                                 'plugin_information',
                                 array(
                                         'slug'   => $slug,
                                         'fields' => array(
                                                 'short_description' =>
 true,
                                                 'icons'             =>
 true,
                                         ),
                                 )
                         );
 }}}



 Regards

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61525#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list