/**
  * @global string $status
  * @param string $which
  * @return null
  */
 public function bulk_actions($which = '')
 {
     global $status;
     if (in_array($status, array('mustuse', 'dropins'))) {
         return;
     }
     parent::bulk_actions($which);
 }
 function bulk_actions($which = false)
 {
     global $status;
     if (func_num_args()) {
         parent::bulk_actions($which);
     } else {
         parent::bulk_actions();
     }
 }
 function bulk_actions($which)
 {
     global $status;
     parent::bulk_actions($which);
 }
Beispiel #4
0
    /**
     * Displays the bulk actions.
     *
     * @param string $which
     */
    function bulk_actions($which = '')
    {
        parent::bulk_actions($which);
        $filter = $this->filter;
        if (in_array($filter, array('trash', 'spam'))) {
            $message = $filter == 'trash' ? esc_html__("WARNING! This operation cannot be undone. Empty trash? 'Ok' to empty trash. 'Cancel' to abort.", 'gravityforms') : esc_html__("WARNING! This operation cannot be undone. Permanently delete all spam? 'Ok' to delete. 'Cancel' to abort.", 'gravityforms');
            $button_label = $filter == 'trash' ? __('Empty Trash', 'gravityforms') : __('Delete All Spam', 'gravityforms');
            ?>
			<input type="submit" class="button" name="button_delete_permanently"
			       value="<?php 
            echo esc_attr($button_label);
            ?>
"
			       onclick="return confirm('<?php 
            echo esc_js($message);
            ?>
');"/>
			<?php 
        }
    }