Changeset 799964
- Timestamp:
- 11/06/2013 06:41:37 PM (12 years ago)
- File:
-
- 1 edited
-
polizeipresse/trunk/admin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
polizeipresse/trunk/admin.php
r791815 r799964 48 48 for($office = 0; $office < POLIZEIPRESSE_MAX_OFFICE_COUNT; $office++) { 49 49 50 $old_office_id = $options[POLIZEIPRESSE_OFFICE_ID . $office]; 51 50 52 // Id of office 51 53 $office_id = strip_tags($_POST['office_id' . $office]); … … 55 57 $options[POLIZEIPRESSE_OFFICE_ID . $office] = ''; 56 58 $options[POLIZEIPRESSE_OFFICE_NAME . $office] = ''; 59 $options[POLIZEIPRESSE_CRON_LAST_STORY_ID . $office] = ''; 60 } 61 if ($old_office_id != $office_id) { 62 // If an office id changes the associated last story id must be deleted. 63 // Different offices have different story ids 57 64 $options[POLIZEIPRESSE_CRON_LAST_STORY_ID . $office] = ''; 58 65 } … … 505 512 wp_enqueue_style ('wp-jquery-ui-dialog'); 506 513 507 wp_enqueue_style (' admin.css', plugin_dir_url(__FILE__) . 'css/admin.css');508 wp_enqueue_script(' admin.js', plugin_dir_url(__FILE__) . 'js/admin.js', null, null, true);514 wp_enqueue_style ('polizeipresse-admin.css', plugin_dir_url(__FILE__) . 'css/admin.css'); 515 wp_enqueue_script('polizeipresse-admin.js', plugin_dir_url(__FILE__) . 'js/admin.js', null, null, true); 509 516 $locData = array ('error_no_result' => __('No result from server.', 'Polizeipresse'), 510 517 'error_unknown' => __('An error occurred', 'Polizeipresse'), … … 512 519 'validation_required_office' => __('Please select police office', 'Polizeipresse') 513 520 ); 514 wp_localize_script(' admin.js', 'polizeipresse', $locData );521 wp_localize_script('polizeipresse-admin.js', 'polizeipresse', $locData ); 515 522 } 516 523 add_action('admin_init', 'polizeipresse_admin_init');
Note: See TracChangeset
for help on using the changeset viewer.