Skip to content

Commit

Permalink
Merge pull request #2162 from CityOfPhiladelphia/fix-single-owner
Browse files Browse the repository at this point in the history
fixed single owner
  • Loading branch information
m-atia authored Aug 8, 2024
2 parents c4aa121 + 56463d5 commit a8b8d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions wp/wp-admin/includes/meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ function post_categories_meta_box( $post, $box ) {
'orderby' => 'name',
'hierarchical' => 1,
'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —',
'required' => true
);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jQuery(document).ready(function($){
var required_cat = $('#categorychecklist > li:first-child input');
if( !required_cat.attr('checked') ) {
required_cat.attr('checked','checked');
required_cat.attr('disabled','disabled');
}
}

//Force contributrors to add email for review
if ( phila_WP_User.includes('secondary_department_page_contributror') || phila_WP_User.includes('secondary_service_page_contributor') || phila_WP_User.includes('secondary_programs__initiatives_contributor') ){
$('#dem_notify_emails').prop('required', 'required')
Expand Down

0 comments on commit a8b8d04

Please sign in to comment.