Changeset 12688
- Timestamp:
- 07/03/2023 06:22:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/admin.php
r12550 r12688 111 111 } 112 112 113 /** 114 * Enqueues admin scripts and styles. 115 */ 113 116 public static function admin_enqueue_scripts_and_styles() { 114 117 wp_enqueue_script( 'wporg-photos', plugins_url( 'assets/js/admin.js', dirname( __FILE__ ) ), [], filemtime( WPORG_PHOTO_DIRECTORY_DIRECTORY . '/assets/js/admin.js' ), true ); … … 116 119 } 117 120 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() { 119 127 $screen = get_current_screen(); 120 128 $post_type = Registrations::get_post_type();
Note: See TracChangeset
for help on using the changeset viewer.