Changeset 2032724
- Timestamp:
- 02/17/2019 04:51:10 PM (7 years ago)
- Location:
- members-list/trunk
- Files:
-
- 5 edited
-
core/fields.php (modified) (5 diffs)
-
core/search.php (modified) (4 diffs)
-
core/sort.php (modified) (5 diffs)
-
init.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
members-list/trunk/core/fields.php
r1386143 r2032724 60 60 global $getWP,$tern_wp_members_defaults; 61 61 $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults); 62 62 63 63 if(!isset($_REQUEST['_wpnonce']) or !wp_verify_nonce($_REQUEST['_wpnonce'],'tern_wp_members_nonce')) { 64 64 return false; 65 65 } 66 66 67 67 if(isset($_REQUEST['action']) or isset($_REQUEST['action2'])) { 68 $action = isset($_REQUEST['action2']) ? $_REQUEST['action2'] : $_REQUEST['action'];68 $action = (isset($_REQUEST['action2']) and !empty($_REQUEST['action2'])) ? $_REQUEST['action2'] : $_REQUEST['action']; 69 69 } 70 70 else { 71 71 return; 72 72 } 73 73 74 74 switch($action) { 75 75 76 76 case 'order' : 77 77 if(isset($_REQUEST['action']) and $_REQUEST['action'] == 'order') { … … 79 79 die('<div id="message" class="updated fade"><p>There was an error.</p></div>'); 80 80 } 81 81 82 82 $a = array(); 83 83 foreach((array)$_POST['field_names'] as $k => $v) { … … 90 90 break; 91 91 } 92 92 93 93 case 'field' : 94 94 95 95 if(!isset($_POST['name']) or empty($_POST['name']) or !isset($_POST['field']) or empty($_POST['field'])) { 96 96 $getWP->addError('Please fill out all the required fields.'); 97 97 return; 98 98 } 99 99 100 100 $n = $_POST['name']; 101 101 102 102 if(isset($o['fields']) and is_array($o['fields']) and in_array($_POST['field'],(array)$o['fields'])) { 103 103 $getWP->addError('This field has already been added.'); … … 109 109 $o = $getWP->getOption('tern_wp_members',$o,true); 110 110 break; 111 111 112 112 case 'delete' : 113 113 114 114 if(!isset($_REQUEST['fields']) or empty($_REQUEST['fields'])) { 115 115 $getWP->addError('There was an error.'); 116 116 return; 117 117 } 118 118 119 119 $b = array(); 120 120 foreach($o['fields'] as $k => $v) { … … 125 125 $o['fields'] = $b; 126 126 $o = $getWP->getOption('tern_wp_members',$o,true); 127 127 128 128 break; 129 129 130 130 default : 131 131 break; 132 132 133 133 } 134 134 135 135 } 136 136 // ******************************* // -
members-list/trunk/core/search.php
r1386143 r2032724 60 60 global $getWP,$tern_wp_members_defaults; 61 61 $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults); 62 62 63 63 if(!isset($_REQUEST['_wpnonce']) or !wp_verify_nonce($_REQUEST['_wpnonce'],'tern_wp_members_nonce')) { 64 64 return false; 65 65 } 66 66 67 67 if(isset($_REQUEST['action']) or isset($_REQUEST['action2'])) { 68 $action = isset($_REQUEST['action2']) ? $_REQUEST['action2'] : $_REQUEST['action'];68 $action = (isset($_REQUEST['action2']) and !empty($_REQUEST['action2'])) ? $_REQUEST['action2'] : $_REQUEST['action']; 69 69 } 70 70 else { 71 71 return; 72 72 } 73 73 74 74 switch($action) { 75 75 76 76 case 'order' : 77 77 if(isset($_REQUEST['action']) and $_REQUEST['action'] == 'order') { 78 78 79 79 if(!isset($_POST['field_names'])) { 80 80 die('<div id="message" class="updated fade"><p>There was an error.</p></div>'); 81 81 } 82 82 83 83 $a = array(); 84 84 foreach((array)$_POST['field_names'] as $k => $v) { … … 91 91 break; 92 92 } 93 93 94 94 case 'field' : 95 95 96 96 if(!isset($_POST['name']) or empty($_POST['name']) or !isset($_POST['field']) or empty($_POST['field'])) { 97 97 $getWP->addError('Please fill out all the required fields.'); 98 98 return; 99 99 } 100 100 101 101 $n = $_POST['name']; 102 102 103 103 if(isset($o['searches']) and is_array($o['searches']) and in_array($_POST['field'],(array)$o['searches'])) { 104 104 $getWP->addError('This field has already been added.'); … … 110 110 $o = $getWP->getOption('tern_wp_members',$o,true); 111 111 break; 112 112 113 113 case 'delete' : 114 114 115 115 if(!isset($_REQUEST['searches']) or empty($_REQUEST['searches'])) { 116 116 $getWP->addError('There was an error.'); 117 117 return; 118 118 } 119 119 120 120 $b = array(); 121 121 foreach($o['searches'] as $k => $v) { … … 126 126 $o['searches'] = $b; 127 127 $o = $getWP->getOption('tern_wp_members',$o,true); 128 128 129 129 break; 130 130 131 131 default : 132 132 break; 133 133 134 134 } 135 135 136 136 } 137 137 // ******************************* // -
members-list/trunk/core/sort.php
r1386143 r2032724 60 60 global $getWP,$tern_wp_members_defaults,$current_user,$wpdb; 61 61 $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults); 62 62 63 63 if(!isset($_REQUEST['_wpnonce']) or !wp_verify_nonce($_REQUEST['_wpnonce'],'tern_wp_members_nonce')) { 64 64 return false; 65 65 } 66 66 67 67 if(isset($_REQUEST['action']) or isset($_REQUEST['action2'])) { 68 $action = isset($_REQUEST['action2']) ? $_REQUEST['action2'] : $_REQUEST['action'];68 $action = (isset($_REQUEST['action2']) and !empty($_REQUEST['action2'])) ? $_REQUEST['action2'] : $_REQUEST['action']; 69 69 } 70 70 else { 71 71 return; 72 72 } 73 73 74 74 switch($action) { 75 75 76 76 case 'order' : 77 77 if(isset($_REQUEST['action']) and $_REQUEST['action'] == 'order') { … … 89 89 break; 90 90 } 91 91 92 92 case 'field' : 93 93 94 94 if(!isset($_POST['name']) or empty($_POST['name']) or !isset($_POST['field']) or empty($_POST['field'])) { 95 95 $getWP->addError('Please fill out all the required fields.'); 96 96 return; 97 97 } 98 98 99 99 $n = $_POST['name']; 100 100 101 101 if(isset($o['sorts']) and is_array($o['sorts']) and in_array($_POST['field'],(array)$o['sorts'])) { 102 102 $getWP->addError('This field has already been added.'); … … 108 108 $o = $getWP->getOption('tern_wp_members',$o,true); 109 109 break; 110 110 111 111 case 'delete' : 112 112 … … 124 124 $o['sorts'] = $b; 125 125 $o = $getWP->getOption('tern_wp_members',$o,true); 126 126 127 127 break; 128 128 129 129 default : 130 130 break; 131 131 132 132 } 133 133 134 134 } 135 135 // ******************************* // … … 141 141 global $getWP,$ternSel,$tern_wp_members_defaults,$WP_ml_user_db_fields; 142 142 $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults); 143 143 144 144 include(MEMBERS_LIST_DIR.'/view/sort.php'); 145 145 include(MEMBERS_LIST_DIR.'/view/sort-form.php'); -
members-list/trunk/init.php
r1966921 r2032724 5 5 Description: List your members with pagination and search capabilities. 6 6 Author: Matthew Praetzel 7 Version: 4.1.4 17 Version: 4.1.42 8 8 Author URI: http://www.ternstyle.us/ 9 9 Licensing : http://www.gnu.org/licenses/gpl-3.0.txt … … 23 23 // Added on January 29th 2009 24 24 // Version: 25 // 4.1.4 125 // 4.1.42 26 26 // Copyright: 27 27 // Copyright (c) 2010 Matthew Praetzel. -
members-list/trunk/readme.txt
r1966921 r2032724 5 5 Tags: members, members list, users, users list, directory, user directory, map, google map, geolocation 6 6 Requires at least: 2.7 7 Tested up to: 4.9.88 Stable tag: 4.1.4 17 Tested up to: 5.0.3 8 Stable tag: 4.1.42 9 9 10 10 With the Members List plugin you can easily list all your site's users with search, location radius search, sorting, paging and more. … … 94 94 == Changelog == 95 95 96 = Updates – 02.17.2019 – Version 4.1.42 = 97 98 * Bug Fix - Accounted for empty action values when ordering search, sort, and display fields. 99 96 100 = Updates – 11.01.2018 – Version 4.1.41 = 97 101
Note: See TracChangeset
for help on using the changeset viewer.