Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file://localhost/hey/there/file
- file:///hey/there/file
- <?php
- /*
- Plugin name: Allow file protocol
- */
- function rh_allow_file_protocol( $protocols ) {
- $protocols[] = 'file';
- return $protocols;
- }
- add_filter( 'kses_allowed_protocols', 'rh_allow_file_protocol' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement