Skip to content

Commit

Permalink
Remove duplicate views: Remove icons object (#41054)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr authored Jan 15, 2025
1 parent 0fa6e65 commit ce9388d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Removed no longer used code


Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,7 @@ const Notice = () => {
},
};

const icons = {
'edit.php': verse,
'edit.php?post_type=page': pages,
'edit.php?post_type=jetpack-portfolio': archive,
'edit.php?post_type=jetpack-testimonial': commentContent,
'edit-comments.php': postComments,
'edit-tags.php?taxonomy=category': category,
'edit-tags.php?taxonomy=post_tag': tag,
};

if ( ! Object.keys( icons ).includes( removedCalypsoScreenNoticeConfig.screen ) ) {
if ( ! Object.keys( config ).includes( removedCalypsoScreenNoticeConfig.screen ) ) {
return null;
}

Expand Down

0 comments on commit ce9388d

Please sign in to comment.