Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 66b6bb0

Browse files
authored
Use add_action instead of add_filter
1 parent e5aea6a commit 66b6bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-customize-snapshot-manager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function hooks() {
105105
add_action( 'wp_before_admin_bar_render', array( $this, 'print_admin_bar_styles' ) );
106106
add_filter( 'removable_query_args', array( $this, 'filter_removable_query_args' ) );
107107
add_filter( 'wp_save_post_revision_post_has_changed', array( $this, '_filter_revision_post_has_changed' ), 20, 3 );
108-
add_filter( 'save_post_customize_changeset', array( $this, 'create_initial_changeset_revision' ) );
108+
add_action( 'save_post_customize_changeset', array( $this, 'create_initial_changeset_revision' ) );
109109
add_filter( 'wp_insert_post_data', array( $this, 'prepare_snapshot_post_content_for_publish' ) );
110110
}
111111

0 commit comments

Comments
 (0)