Changeset 14548
- Timestamp:
- 10/09/2025 05:44:02 AM (5 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 3 edited
-
plugins/wporg-learn/inc/post-meta.php (modified) (1 diff)
-
plugins/wporg-learn/inc/profiles.php (modified) (3 diffs)
-
themes/pub/wporg-learn-2024/style.css (modified) (1 diff)
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 ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/profiles.php
r12130 r14548 19 19 } 20 20 21 add_action( 'sensei_course_status_updated', __NAMESPACE__ . '\add_course_completed_activity', 9, 3); // Before `redirect_to_course_completed_page()`.21 add_action( 'sensei_course_status_updated', __NAMESPACE__ . '\add_course_completed_activity', 9, 5 ); // Before `redirect_to_course_completed_page()`. 22 22 add_action( 'transition_post_status', __NAMESPACE__ . '\maybe_notify_new_published_post', 10, 3 ); 23 23 … … 30 30 */ 31 31 function maybe_notify_new_published_post( $new_status, $old_status, $post ) { 32 if ( 'publish' != $new_status ) {32 if ( 'publish' != $new_status || 'publish' === $old_status ) { 33 33 return; 34 34 } … … 104 104 * Add an activity to a user's profile when they complete a course. 105 105 */ 106 function add_course_completed_activity( string $status, int $user_id, int $course_id ) : void {107 if ( 'complete' !== $status ) {106 function add_course_completed_activity( string $status, int $user_id, int $course_id, int $comment_id, ?string $previous_status ) : void { 107 if ( 'complete' !== $status || 'complete' === $previous_status ) { 108 108 return; 109 109 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css
r14349 r14548 5 5 * Author URI: http://wordpress.org/ 6 6 * Description: A theme for learn.wordpress.org, built in 2024. 7 * Version: 1.0.0- de23cb37 * Version: 1.0.0-b154a5f 8 8 * License: GNU General Public License v2 or later 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.