Making WordPress.org


Ignore:
Timestamp:
10/09/2025 05:44:02 AM (6 months ago)
Author:
dd32
Message:

Learn: Sync with git WordPress/learn@1fbde84

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php

    r14219 r14548  
    665665    $duration = filter_input( INPUT_POST, 'duration', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY );
    666666    if ( isset( $duration['h'], $duration['m'], $duration['s'] ) ) {
     667        $duration = array_map( 'absint', $duration );
    667668        $duration = $duration['h'] * HOUR_IN_SECONDS + $duration['m'] * MINUTE_IN_SECONDS + $duration['s'];
    668669        update_post_meta( $post_id, 'duration', $duration );
Note: See TracChangeset for help on using the changeset viewer.