Skip to content

Commit

Permalink
Hidden options to allow admins to activate pingbacks and trackbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Abejaro committed May 4, 2017
1 parent f63ae6c commit 5fae2e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/wp-admin/options-discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,25 @@
<tr>
<th scope="row"><?php _e('Default article settings'); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings'); ?></span></legend>
<!--XTEC ************ AFEGIT - Disable retropings for all users except superadmin user
// 2017.04.11 @nacho-->
<?php
if (is_xtec_super_admin()){
?>
<!--************ FI-->
<label for="default_pingback_flag">
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
<?php _e('Attempt to notify any blogs linked to from the article'); ?></label>
<br />
<label for="default_ping_status">
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> />
<?php _e('Allow link notifications from other blogs (pingbacks and trackbacks) on new articles'); ?></label>
<!--XTEC ************ AFEGIT - Disable retropings for all users except superadmin user
// 2017.04.11 @nacho-->
<?php
}
?>
<!--************ FI-->
<br />
<label for="default_comment_status">
<input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> />
Expand Down

0 comments on commit 5fae2e3

Please sign in to comment.