Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- bbpress-notify.php.orig 2012-10-18 14:59:58.000000000 +0100
- +++ bbpress-notify.php 2014-11-27 11:44:10.624155500 +0000
- @@ -25,9 +25,9 @@
- */
- /* Search for translations */
- -if (!load_plugin_textdomain('bbpress_notify','/wp-content/languages/'))
- +if (!load_plugin_textdomain('bbpress_notify',false,dirname( plugin_basename( __FILE__ ) ).'/../../languages/'))
- {
- - load_plugin_textdomain('bbpress_notify','/wp-content/plugins/bbpress-notify/languages/');
- + load_plugin_textdomain('bbpress_notify',false,dirname( plugin_basename( __FILE__ ) ).'/languages/');
- }
- @@ -318,12 +318,12 @@
- add_settings_section('bbpress_notify_options', __('E-mail Notifications', 'bbpress_notify'), '_settings_intro_text', 'bbpress');
- // Add form fields for all settings
- - add_settings_field('bbpress_notify_newtopic_recipients', __('Notifications about new topics are sent to', 'bbpress_notify'), _topic_recipients_inputfield, 'bbpress', 'bbpress_notify_options');
- - add_settings_field('bbpress_notify_newtopic_email_subject', __('E-mail subject', 'bbpress_notify'), _email_newtopic_subject_inputfield, 'bbpress', 'bbpress_notify_options');
- - 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');
- - add_settings_field('bbpress_notify_newreply_recipients', __('Notifications about replies are sent to', 'bbpress_notify'), _reply_recipients_inputfield, 'bbpress', 'bbpress_notify_options');
- - add_settings_field('bbpress_notify_newreply_email_subject', __('E-mail subject', 'bbpress_notify'), _email_newreply_subject_inputfield, 'bbpress', 'bbpress_notify_options');
- - 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');
- + add_settings_field('bbpress_notify_newtopic_recipients', __('Notifications about new topics are sent to', 'bbpress_notify'), '_topic_recipients_inputfield', 'bbpress', 'bbpress_notify_options');
- + add_settings_field('bbpress_notify_newtopic_email_subject', __('E-mail subject', 'bbpress_notify'), '_email_newtopic_subject_inputfield', 'bbpress', 'bbpress_notify_options');
- + 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');
- + add_settings_field('bbpress_notify_newreply_recipients', __('Notifications about replies are sent to', 'bbpress_notify'), '_reply_recipients_inputfield', 'bbpress', 'bbpress_notify_options');
- + add_settings_field('bbpress_notify_newreply_email_subject', __('E-mail subject', 'bbpress_notify'), '_email_newreply_subject_inputfield', 'bbpress', 'bbpress_notify_options');
- + 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');
- // Register the settings as part of the bbPress settings
- register_setting('bbpress', 'bbpress_notify_newtopic_recipients');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement