Skip to content

Commit

Permalink
stop handling attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
kermage committed Apr 17, 2024
1 parent 68b27c6 commit a8e98ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/.idea/
/bin/
/tests/
4 changes: 4 additions & 0 deletions includes/Archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ public function reserve_slug( $is_bad, $slug, $post_type, $post_parent = null )

public function meta_box( $post_type ) {

if ( 'attachment' === $post_type ) {
return;
}

add_meta_box(
'at_archive_select',
__( 'Status', 'augment-types' ),
Expand Down
4 changes: 4 additions & 0 deletions includes/Expire.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ private function __construct() {

public function meta_box( $post_type ) {

if ( 'attachment' === $post_type ) {
return;
}

add_meta_box(
'at_expire_settings',
__( 'Expiration', 'augment-types' ),
Expand Down

0 comments on commit a8e98ce

Please sign in to comment.