Plugin Directory

Changeset 3229860


Ignore:
Timestamp:
01/27/2025 06:16:47 PM (12 months ago)
Author:
ashanjay
Message:

FIXED: entry submissions not working
UPDATED: Snackbar styles

Location:
lifepress
Files:
68 added
6 edited

Legend:

Unmodified
Added
Removed
  • lifepress/trunk/README.txt

    r3209433 r3229860  
    55Requires at least: 6.0
    66Tested up to: 6.7.1
    7 Stable tag: 2.1.1
     7Stable tag: 2.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454
    5555As we have received several requests to improve the lifepress plugin for greater application, we are developing the Lifepress Pro, plugin as an extension to LifePress that will bring greater data metric information for calendar entries. We are also hoping in future iterations to implement data visualization for weekly and monthly data aggregates and ability to set goals and calculate progress towards them.
    56 Update (Aug 2024) We are hoping to get this Pro version out as we release version 2.1 and continue to put time into LifePress development.
    5756
    5857
     
    6564
    6665== Changelog ==
     66= 2.1.2 (2025-1-27) =
     67FIXED: entry submissions not working
     68UPDATED: Snackbar styles
     69
    6770= 2.1.1 (2024-12-17) =
    6871FIXED: first ever post not populating general tag
  • lifepress/trunk/assets/global.css

    r3209433 r3229860  
    826826        background-color: #4a4a4a;
    827827        color: #fff;
    828         padding: 7px 20px;
    829         border-radius: 10px;
     828        border-radius: 4px;
     829        padding: 12px 20px;
     830        font-size: 13px;
     831        backdrop-filter: blur(16px) saturate(180%);
     832        box-shadow: 0 1px 2px #0000000d, 0 2px 3px #0000000a, 0 6px 6px #00000008, 0 8px 8px #00000005;
    830833        opacity: 0;
    831834        transform: translateY(60px );
  • lifepress/trunk/assets/script.js

    r3209433 r3229860  
    11/**
    22 * JS
    3  * @version 2.1
     3 * @version 2.1.2
    44 */
    55jQuery(document).ready(function($){
     
    649649                    AJ['action'] = 'lp_delete_item';
    650650                    AJ['d'] = d;
    651                     AJ['nonce'] = lp_ajax.lp_nonce;
     651                    AJ['lp_nonce'] = lp_ajax.lp_nonce;
    652652
    653653                    $.ajax({
     
    11961196
    11971197        FN.append( notice );
     1198
     1199
    11981200        setTimeout(function(){
    11991201            FN.find('span.'+ num).addClass('show');
  • lifepress/trunk/includes/class-ajax.php

    r3209433 r3229860  
    221221
    222222    // GENRAL FORM SUBMISSIONS
    223         function form_submit(){
     223        public function form_submit(){
     224
    224225
    225226            // verify nonce
    226             if( empty($_POST['nonce']) || !wp_verify_nonce( wp_unslash( $_POST['nonce'] ), 'lp_nonce_key') ){
     227            if( empty($_POST['lp_nonce']) || !wp_verify_nonce( wp_unslash( $_POST['lp_nonce'] ), 'lp_nonce_key') ){
    227228                wp_die( esc_html__( 'Action failed. Please refresh the page and retry.','lp') );
    228229            }
     
    425426
    426427    // Save image as featured image to post
    427         function save_featured_image($postid, $var_name){
     428        public function save_featured_image($postid, $var_name){
    428429            if ($_FILES[$var_name]['error'] !== UPLOAD_ERR_OK) __return_false();
    429430
     
    442443
    443444    // delete item
    444         function delete_item(){
     445        public function delete_item(){
    445446
    446447            // verify nonce
    447             if( empty($_POST['nonce']) || !wp_verify_nonce( wp_unslash( $_POST['nonce'] ), 'lp_nonce_key') ){
     448            if( empty($_POST['lp_nonce']) || !wp_verify_nonce( wp_unslash( $_POST['lp_nonce'] ), 'lp_nonce_key') ){
    448449                wp_die( esc_html__( 'Action failed. Please refresh the page and retry.','lp') );
    449450            }
  • lifepress/trunk/lifepress.php

    r3209433 r3229860  
    55 * Description: You are the creator of events in your life. Record and track progress in your life.
    66 * Author: Ashan Jay
    7  * Version: 2.1.1
     7 * Version: 2.1.2
    88 * Requires at least: 6.0
    99 * Tested up to: 6.7.1
     
    2020class LIFEPRESS{
    2121   
    22     public $version='2.1.1
     22    public $version='2.1.2
    2323    ';
    2424    public $name = 'LifePress';
  • lifepress/trunk/templates/class-template_parts.php

    r3209433 r3229860  
    22/**
    33 * Template Parts
    4  * @version 2.1
     4 * @version 2.1.2
    55 */
    66
     
    285285                    <input type="hidden" name='submit_type' value='submit'/>
    286286                    <input type="hidden" name='tag_id' value='{{item_id}}'/>
     287                    <?php wp_nonce_field( 'lp_nonce_key', 'lp_nonce' ); ?>
    287288
    288289                    <p class='padb10 fwb ttu fz16'><?php _e('Update Entry Tag','lp');?></p>
     
    331332                    <input type="hidden" name='submit_type' value='submit'/>
    332333                    <input type="hidden" name='entry_id' value='{{item_id}}'/>
     334                    <?php wp_nonce_field( 'lp_nonce_key', 'lp_nonce' ); ?>
    333335                   
    334336                    <p class='padb30 lpfw800 lpfont1 ttu lpfz30'><?php _e('Add New Entry','lp');?></p>
Note: See TracChangeset for help on using the changeset viewer.