Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. file://localhost/hey/there/file
  2.  
  3. file:///hey/there/file
  4.  
  5. <?php
  6. /*
  7. Plugin name: Allow file protocol
  8. */
  9.  
  10. function rh_allow_file_protocol( $protocols ) {
  11. $protocols[] = 'file';
  12. return $protocols;
  13. }
  14.  
  15. add_filter( 'kses_allowed_protocols', 'rh_allow_file_protocol' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement