Making WordPress.org


Ignore:
Timestamp:
12/11/2024 07:38:03 AM (14 months ago)
Author:
dd32
Message:

Plugin Directory: Admin: Add a cronjob metabox for highly-trusted users, to ease debugging plugin imports.

This allows those users to see the output from the cron jobs that are related to the plugin.

This is only shown to super admins and in non-production environments for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r13793 r14264  
    777777        }
    778778
     779        // For highly trusted users, add a cron-jobs metabox for debugging plugin imports.
     780        if ( is_super_admin() || 'production' !== wp_get_environment_type() ) {
     781            add_meta_box(
     782                'cron-logs',
     783                'Cron Job Logs',
     784                array( __NAMESPACE__ . '\Metabox\Cron_Logs', 'display' ),
     785                'plugin', 'normal', 'low'
     786            );
     787        }
     788
    779789        // Remove unnecessary metaboxes.
    780790        remove_meta_box( 'commentsdiv', 'plugin', 'normal' );
Note: See TracChangeset for help on using the changeset viewer.