Changeset 12731 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
- Timestamp:
- 07/10/2023 10:40:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
r12107 r12731 111 111 add_action( 'init', [ __CLASS__, 'register_meta' ] ); 112 112 add_filter( 'is_protected_meta', [ __CLASS__, 'is_protected_meta' ], 10, 2 ); 113 114 // Rejected photos should be considered in photo hash checks.. 115 add_filter( 'wporg_photos_post_statuses_with_photo_hash', [ __CLASS__, 'amend_with_post_status' ] ); 113 116 114 117 // Customize post row actions. … … 208 211 ], 209 212 ]; 213 } 214 215 /** 216 * Amends an array with the rejection post status. 217 * 218 * @param string[] $post_statuses Array of post statuses. 219 * @return string[] 220 */ 221 public static function amend_with_post_status( $post_statuses ) { 222 $post_statuses[] = self::get_post_status(); 223 return $post_statuses; 210 224 } 211 225
Note: See TracChangeset
for help on using the changeset viewer.