Advertisement
daymobrew

bbpress-notify fix debug messages

Nov 27th, 2014
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.49 KB | None | 0 0
  1. --- bbpress-notify.php.orig 2012-10-18 14:59:58.000000000 +0100
  2. +++ bbpress-notify.php  2014-11-27 11:44:10.624155500 +0000
  3. @@ -25,9 +25,9 @@
  4.  */
  5.  
  6.  /* Search for translations */
  7. -if (!load_plugin_textdomain('bbpress_notify','/wp-content/languages/'))
  8. +if (!load_plugin_textdomain('bbpress_notify',false,dirname( plugin_basename( __FILE__ ) ).'/../../languages/'))
  9.  {
  10. -   load_plugin_textdomain('bbpress_notify','/wp-content/plugins/bbpress-notify/languages/');
  11. +   load_plugin_textdomain('bbpress_notify',false,dirname( plugin_basename( __FILE__ ) ).'/languages/');
  12.  }
  13.  
  14.  
  15. @@ -318,12 +318,12 @@
  16.     add_settings_section('bbpress_notify_options', __('E-mail Notifications', 'bbpress_notify'), '_settings_intro_text', 'bbpress');
  17.  
  18.     // Add form fields for all settings
  19. -   add_settings_field('bbpress_notify_newtopic_recipients', __('Notifications about new topics are sent to', 'bbpress_notify'), _topic_recipients_inputfield, 'bbpress', 'bbpress_notify_options');
  20. -   add_settings_field('bbpress_notify_newtopic_email_subject', __('E-mail subject', 'bbpress_notify'), _email_newtopic_subject_inputfield, 'bbpress', 'bbpress_notify_options');
  21. -   add_settings_field('bbpress_notify_newtopic_email_body', __('E-mail body (template tags: [blogname], [topic-title], [topic-content], [topic-excerpt], [topic-author], [topic-url], [topic-replyurl])', 'bbpress_notify'), _email_newtopic_body_inputfield, 'bbpress', 'bbpress_notify_options');
  22. -   add_settings_field('bbpress_notify_newreply_recipients', __('Notifications about replies are sent to', 'bbpress_notify'), _reply_recipients_inputfield, 'bbpress', 'bbpress_notify_options');
  23. -   add_settings_field('bbpress_notify_newreply_email_subject', __('E-mail subject', 'bbpress_notify'), _email_newreply_subject_inputfield, 'bbpress', 'bbpress_notify_options');
  24. -   add_settings_field('bbpress_notify_newreply_email_body', __('E-mail body (template tags: [blogname], [reply-title], [reply-content], [reply-excerpt], [reply-author], [reply-url], [reply-replyurl])', 'bbpress_notify'), _email_newreply_body_inputfield, 'bbpress', 'bbpress_notify_options');
  25. +   add_settings_field('bbpress_notify_newtopic_recipients', __('Notifications about new topics are sent to', 'bbpress_notify'), '_topic_recipients_inputfield', 'bbpress', 'bbpress_notify_options');
  26. +   add_settings_field('bbpress_notify_newtopic_email_subject', __('E-mail subject', 'bbpress_notify'), '_email_newtopic_subject_inputfield', 'bbpress', 'bbpress_notify_options');
  27. +   add_settings_field('bbpress_notify_newtopic_email_body', __('E-mail body (template tags: [blogname], [topic-title], [topic-content], [topic-excerpt], [topic-author], [topic-url], [topic-replyurl])', 'bbpress_notify'), '_email_newtopic_body_inputfield', 'bbpress', 'bbpress_notify_options');
  28. +   add_settings_field('bbpress_notify_newreply_recipients', __('Notifications about replies are sent to', 'bbpress_notify'), '_reply_recipients_inputfield', 'bbpress', 'bbpress_notify_options');
  29. +   add_settings_field('bbpress_notify_newreply_email_subject', __('E-mail subject', 'bbpress_notify'), '_email_newreply_subject_inputfield', 'bbpress', 'bbpress_notify_options');
  30. +   add_settings_field('bbpress_notify_newreply_email_body', __('E-mail body (template tags: [blogname], [reply-title], [reply-content], [reply-excerpt], [reply-author], [reply-url], [reply-replyurl])', 'bbpress_notify'), '_email_newreply_body_inputfield', 'bbpress', 'bbpress_notify_options');
  31.  
  32.     // Register the settings as part of the bbPress settings
  33.     register_setting('bbpress', 'bbpress_notify_newtopic_recipients');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement