Make WordPress Core

Changeset 61030


Ignore:
Timestamp:
10/21/2025 01:44:35 PM (7 months ago)
Author:
desrosj
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin-filters.php

    r60990 r61030  
    173173add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
    174174add_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' );
  • trunk/src/wp-admin/press-this.php

    r60990 r61030  
    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' );
     87wp_load_press_this();
Note: See TracChangeset for help on using the changeset viewer.