WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2010 03:29:57 AM (9 years ago)
Author:
nacin
Message:

Update via ajax the sample output of custom date/times on options-general. fixes #12636.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r15632 r15757  
    14641464    die( '0' );
    14651465    break;
     1466case 'date_format' :
     1467    die( date_i18n( sanitize_option( 'date_format', $_POST['date'] ) ) );
     1468    break;
     1469case 'time_format' :
     1470    die( date_i18n( sanitize_option( 'time_format', $_POST['date'] ) ) );
     1471    break;
    14661472default :
    14671473    do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset for help on using the changeset viewer.