Changeset 56714 for trunk/src/wp-includes/default-filters.php
- Timestamp:
- 09/26/2023 03:30:34 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r56693 r56714 412 412 add_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); 413 413 // Create a revision whenever a post is updated. 414 add_action( 'wp_after_insert_post', 'wp_save_post_revision_on_insert', 9, 3 ); 414 415 add_action( 'post_updated', 'wp_save_post_revision', 10, 1 ); 415 416 add_action( 'publish_post', '_publish_post_hook', 5, 1 ); … … 720 721 add_action( 'init', 'wp_create_initial_post_meta' ); 721 722 723 // Include revisioned meta when considering whether a post revision has changed. 724 add_filter( 'wp_save_post_revision_post_has_changed', 'wp_check_revisioned_meta_fields_have_changed', 10, 3 ); 725 726 // Save revisioned post meta immediately after a revision is saved 727 add_action( '_wp_put_post_revision', 'wp_save_revisioned_meta_fields', 10, 2 ); 728 729 // Include revisioned meta when creating or updating an autosave revision. 730 add_action( 'wp_creating_autosave', 'wp_autosave_post_revisioned_meta_fields' ); 731 732 // When restoring revisions, also restore revisioned meta. 733 add_action( 'wp_restore_post_revision', 'wp_restore_post_revision_meta', 10, 2 ); 734 722 735 // Font management. 723 736 add_action( 'wp_head', 'wp_print_font_faces', 50 );
Note: See TracChangeset
for help on using the changeset viewer.