Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:37-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13024 2011-12-20T09:49:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=57734#p57734 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:49 am


]]>
2011-12-07T01:02:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=55416#p55416 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: December 7, 2011, 1:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:02 am


]]>
2011-11-05T19:25:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=51790#p51790 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: November 5, 2011, 8:25 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:25 pm


]]>
2011-10-29T20:34:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=49885#p49885 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: October 29, 2011, 9:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:34 pm


]]>
2011-10-17T15:38:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=47679#p47679 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: October 17, 2011, 1:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:38 pm


]]>
2011-10-11T14:34:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=46079#p46079 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: October 11, 2011, 12:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:34 pm


]]>
2011-10-03T15:46:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=44210#p44210 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: October 3, 2011, 1:47 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:46 pm


]]>
2011-10-03T03:40:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=42917#p42917 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: October 3, 2011, 1:40 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:40 am


]]>
2011-09-27T05:25:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=41163#p41163 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: September 27, 2011, 3:25 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:25 am


]]>
2011-09-26T21:02:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=39919#p39919 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:02 pm


]]>
2011-09-17T16:19:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=38063#p38063 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: September 17, 2011, 2:19 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:19 pm


]]>
2011-09-14T01:27:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=36644#p36644 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: September 13, 2011, 11:27 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:27 am


]]>
2011-09-13T12:02:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=35372#p35372 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: September 13, 2011, 10:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:02 pm


]]>
2011-08-15T14:11:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=31479#p31479 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: August 15, 2011, 3:12 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\meta-box-saves.inc.php ?php /** * Meta box saves. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Meta_Boxes * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_meta_box_saves" ) ) { /** * Meta box saves. * * @package s2Member\Meta_Boxes * @since 3.5 */ class c_ws_plugin__s2member_meta_box_saves { /** * Saves data entered into meta boxes on Post/Page editing stations. * * @package s2Member\Meta_Boxes * @since 3.5 * * @attaches-to: ``add_action("save_post");`` * * @param int|str $post_id Numeric Post/Page ID. * @return null */ public static function save_meta_boxes ( $post_id = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( $post_id && ! empty ( $_POST [ "ws_plugin__s2member_security_meta_box_save" ] ) && ( $nonce = $_POST [ "ws_plugin__s2member_security_meta_box_save" ] ) && wp_verify_nonce ( $nonce , "ws-plugin--s2member-security-meta-box-save" ) ) if ( ! empty ( $_POST [ "ws_plugin__s2member_security_meta_box_save_id" ] ) && $post_id == $_POST [ "ws_plugin__s2member_security_meta_box_save_id" ] && ! empty ( $_POST [ "post_type" ] ) ) /* We do NOT process historical revisions here; because it causes confusion in the General Options panel for s2Member. */ { $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ; /* Clean and create a local copy. */ /**/ if ( ( $_p [ "post_type" ] === "page" && current_user_can ( "edit_page" , $post_id ) ) || current_user_can ( "edit_post" , $post_id ) ) { if ( $_p [ "post_type" ] === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_level" ] ) ) /* Just needs to be set. CAN be empty. */ { for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $pages [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_pages" ] ) ) ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) if ( ( $i = array_search ( $page_id , $pages [ $n ] ) ) !== false ) unset ( $pages [ $n ] [ $i ] ) ; /**/ if ( isset ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) && is_array ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) ) if ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] !== array ( "all" ) ) array_push ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] , $page_id ) ; /**/ for ( $n = 0 , $new_options = array ( ) ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $new_options = array_merge ( $new_options , array ( "ws_plugin__s2member_level" . $n . "_pages" = trim ( implode ( "," , $pages [ $n ] ) ) ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ c_ws_plugin__s2member_menu_pages:: update_all_options ( $new_options , true , false , array ( "page-conflict-warnings" ) , true ) ; } } /**/ else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_level" ] ) ) /* Just needs to be set. CAN be empty. */ { for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $posts [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_posts" ] ) ) ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) if ( ( $i = array_search ( $post_id , $posts [ $n ] ) ) !== false ) unset ( $posts [ $n ] [ $i ] ) ; /**/ if ( isset ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) && is_array ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) ) if ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] !== array ( "all" ) ) array_push ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] , $post_id ) ; /**/ for ( $n = 0 , $new_options = array ( ) ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $new_options = array_merge ( $new_options , array ( "ws_plugin__s2member_level" . $n . "_posts" = trim ( implode ( "," , $posts [ $n ] ) ) ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ c_ws_plugin__s2member_menu_pages:: update_all_options ( $new_options , true , false , array ( "page-conflict-warnings" ) , true ) ; } } /**/ if ( $_p [ "post_type" ] === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) ) /* Just needs to be set. CAN be empty. */ { $ccaps_req = trim ( strtolower ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) , "," ) ; $ccaps_req = trim ( preg_replace ( "/[^a-z_0-9,]/" , "" , $ccaps_req ) , "," ) ; /* Now clean up. */ /**/ if ( strlen ( $ccaps_req ) && ( $s2member_ccaps_req = preg_split ( "/[\r \n \t\s;,]+/" , $ccaps_req ) ) ) update_post_meta ( $page_id , "s2member_ccaps_req" , $s2member_ccaps_req ) ; /**/ else /* Otherwise, the array is empty. Safe to delete. */ delete_post_meta ( $page_id , "s2member_ccaps_req" ) ; } } /**/ else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) ) /* Just needs to be set. It CAN be empty. */ { $ccaps_req = trim ( strtolower ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) , "," ) ; $ccaps_req = trim ( preg_replace ( "/[^a-z_0-9,]/" , "" , $ccaps_req ) , "," ) ; /* Now clean up. */ /**/ if ( strlen ( $ccaps_req ) && ( $s2member_ccaps_req = preg_split ( "/[\r \n \t\s;,]+/" , $ccaps_req ) ) ) update_post_meta ( $post_id , "s2member_ccaps_req" , $s2member_ccaps_req ) ; /**/ else /* Otherwise, the array is empty. Safe to delete. */ delete_post_meta ( $post_id , "s2member_ccaps_req" ) ; } } } } /**/ do_action ( "ws_plugin__s2member_after_save_meta_boxes" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\meta-box-saves.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:11 pm


]]>
2011-07-11T17:28:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=27687#p27687 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: July 11, 2011, 6:28 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\meta-box-saves.inc.php ?php /** * Meta box saves. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Meta_Boxes * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_meta_box_saves" ) ) { /** * Meta box saves. * * @package s2Member\Meta_Boxes * @since 3.5 */ class c_ws_plugin__s2member_meta_box_saves { /** * Saves data entered into meta boxes on Post/Page editing stations. * * @package s2Member\Meta_Boxes * @since 3.5 * * @attaches-to: ``add_action("save_post");`` * * @param int|str $post_id Numeric Post/Page ID. * @return null */ public static function save_meta_boxes ( $post_id = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( $post_id && ! empty ( $_POST [ "ws_plugin__s2member_security_meta_box_save" ] ) && ( $nonce = $_POST [ "ws_plugin__s2member_security_meta_box_save" ] ) && wp_verify_nonce ( $nonce , "ws-plugin--s2member-security-meta-box-save" ) ) if ( ! empty ( $_POST [ "ws_plugin__s2member_security_meta_box_save_id" ] ) && $post_id == $_POST [ "ws_plugin__s2member_security_meta_box_save_id" ] && ! empty ( $_POST [ "post_type" ] ) ) /* We do NOT process historical revisions here; because it causes confusion in the General Options panel for s2Member. */ { $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ; /* Clean and create a local copy. */ /**/ if ( ( $_p [ "post_type" ] === "page" && current_user_can ( "edit_page" , $post_id ) ) || current_user_can ( "edit_post" , $post_id ) ) { if ( $_p [ "post_type" ] === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_level" ] ) ) /* Just needs to be set. CAN be empty. */ { for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $pages [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_pages" ] ) ) ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) if ( ( $i = array_search ( $page_id , $pages [ $n ] ) ) !== false ) unset ( $pages [ $n ] [ $i ] ) ; /**/ if ( isset ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) && is_array ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) ) if ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] !== array ( "all" ) ) array_push ( $pages [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] , $page_id ) ; /**/ for ( $n = 0 , $new_options = array ( ) ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $new_options = array_merge ( $new_options , array ( "ws_plugin__s2member_level" . $n . "_pages" = trim ( implode ( "," , $pages [ $n ] ) ) ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ c_ws_plugin__s2member_menu_pages:: update_all_options ( $new_options , true , false , array ( "page-conflict-warnings" ) , true ) ; } } /**/ else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_level" ] ) ) /* Just needs to be set. CAN be empty. */ { for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $posts [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_posts" ] ) ) ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) if ( ( $i = array_search ( $post_id , $posts [ $n ] ) ) !== false ) unset ( $posts [ $n ] [ $i ] ) ; /**/ if ( isset ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) && is_array ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] ) ) if ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] !== array ( "all" ) ) array_push ( $posts [ $_p [ "ws_plugin__s2member_security_meta_box_level" ] ] , $post_id ) ; /**/ for ( $n = 0 , $new_options = array ( ) ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $new_options = array_merge ( $new_options , array ( "ws_plugin__s2member_level" . $n . "_posts" = trim ( implode ( "," , $posts [ $n ] ) ) ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_save_meta_boxes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ c_ws_plugin__s2member_menu_pages:: update_all_options ( $new_options , true , false , array ( "page-conflict-warnings" ) , true ) ; } } /**/ if ( $_p [ "post_type" ] === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) ) /* Just needs to be set. CAN be empty. */ { $ccaps_req = trim ( strtolower ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) , "," ) ; $ccaps_req = trim ( preg_replace ( "/[^a-z_0-9,]/" , "" , $ccaps_req ) , "," ) ; /* Now clean up. */ /**/ if ( strlen ( $ccaps_req ) && ( $s2member_ccaps_req = preg_split ( "/[\r \n \t\s;,]+/" , $ccaps_req ) ) ) update_post_meta ( $page_id , "s2member_ccaps_req" , $s2member_ccaps_req ) ; /**/ else /* Otherwise, the array is empty. Safe to delete. */ delete_post_meta ( $page_id , "s2member_ccaps_req" ) ; } } /**/ else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( isset ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) ) /* Just needs to be set. It CAN be empty. */ { $ccaps_req = trim ( strtolower ( $_p [ "ws_plugin__s2member_security_meta_box_ccaps" ] ) , "," ) ; $ccaps_req = trim ( preg_replace ( "/[^a-z_0-9,]/" , "" , $ccaps_req ) , "," ) ; /* Now clean up. */ /**/ if ( strlen ( $ccaps_req ) && ( $s2member_ccaps_req = preg_split ( "/[\r \n \t\s;,]+/" , $ccaps_req ) ) ) update_post_meta ( $post_id , "s2member_ccaps_req" , $s2member_ccaps_req ) ; /**/ else /* Otherwise, the array is empty. Safe to delete. */ delete_post_meta ( $post_id , "s2member_ccaps_req" ) ; } } } } /**/ do_action ( "ws_plugin__s2member_after_save_meta_boxes" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\meta-box-saves.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:28 pm


]]>
2011-07-09T06:08:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13024&p=25319#p25319 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\meta-box-saves.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:08 am


]]>