Changeset 14548 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php
- Timestamp:
- 10/09/2025 05:44:02 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php
r14219 r14548 665 665 $duration = filter_input( INPUT_POST, 'duration', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY ); 666 666 if ( isset( $duration['h'], $duration['m'], $duration['s'] ) ) { 667 $duration = array_map( 'absint', $duration ); 667 668 $duration = $duration['h'] * HOUR_IN_SECONDS + $duration['m'] * MINUTE_IN_SECONDS + $duration['s']; 668 669 update_post_meta( $post_id, 'duration', $duration );
Note: See TracChangeset
for help on using the changeset viewer.