Skip to content

Commit

Permalink
Update comment for duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Jun 21, 2024
1 parent a71472e commit a77e40f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/custom-status/custom-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function disable_custom_statuses_for_post_type( $post_type = null ) {
* - We have other custom code for Quick Edit and JS niceties
*/
function action_admin_enqueue_scripts() {
// ToDo: This is duplicated in 3 places, should be refactored
if ( $this->disable_custom_statuses_for_post_type() ) {
return;
}
Expand Down Expand Up @@ -317,6 +318,7 @@ function action_admin_enqueue_scripts() {
}

function load_scripts_for_block_editor(){
// ToDo: This is duplicated in 3 places, should be refactored
if ( $this->disable_custom_statuses_for_post_type() ) {
return;
}
Expand All @@ -331,6 +333,7 @@ function load_scripts_for_block_editor(){
}

function load_styles_for_block_editor(){
// ToDo: This is duplicated in 3 places, should be refactored
if ( $this->disable_custom_statuses_for_post_type() ) {
return;
}
Expand Down

0 comments on commit a77e40f

Please sign in to comment.