Ultimate FAQ - Version 1.4.5

Version Description

  • Fixed a number of insufficient permission errors
Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 1.4.5
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.5

Functions/Register_EWD_UFAQ_Posts_Taxonomies.php CHANGED
@@ -23,7 +23,6 @@ function EWD_UFAQ_Create_Posttype() {
23
  'public' => true,
24
  'publicly_queryable' => true,
25
  'show_ui' => true,
26
- 'show_in_menu' => false,
27
  'query_var' => true,
28
  'has_archive' => true,
29
  'menu_icon' => null,
23
  'public' => true,
24
  'publicly_queryable' => true,
25
  'show_ui' => true,
 
26
  'query_var' => true,
27
  'has_archive' => true,
28
  'menu_icon' => null,
Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
- Version: 1.4.3
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -38,6 +38,8 @@ function EWD_UFAQ_Enable_Sub_Menu() {
38
 
39
  $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval");
40
 
 
 
41
  add_menu_page( 'Ultimate FAQs', 'FAQs', 'edit_posts', 'EWD-UFAQ-Options', 'EWD_UFAQ_Output_Pages', null, '49.1' );
42
  add_submenu_page('EWD-UFAQ-Options', 'FAQ Options', 'FAQ Settings', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Options', 'EWD_UFAQ_Output_Pages');
43
  if ($Admin_Approval == "Yes") {
@@ -61,7 +63,7 @@ function EWD_UFAQ_Enable_Sub_Menu() {
61
  $submenu['EWD-UFAQ-Options'][0][0] = "Dashboard";
62
  ksort($submenu['EWD-UFAQ-Options']);
63
  }
64
- add_action('admin_menu' , 'EWD_UFAQ_Enable_Sub_Menu');
65
 
66
  function EWD_UFAQ_Add_Header_Bar($Called = "No") {
67
  global $pagenow;
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
+ Version: 1.4.5
11
  */
12
 
13
  global $ewd_ufaq_message;
38
 
39
  $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval");
40
 
41
+ remove_menu_page('edit.php?post_type=ufaq');
42
+
43
  add_menu_page( 'Ultimate FAQs', 'FAQs', 'edit_posts', 'EWD-UFAQ-Options', 'EWD_UFAQ_Output_Pages', null, '49.1' );
44
  add_submenu_page('EWD-UFAQ-Options', 'FAQ Options', 'FAQ Settings', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Options', 'EWD_UFAQ_Output_Pages');
45
  if ($Admin_Approval == "Yes") {
63
  $submenu['EWD-UFAQ-Options'][0][0] = "Dashboard";
64
  ksort($submenu['EWD-UFAQ-Options']);
65
  }
66
+ add_action('admin_menu' , 'EWD_UFAQ_Enable_Sub_Menu', 1);
67
 
68
  function EWD_UFAQ_Add_Header_Bar($Called = "No") {
69
  global $pagenow;
html/ExportPage.php CHANGED
@@ -8,14 +8,14 @@
8
  <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use these features</div>
9
  <?php } ?>
10
 
11
- <form method="post" action="edit.php?post_type=ufaq&page=export&Action=EWD_UFAQ_ExportToPDF">
12
  <table class="form-table">
13
  </table>
14
 
15
 
16
  <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to PDF" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
17
 
18
- <form method="post" action="edit.php?post_type=ufaq&page=export&Action=EWD_UFAQ_ExportToSpreadsheet">
19
  <table class="form-table">
20
  </table>
21
 
8
  <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use these features</div>
9
  <?php } ?>
10
 
11
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToPDF">
12
  <table class="form-table">
13
  </table>
14
 
15
 
16
  <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to PDF" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
17
 
18
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToSpreadsheet">
19
  <table class="form-table">
20
  </table>
21
 
html/ImportPage.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <h4>Import FAQs from Plugin</h4>
12
  <p>Import all of your FAQ posts and categories from the plugin "Q and A FAQ and Knowledge Base for WordPress"</p>
13
- <form method="post" action="edit.php?post_type=ufaq&page=import_posts&Action=EWD_UFAQ_ImportFaqs">
14
  <table class="form-table">
15
  </table>
16
 
@@ -18,7 +18,7 @@
18
  <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Plugin FAQs" /></p></form>
19
 
20
  <h4>Import FAQs from a spreadsheet</h4>
21
- <form method="post" action="edit.php?post_type=ufaq&page=import_posts&Action=EWD_UFAQ_ImportFaqsFromSpreadsheet" enctype="multipart/form-data">
22
  <div class="form-field form-required">
23
  <label for="FAQs_Spreadsheet"><?php _e("Spreadhsheet Containing FAQs", 'EWD_UFAQ') ?></label><br />
24
  <input name="FAQs_Spreadsheet" id="FAQs_Spreadsheet" type="file" value=""/>
10
 
11
  <h4>Import FAQs from Plugin</h4>
12
  <p>Import all of your FAQ posts and categories from the plugin "Q and A FAQ and Knowledge Base for WordPress"</p>
13
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqs">
14
  <table class="form-table">
15
  </table>
16
 
18
  <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Plugin FAQs" /></p></form>
19
 
20
  <h4>Import FAQs from a spreadsheet</h4>
21
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqsFromSpreadsheet" enctype="multipart/form-data">
22
  <div class="form-field form-required">
23
  <label for="FAQs_Spreadsheet"><?php _e("Spreadhsheet Containing FAQs", 'EWD_UFAQ') ?></label><br />
24
  <input name="FAQs_Spreadsheet" id="FAQs_Spreadsheet" type="file" value=""/>
html/OptionsPage.php CHANGED
@@ -111,7 +111,7 @@
111
 
112
  <div class="ufaq-options-page-tabbed-content">
113
 
114
- <form method="post" action="edit.php?post_type=ufaq&page=options&Action=EWD_UFAQ_UpdateOptions">
115
  <div id='Basic' class='ufaq-option-set'>
116
  <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
117
  <table class="form-table">
111
 
112
  <div class="ufaq-options-page-tabbed-content">
113
 
114
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
115
  <div id='Basic' class='ufaq-option-set'>
116
  <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
117
  <table class="form-table">
readme.txt CHANGED
@@ -199,6 +199,12 @@ Video 3 - FAQs Ordering
199
  9. All answers displayed in the 'list' FAQ mode
200
 
201
  == Changelog ==
 
 
 
 
 
 
202
  = 1.4.3 =
203
  - Added in a new set of tutorials for new users
204
  - Centralized the plugin dashboard and menu
@@ -376,3 +382,5 @@ Video 3 - FAQs Ordering
376
 
377
 
378
 
 
 
199
  9. All answers displayed in the 'list' FAQ mode
200
 
201
  == Changelog ==
202
+ = 1.4.5 =
203
+ - Fixed a number of insufficient permission errors
204
+
205
+ = 1.4.4 =
206
+ - Added back in the link to edit an FAQ when you're on the single FAQ page
207
+
208
  = 1.4.3 =
209
  - Added in a new set of tutorials for new users
210
  - Centralized the plugin dashboard and menu
382
 
383
 
384
 
385
+
386
+