You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All pages (new and existing) are being presented as newly created papi type #235
The moment I created a new page type class all my existing pages were shown as of this new type in the edit.php?post_type=page table. When I enable the standard type and I choose it from new page type selection page I am redirected to post-new.php?page_type&post_type=page and I'm seeing the properties of the custom papi type I created earlier. I've created only one papi type. Let me know if you need more data.
changed the title [-][3.2.0-beta1] All pages (new and existing) are being presented as newly created papi type[/-][+]All pages (new and existing) are being presented as newly created papi type[/+]on May 26, 2017
Created a standard page that don't have any properties.
Created a article page that have 2 properties.
No article page properties is not showed on the standard page.
Article page properties is showed on the article page.
As you can see in the screenshot the post list don't indicate that they have the wrong page type.
Could you try to reproduce this with the master branch? It's helpful if you have tested the master branch before you report any issues since maybe already fixed and if so it will save a lot of time.
Sorry, The bug you reported isn't a bug since Papi don't enable WordPress "Standard Page" by default (if you have one Papi page type and don't enable standard page this behaviour is correct), you have to do that with a filter:
Activity
[-][3.2.0-beta1] All pages (new and existing) are being presented as newly created papi type[/-][+]All pages (new and existing) are being presented as newly created papi type[/+]frozzare commentedon May 26, 2017
Please don't include the version in the title.
frozzare commentedon May 26, 2017
Will take a look at it when I have some time to code on this project.
frozzare commentedon May 30, 2017
I can't reproduce this, here is what I did:
As you can see in the screenshot the post list don't indicate that they have the wrong page type.
Could you try to reproduce this with the master branch? It's helpful if you have tested the master branch before you report any issues since maybe already fixed and if so it will save a lot of time.
entr commentedon May 30, 2017
I'll test again and report back. Just keep it on-hold until after the following weekend. Thank you for looking into these!
entr commentedon Jun 10, 2017
OK, I was able to reproduce again. What I did was:
$ wp plugin install --activate https://github.com/wp-papi/papi/archive/master.ziptwentyseventeen(seventeen-child)seventeen-child/papi.phpwhere I placed the directory filter and required it fromseventeen-child/functions.phpVideo_Page_Typefrom the docs toseventeen-child/page-types/class-custom-page-type.phpWhen I visited
wp-admin/edit.php?post_type=pageI got thisDo I miss something?
frozzare commentedon Jun 14, 2017
Sorry, The bug you reported isn't a bug since Papi don't enable WordPress "Standard Page" by default (if you have one Papi page type and don't enable standard page this behaviour is correct), you have to do that with a filter:
(where the last page word is the post type).
The bug that I found when finding this is that the column didn't respect the
show_standard_page_typefilter and that is what I will fix.Respect standard type filter in type column #235
entr commentedon Jun 14, 2017
OK, cool. Glad the report was useful after all.