Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #62705, comment 4


Ignore:
Timestamp:
12/19/2024 12:47:54 PM (3 months ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62705, comment 4

    v1 v2  
    7474        'label'                          => __( 'Current date', 'bbe' ),
    7575        'get_value_callback'  => function ( array $source_args, $block_instance ) {
     76             if ( empty( $source_args['format'] ) || 'D' !== $source_args['format'] ) {
     77                 return '';
     78             }
    7679             return gmdate( $source_args['format'] );
    7780        },