function dsq_warning() { if (!get_option('disqus_forum_url') && !isset($_POST['forum_url']) && $_GET['page'] != 'disqus') { dsq_manage_dialog('You must <a href="edit-comments.php?page=disqus">configure the plugin</a> to enable Disqus Comments.', true); } if (dsq_legacy_mode() && $_GET['page'] == 'disqus') { dsq_manage_dialog('Disqus Comments has not yet been configured. (<a href="edit-comments.php?page=disqus">Click here to configure</a>)'); } }
<td> <input type="text" name="disqus_api_key" value="<?php echo $dsq_api_key; ?> " tabindex="2"> <br /> This is set for you when going through the installation steps. Without it, the plugin runs in <a href="http://disqus.com/docs/wordpress/#legacy-mode" target="_blank">legacy mode</a>. </td> </tr> <tr> <th scope="row" valign="top">Use DISQUS on</th> <td> <select name="disqus_replace" tabindex="3" class="disqus-replace"> <?php if (dsq_legacy_mode()) { ?> <option value="empty" <?php if ('empty' == $dsq_replace) { echo 'selected'; } ?> >Only future blog posts and existing posts without WordPress comments.</option> <?php } ?> <option value="all" <?php if ('all' == $dsq_replace) { echo 'selected'; } ?>
function dsq_warning() { global $wp_version; if (!get_option('disqus_forum_url') && !isset($_POST['forum_url']) && $_GET['page'] != 'disqus') { dsq_manage_dialog('You must <a href="edit-comments.php?page=disqus">configure the plugin</a> to enable the DISQUS comment system.', true); } if (dsq_legacy_mode() && $_GET['page'] == 'disqus') { dsq_manage_dialog('DISQUS is running in legacy mode. (<a href="edit-comments.php?page=disqus">Click here to configure</a>)'); } }