Advertisement
daymobrew

Change Uploaded File Permissions: Fix deprecated parameters

Jul 8th, 2015
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.19 KB | None | 0 0
  1. --- change-uploaded-file-permissions.orig.php   2015-06-19 22:03:10.000000000 +0100
  2. +++ change-uploaded-file-permissions.php    2015-07-08 07:32:14.000000000 +0100
  3. @@ -56,7 +56,7 @@
  4.     {
  5.         //load language file
  6.         if (function_exists('load_plugin_textdomain'))
  7. -           load_plugin_textdomain('change-uploaded-file-permissions', PLUGINDIR.'/change-uploaded-file-permissions');
  8. +           load_plugin_textdomain('change-uploaded-file-permissions', false, dirname( plugin_basename( __FILE__ ) ).'/change-uploaded-file-permissions');
  9.    
  10.         //add wp actions
  11.         add_action('deactivate_change-uploaded-file-permissions/change-uploaded-file-permissions.php', array(&$this, 'deactivate'));
  12. @@ -161,7 +161,7 @@
  13.    
  14.     function setAdminPage()
  15.     {
  16. -       add_options_page(__('Upload file permissions','change-uploaded-file-permissions'), __('Upload file permissions','change-uploaded-file-permissions'), 8, 'uploadedfilepermissions', array(&$this, 'setOptionPage'));
  17. +       add_options_page(__('Upload file permissions','change-uploaded-file-permissions'), __('Upload file permissions','change-uploaded-file-permissions'), 'upload_files', 'uploadedfilepermissions', array(&$this, 'setOptionPage'));   
  18.     }
  19.    
  20.     function setOptionPage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement