Skip to content

Commit

Permalink
save metaboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasashi committed Jun 29, 2023
1 parent c3574f5 commit ebc2ba6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion includes/lib/class-user-session-synchronizer-admin-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function display_meta_box_field ( $field = array(), $post ) {
*/
public function save_meta_boxes ( $post_id = 0 ) {

if ( ! $post_id ) return;
if( !$post_id || ( isset($_POST['_inline_edit']) && wp_verify_nonce($_POST['_inline_edit'],'inlineeditnonce') ) ) return;

$post_type = get_post_type( $post_id );

Expand Down
10 changes: 5 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== User Session Synchronizer ===
Contributors: rafasashi
Donate link: https://code.recuweb.com
Donate link: https://code.recuweb.com/get/user-session-synchronizer/
Tags: user, session, synchronizer, cookie
Requires at least: 4.3
Tested up to: 4.9.5
Stable tag: 1.3.8
License: GPLv3
License URI: https://code.recuweb.com/product-licenses/
Tested up to: 6.2
Stable tag: 1.4.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Keep the user logged in from one wordpress to another by synchronizing user data and cookie session

Expand Down
17 changes: 7 additions & 10 deletions user-session-synchronizer.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/*
* Plugin Name: User Session Synchronizer
* Version: 1.3.8
* Plugin URI: https://github.com/rafasashi/user-session-synchronizer/archive/master.zip
* Version: 1.4.0
* Plugin URI: https://code.recuweb.com/get/user-session-synchronizer/
* Description: Keep the user logged in from one wordpress to another by synchronizing user data and cookie session.
* Author: Rafasashi
* Author URI: https://www.linkedin.com/in/raphaeldartigues
* Author URI: https://code.recuweb.com
* Requires at least: 4.3
* Tested up to: 4.7
* Tested up to: 6.2
*
* Text Domain: user-session-synchronizer
* Domain Path: /lang/
Expand All @@ -29,17 +29,14 @@
* Add donation link
*
*/

add_filter('plugin_row_meta', function ( $links, $file ){

function user_session_synchronizer_row_meta( $links, $file ){
if ( strpos( $file, basename( __FILE__ ) ) !== false ) {
$new_links = array( '<a href="https://www.paypal.me/recuweb" target="_blank">' . __( 'Donate', 'cleanlogin' ) . '</a>' );
$links = array_merge( $links, $new_links );
}

return $links;
}, 10, 2);
}
add_filter('plugin_row_meta', 'user_session_synchronizer_row_meta', 10, 2);

// Load plugin class files
require_once( 'includes/class-user-session-synchronizer.php' );
Expand Down

0 comments on commit ebc2ba6

Please sign in to comment.