Plugin Directory

Changeset 2401545


Ignore:
Timestamp:
10/17/2020 03:43:42 PM (5 years ago)
Author:
nfmohit
Message:

Released version 1.0.3

Location:
bp-custom-menu
Files:
16 added
3 edited

Legend:

Unmodified
Added
Removed
  • bp-custom-menu/trunk/bp-custom-menu.php

    r2271772 r2401545  
    55 * Description: Create custom BuddyPress profile menu pages, gracefully.
    66 * Author: Nahid Ferdous Mohit
    7  * Version: 1.0.2
     7 * Version: 1.0.3
    88 * Author URI: https://nahid.dev
    99 * Text Domain: bp-custom-menu
  • bp-custom-menu/trunk/includes/metaboxes/extend-menu-page-options.php

    r2128286 r2401545  
    6161    if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
    6262
    63     if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'bp_custom_menu_meta_box_nonce' ) ) return;
     63    if( ! isset( $_POST[ 'meta_box_nonce' ] ) || !wp_verify_nonce( $_POST[ 'meta_box_nonce' ], 'bp_custom_menu_meta_box_nonce' ) ) return;
    6464
    65     if( !current_user_can( 'edit_post' ) ) return;
     65    if( ! current_user_can( 'edit_post', $post_id ) ) return;
    6666
    6767    /* Default Submenu */
    6868
    69     if( isset( $_POST['default_submenu'] ) ) {
     69    if( isset( $_POST[ 'default_submenu' ] ) ) {
    7070
    71         $value = sanitize_text_field( $_POST['default_submenu'] );
     71        $value = sanitize_text_field( $_POST[ 'default_submenu' ] );
    7272
    7373        $args = array(
    74             'post_parent' => $post->ID,
     74            'post_parent' => $post_id,
    7575            'post_type'   => 'bp_custom_menu_page',
    7676        );
  • bp-custom-menu/trunk/readme.txt

    r2271772 r2401545  
    44Tags: buddypress, profile, custom, menu, wordpress
    55Requires at least: 4.0
    6 Tested up to: 5.4
    7 Stable tag: 1.0.2
     6Tested up to: 5.5
     7Stable tag: 1.0.3
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    9595== Changelog ==
    9696
     97= 1.0.3 =
     98* Fixes minor PHP warnings and notices.
     99
    97100= 1.0.2 =
    98101* Fixes issue where the plugin was adding an additional dropdown to the Page Attributes metabox (props to [@honoluluman](https://profiles.wordpress.org/honoluluman/) for reporting it)
     
    106109== Upgrade Notice ==
    107110
     111= 1.0.3 =
     112* Fixes minor PHP warnings and notices.
     113
    108114= 1.0.2 =
    109115* Bug Fix: An additional dropdown was being added to the Page Attributes metabox
Note: See TracChangeset for help on using the changeset viewer.