Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter t.corbett

    (@tcorbett)

    Nope… wrong again lol, stupid that you can’t edit your posts!! Unless I’m being stupid.

    it should be:

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page($base+$offset.'.php', __($panel->name), $new_indicator_text, $requiredPagesCap, 'post-new.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page($base+$offset.'.php',__($panel->name),"Edit",$requiredPagesCap,'page.php?action=edit&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page($base+$offset.'.php', __($panel->name), $new_indicator_text, $requiredPagesCap, 'post-new.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						add_submenu_page($base+$offset.'.php', __($panel->name), $edit_indicator_text, $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}
    Thread Starter t.corbett

    (@tcorbett)

    Whoops I forgot to include the actual solution…

    change from line 373 in RCCWP_Menu.php

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page('post-new.php',__($panel->name),__($panel->name),8,'page.php?action=edit&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						add_submenu_page('edit.php', __($panel->name), __($panel->name), $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}

    to:

    if($panel->single == 1){ //if the page is single
    						if($add_post){ //if the page is single and don't have any related post
    							add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'post.php?post_type=page&custom-write-panel-id=' . $panel->id);
    						}else{
    							add_submenu_page('post-new.php',__($panel->name),__($panel->name),8,'edit.php?post_type=page&post='.$has_posts);
    						}
    					}else{
    						add_submenu_page('post-new.php', __($panel->name), __($panel->name), $requiredPagesCap, 'page-new.php?custom-write-panel-id=' . $panel->id);
    						add_submenu_page('edit.php', __($panel->name), __($panel->name), $requiredPagesCap, 'edit-pages.php?filter-posts=1&custom-write-panel-id=' . $panel->id);
    					}
Viewing 2 replies - 1 through 2 (of 2 total)