Making WordPress.org

Changeset 12688


Ignore:
Timestamp:
07/03/2023 06:22:24 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Admin: Make should_include_photo_column() public and add missing docblocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/admin.php

    r12550 r12688  
    111111    }
    112112
     113    /**
     114     * Enqueues admin scripts and styles.
     115     */
    113116    public static function admin_enqueue_scripts_and_styles() {
    114117        wp_enqueue_script( 'wporg-photos', plugins_url( 'assets/js/admin.js', dirname( __FILE__ ) ), [], filemtime( WPORG_PHOTO_DIRECTORY_DIRECTORY . '/assets/js/admin.js' ), true );
     
    116119    }
    117120
    118     protected static function should_include_photo_column() {
     121    /**
     122     * Determines if the 'Photo' column should be added to a post listing table.
     123     *
     124     * @return bool True if the 'Photo' column should be added; else false.
     125     */
     126    public static function should_include_photo_column() {
    119127        $screen = get_current_screen();
    120128        $post_type = Registrations::get_post_type();
Note: See TracChangeset for help on using the changeset viewer.