clean up
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
2 additions
and
11 deletions
| ... | @@ -74,8 +74,6 @@ function theme_broker_enqueue_scripts() | ... | @@ -74,8 +74,6 @@ function theme_broker_enqueue_scripts() |
| 74 | || is_page_template("broker_notifications_archive.php") | 74 | || is_page_template("broker_notifications_archive.php") |
| 75 | || is_page_template("broker_account_pages.php") | 75 | || is_page_template("broker_account_pages.php") |
| 76 | || get_post_type() == 'notifications' | 76 | || get_post_type() == 'notifications' |
| 77 | |||
| 78 | |||
| 79 | ) { | 77 | ) { |
| 80 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/landing-page/broker_landing.css', [], "0.0.67"); | 78 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/landing-page/broker_landing.css', [], "0.0.67"); |
| 81 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.71"); | 79 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.71"); |
| ... | @@ -102,6 +100,7 @@ function theme_broker_enqueue_scripts() | ... | @@ -102,6 +100,7 @@ function theme_broker_enqueue_scripts() |
| 102 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/secondary-page/broker.css', array(), '0.0.64'); | 100 | wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/secondary-page/broker.css', array(), '0.0.64'); |
| 103 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.7"); | 101 | wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.7"); |
| 104 | } | 102 | } |
| 103 | |||
| 105 | if ( | 104 | if ( |
| 106 | is_page_template("broker_landing_page.php") | 105 | is_page_template("broker_landing_page.php") |
| 107 | || is_page_template("broker_pages.php") | 106 | || is_page_template("broker_pages.php") |
| ... | @@ -313,10 +312,7 @@ function handle_preflight() | ... | @@ -313,10 +312,7 @@ function handle_preflight() |
| 313 | } | 312 | } |
| 314 | 313 | ||
| 315 | add_role( | 314 | add_role( |
| 316 | 'cwl_staff', | 315 | 'cwl_staff', __('CWL Staff'), |
| 317 | __( | ||
| 318 | 'CWL Staff' | ||
| 319 | ), | ||
| 320 | array( | 316 | array( |
| 321 | 'read' => true, // Allows user to read | 317 | 'read' => true, // Allows user to read |
| 322 | 'create_posts' => true, // Allows user to create new posts | 318 | 'create_posts' => true, // Allows user to create new posts |
| ... | @@ -339,9 +335,6 @@ function ja_theme_setup() | ... | @@ -339,9 +335,6 @@ function ja_theme_setup() |
| 339 | 335 | ||
| 340 | function enable_extended_upload($mime_types = array()) | 336 | function enable_extended_upload($mime_types = array()) |
| 341 | { | 337 | { |
| 342 | |||
| 343 | // The MIME types listed here will be allowed in the media library. | ||
| 344 | // You can add as many MIME types as you want. | ||
| 345 | $mime_types['gz'] = 'application/x-gzip'; | 338 | $mime_types['gz'] = 'application/x-gzip'; |
| 346 | $mime_types['zip'] = 'application/zip'; | 339 | $mime_types['zip'] = 'application/zip'; |
| 347 | $mime_types['rtf'] = 'application/rtf'; | 340 | $mime_types['rtf'] = 'application/rtf'; |
| ... | @@ -351,8 +344,6 @@ function enable_extended_upload($mime_types = array()) | ... | @@ -351,8 +344,6 @@ function enable_extended_upload($mime_types = array()) |
| 351 | $mime_types['svg'] = 'image/svg+xml'; | 344 | $mime_types['svg'] = 'image/svg+xml'; |
| 352 | $mime_types['xlsm'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; | 345 | $mime_types['xlsm'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; |
| 353 | 346 | ||
| 354 | // If you want to forbid specific file types which are otherwise allowed, | ||
| 355 | // specify them here. You can add as many as possible. | ||
| 356 | unset($mime_types['exe']); | 347 | unset($mime_types['exe']); |
| 357 | unset($mime_types['bin']); | 348 | unset($mime_types['bin']); |
| 358 | 349 | ... | ... |
-
Please register or sign in to post a comment