Changeset 1194958
- Timestamp:
- 07/08/2015 07:55:14 PM (11 years ago)
- Location:
- automatic-post-date-filler
- Files:
-
- 2 edited
-
tags/1.1/automatic-post-date-filler.php (modified) (6 diffs)
-
trunk/automatic-post-date-filler.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
automatic-post-date-filler/tags/1.1/automatic-post-date-filler.php
r1194934 r1194958 466 466 */ 467 467 public function affected_post_statuses_callback(){ 468 $ouptut_array = $this->get_variable('settings_array')['affected_post_statuses']; 468 $settings = $this->get_variable('settings_array'); 469 $ouptut_array = $settings['affected_post_statuses']; 469 470 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 470 471 $output_array_to_string = implode(',', $output_array_sanitized); … … 477 478 */ 478 479 public function affected_post_types_callback(){ 479 $ouptut_array = $this->get_variable('settings_array')['affected_post_types']; 480 $settings = $this->get_variable('settings_array'); 481 $ouptut_array = $settings['affected_post_types']; 480 482 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 481 483 $output_array_to_string = implode(',', $output_array_sanitized); … … 488 490 */ 489 491 public function analyzed_post_statuses_callback(){ 490 $ouptut_array = $this->get_variable('settings_array')['analyzed_post_statuses']; 492 $settings = $this->get_variable('settings_array'); 493 $ouptut_array = $settings['analyzed_post_statuses']; 491 494 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 492 495 $output_array_to_string = implode(',', $output_array_sanitized); … … 499 502 */ 500 503 public function analyzed_post_types_callback(){ 501 $ouptut_array = $this->get_variable('settings_array')['analyzed_post_types']; 504 $settings = $this->get_variable('settings_array'); 505 $ouptut_array = $settings['analyzed_post_types']; 502 506 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 503 507 $output_array_to_string = implode(',', $output_array_sanitized); … … 510 514 */ 511 515 public function custom_date_callback(){ 512 $custom_date_reference = $this->get_variable('settings_array')['custom_date_reference']; 513 $custom_date_operation = $this->get_variable('settings_array')['custom_date_operation']; 514 $custom_date_difference = $this->get_variable('settings_array')['custom_date_difference']; 516 $settings = $this->get_variable('settings_array'); 517 $custom_date_reference = $settings['custom_date_reference']; 518 $custom_date_operation = $settings['custom_date_operation']; 519 $custom_date_difference = $settings['custom_date_difference']; 515 520 516 521 $custom_date_checked_1 = checked($custom_date_reference, 1, false); … … 550 555 */ 551 556 public function custom_time_callback(){ 552 $custom_time_reference = $this->get_variable('settings_array')['custom_time_reference']; 553 $custom_time_operation = $this->get_variable('settings_array')['custom_time_operation']; 554 $custom_time_difference = $this->get_variable('settings_array')['custom_time_difference']; 555 $custom_time_hours = $this->get_variable('settings_array')['custom_time_hours']; 556 $custom_time_minutes = $this->get_variable('settings_array')['custom_time_minutes']; 557 $settings = $this->get_variable('settings_array'); 558 $custom_time_reference = $settings['custom_time_reference']; 559 $custom_time_operation = $settings['custom_time_operation']; 560 $custom_time_difference = $settings['custom_time_difference']; 561 $custom_time_hours = $settings['custom_time_hours']; 562 $custom_time_minutes = $settings['custom_time_minutes']; 557 563 558 564 $custom_time_checked_1 = checked($custom_time_reference, 1, false); -
automatic-post-date-filler/trunk/automatic-post-date-filler.php
r1194934 r1194958 466 466 */ 467 467 public function affected_post_statuses_callback(){ 468 $ouptut_array = $this->get_variable('settings_array')['affected_post_statuses']; 468 $settings = $this->get_variable('settings_array'); 469 $ouptut_array = $settings['affected_post_statuses']; 469 470 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 470 471 $output_array_to_string = implode(',', $output_array_sanitized); … … 477 478 */ 478 479 public function affected_post_types_callback(){ 479 $ouptut_array = $this->get_variable('settings_array')['affected_post_types']; 480 $settings = $this->get_variable('settings_array'); 481 $ouptut_array = $settings['affected_post_types']; 480 482 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 481 483 $output_array_to_string = implode(',', $output_array_sanitized); … … 488 490 */ 489 491 public function analyzed_post_statuses_callback(){ 490 $ouptut_array = $this->get_variable('settings_array')['analyzed_post_statuses']; 492 $settings = $this->get_variable('settings_array'); 493 $ouptut_array = $settings['analyzed_post_statuses']; 491 494 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 492 495 $output_array_to_string = implode(',', $output_array_sanitized); … … 499 502 */ 500 503 public function analyzed_post_types_callback(){ 501 $ouptut_array = $this->get_variable('settings_array')['analyzed_post_types']; 504 $settings = $this->get_variable('settings_array'); 505 $ouptut_array = $settings['analyzed_post_types']; 502 506 $output_array_sanitized = array_map(array($this, 'sanitize_output_text'), $ouptut_array); 503 507 $output_array_to_string = implode(',', $output_array_sanitized); … … 510 514 */ 511 515 public function custom_date_callback(){ 512 $custom_date_reference = $this->get_variable('settings_array')['custom_date_reference']; 513 $custom_date_operation = $this->get_variable('settings_array')['custom_date_operation']; 514 $custom_date_difference = $this->get_variable('settings_array')['custom_date_difference']; 516 $settings = $this->get_variable('settings_array'); 517 $custom_date_reference = $settings['custom_date_reference']; 518 $custom_date_operation = $settings['custom_date_operation']; 519 $custom_date_difference = $settings['custom_date_difference']; 515 520 516 521 $custom_date_checked_1 = checked($custom_date_reference, 1, false); … … 550 555 */ 551 556 public function custom_time_callback(){ 552 $custom_time_reference = $this->get_variable('settings_array')['custom_time_reference']; 553 $custom_time_operation = $this->get_variable('settings_array')['custom_time_operation']; 554 $custom_time_difference = $this->get_variable('settings_array')['custom_time_difference']; 555 $custom_time_hours = $this->get_variable('settings_array')['custom_time_hours']; 556 $custom_time_minutes = $this->get_variable('settings_array')['custom_time_minutes']; 557 $settings = $this->get_variable('settings_array'); 558 $custom_time_reference = $settings['custom_time_reference']; 559 $custom_time_operation = $settings['custom_time_operation']; 560 $custom_time_difference = $settings['custom_time_difference']; 561 $custom_time_hours = $settings['custom_time_hours']; 562 $custom_time_minutes = $settings['custom_time_minutes']; 557 563 558 564 $custom_time_checked_1 = checked($custom_time_reference, 1, false);
Note: See TracChangeset
for help on using the changeset viewer.