Skip to content

Commit a6e2d81

Browse files
committed
Press This: Revert [60990] for more discussion.
[60990] introduced a new action, `press_this_init`. While the code changes adding the hook are straightforward, the actual use cases are not yet clear. Reverting the change allows for more discussion to clarify what is actually supported through the addition of this new action. Props jorbin. See #53076. git-svn-id: https://develop.svn.wordpress.org/trunk@61030 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8e2c2db commit a6e2d81

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/wp-admin/includes/admin-filters.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,3 @@
172172
// Font management.
173173
add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
174174
add_action( 'admin_print_styles', 'wp_print_font_faces_from_style_variations', 50 );
175-
176-
// Load Press This.
177-
add_action( 'press_this_init', 'wp_load_press_this' );

src/wp-admin/press-this.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,4 @@ function wp_load_press_this() {
8484
}
8585
}
8686

87-
/**
88-
* Loads the Press This plugin.
89-
*
90-
* Via admin-filters.php, the wp_load_press_this() function is hooked into this action.
91-
* Plugins can remove_action and add their own function to load their own Press This functionality.
92-
*
93-
* @since 6.9.0
94-
*/
95-
do_action( 'press_this_init' );
87+
wp_load_press_this();

0 commit comments

Comments
 (0)