Plugin Directory

Changeset 1403019


Ignore:
Timestamp:
04/23/2016 06:24:37 PM (10 years ago)
Author:
php-developer
Message:

The plugin generated 1 characters of unexpected output during activation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remove-all-comments/trunk/remove-all-comments.php

    r1403009 r1403019  
    1 <?php
    2 /**
    3 *Plugin Name: Remove All Comments
    4 *Plugin URI: http://wordpress.org/plugins/remove-all-comments/
    5 *Description: This plugin remove all comments from your current wordpress site.when Plugine is active its remove all comments for all user.you can also remove comments from specific post type.
    6 *Version: 2.0
    7 *Requires at least: 3.0.1
    8 *Tested up to: 4.5
    9 *Author: php-developer 
    10 *Author URI: https://profiles.wordpress.org/php-developer-1
    11 *Contributors: php-developer
    12 *Tags: comments, spam, delete comments,delete all comments, remove comments, no comments, spam free comments, comments less, remove all comments, auto remove comments
    13 *Network: false
    14 *License: GPLv2 or later
    15 *License URI: http://www.gnu.org/licenses/gpl-2.0.html
     1<?php 
     2/*
     3Plugin Name: Remove All Comments
     4Plugin URI: http://wordpress.org/plugins/remove-all-comments/
     5Description: This plugin remove all comments from your current wordpress site.when Plugine is active its remove all comments for all user.you can also remove comments from specific post type.
     6Version: 2.0
     7Requires at least: 3.0.1
     8Tested up to: 4.5
     9Author: php-developer 
     10Author URI: https://profiles.wordpress.org/php-developer-1
     11Contributors: php-developer
     12Tags: comments, spam, delete comments,delete all comments, remove comments, no comments, spam free comments, comments less, remove all comments, auto remove comments
     13Network: false
     14License: GPLv2 or later
     15License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1616*/
    17 
    1817// create custom plugin settings menu
    1918add_action('admin_menu', 'remove_all_comments');
    20 
    2119function remove_all_comments() {
    22 
    2320    //create new top-level menu
    2421    add_menu_page('Remove All Comments Plugin Settings', 'Remove All Comments ', 'administrator', __FILE__, 'admin_form_remove_all_comments',plugins_url('/images/icon.png', __FILE__));
    25 
    2622    //call register settings function
    2723    add_action( 'admin_init', 'remove_all_comments_mysettings' );
    2824}
    29 
    3025function remove_all_comments_mysettings() {
    3126    //register our settings
     
    3530}
    3631///////////////// function for display admin side settings
    37 function admin_form_remove_all_comments() {
    38    
    39 ?>
    40 <div class="wrap">
     32function admin_form_remove_all_comments() { ?> <div class="wrap">
    4133<h2><?php  _e('Remove All Comments Plugin Settings') ?> </h2>
    4234<?php
     
    132124</div>
    133125<?php }
    134 
    135126function removeCommentsFromSite($post_type=null)
    136127{
     
    147138        }                           
    148139    }
    149 }   
    150 
     140
    151141function removeAllCustomComments() {
    152142   
     
    182172    delete_option( 'remove_all_is_post' );
    183173    delete_option( 'remove_all_is_all' );   
    184 }
    185 
    186 
    187 
    188 function my_admin_notice_reovellAllComments(){
    189      
    190     //print_r();
     174}     
     175function my_admin_notice_reovellAllComments(){     
     176//print_r();
    191177    $msg = 'Removell All Comments Settings Saved.';
    192178    if (isset($_REQUEST['settings-updated']) && $_REQUEST['settings-updated'] ) {
     
    197183}
    198184add_action('admin_notices', 'my_admin_notice_reovellAllComments');
    199 
    200185function my_admin_note_reovellAllComments(){
    201186   
     
    204189       <p><strong>'.$msg1.'</strong></p>
    205190    </div>';
    206 }?> 
     191}?>
Note: See TracChangeset for help on using the changeset viewer.