Changeset 2401545
- Timestamp:
- 10/17/2020 03:43:42 PM (5 years ago)
- Location:
- bp-custom-menu
- Files:
-
- 16 added
- 3 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/LICENSE (added)
-
tags/1.0.3/bp-custom-menu.php (added)
-
tags/1.0.3/includes (added)
-
tags/1.0.3/includes/bp-custom-menu-page.php (added)
-
tags/1.0.3/includes/core.php (added)
-
tags/1.0.3/includes/index.php (added)
-
tags/1.0.3/includes/loader.php (added)
-
tags/1.0.3/includes/metaboxes (added)
-
tags/1.0.3/includes/metaboxes/extend-menu-page-options.php (added)
-
tags/1.0.3/includes/nav-adder.php (added)
-
tags/1.0.3/includes/parent-menu-page.php (added)
-
tags/1.0.3/includes/plugin-functions.php (added)
-
tags/1.0.3/includes/sub-menu-page.php (added)
-
tags/1.0.3/index.php (added)
-
tags/1.0.3/readme.txt (added)
-
trunk/bp-custom-menu.php (modified) (1 diff)
-
trunk/includes/metaboxes/extend-menu-page-options.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-custom-menu/trunk/bp-custom-menu.php
r2271772 r2401545 5 5 * Description: Create custom BuddyPress profile menu pages, gracefully. 6 6 * Author: Nahid Ferdous Mohit 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author URI: https://nahid.dev 9 9 * Text Domain: bp-custom-menu -
bp-custom-menu/trunk/includes/metaboxes/extend-menu-page-options.php
r2128286 r2401545 61 61 if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; 62 62 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; 64 64 65 if( ! current_user_can( 'edit_post') ) return;65 if( ! current_user_can( 'edit_post', $post_id ) ) return; 66 66 67 67 /* Default Submenu */ 68 68 69 if( isset( $_POST[ 'default_submenu'] ) ) {69 if( isset( $_POST[ 'default_submenu' ] ) ) { 70 70 71 $value = sanitize_text_field( $_POST[ 'default_submenu'] );71 $value = sanitize_text_field( $_POST[ 'default_submenu' ] ); 72 72 73 73 $args = array( 74 'post_parent' => $post ->ID,74 'post_parent' => $post_id, 75 75 'post_type' => 'bp_custom_menu_page', 76 76 ); -
bp-custom-menu/trunk/readme.txt
r2271772 r2401545 4 4 Tags: buddypress, profile, custom, menu, wordpress 5 5 Requires at least: 4.0 6 Tested up to: 5. 47 Stable tag: 1.0. 26 Tested up to: 5.5 7 Stable tag: 1.0.3 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 95 95 == Changelog == 96 96 97 = 1.0.3 = 98 * Fixes minor PHP warnings and notices. 99 97 100 = 1.0.2 = 98 101 * 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) … … 106 109 == Upgrade Notice == 107 110 111 = 1.0.3 = 112 * Fixes minor PHP warnings and notices. 113 108 114 = 1.0.2 = 109 115 * Bug Fix: An additional dropdown was being added to the Page Attributes metabox
Note: See TracChangeset
for help on using the changeset viewer.