]> git.nbdom.net Git - nb.git/commitdiff
Bed
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 2 May 2016 23:28:35 +0000 (00:28 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 2 May 2016 23:28:35 +0000 (00:28 +0100)
lib/php/db/wp.php

index 8cddc62ae4378d0c1064cc2cbf7044c60b4e5c50..005662f4506622977c7246b80a83ece19e4efa77 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+if (!class_exists('WP_List_Table')) {
+       echo "Hi there! I'm just a plugin, not much I can do when called directly.\n";
+       exit;
+}
 class html_table extends WP_List_Table {
 
   public $_table;
@@ -46,6 +50,7 @@ class html_table extends WP_List_Table {
 /*
 */
 
+           .get_submit_button( __( 'Search' ), 'button', '', false, array('id' => 'search-submit') )
       .'<a class="page-title-action" href="/wp-admin/post-new.php?post_type=page&amp;action=edit&amp;table='.($this->_table->db()->p('table')).'">Add New</a>'
     .'</h1>';
     echo '<p id="search" class="search-box">';
@@ -70,7 +75,6 @@ class html_table extends WP_List_Table {
       #echo '<div>';
     }
 
-         submit_button( __( 'Search' ), 'button', '', false, array('id' => 'search-submit') );
     echo '</p>';
     echo '</form>';