wecodemore / wp-strip-naked Goto Github PK
View Code? Open in Web Editor NEWStrips WordPress down to it's bare essentials
Home Page: http://unserkaiser.com/plugins/wp-strip-naked/
Strips WordPress down to it's bare essentials
Home Page: http://unserkaiser.com/plugins/wp-strip-naked/
You add a function onto the parent_file
filter (https://github.com/franz-josef-kaiser/WP-Strip-Naked/blob/master/init.php#L92) - the function is defined here: https://github.com/franz-josef-kaiser/WP-Strip-Naked/blob/master/init.php#L243. But the function doesn't take as an argument and nor does it return the filtered parent file. This can upset the menu handler when moving submenu items around.
Hey there! Nice base to work with, thanks!
I just discovered that disabling the default taxonomies is not a good idea, since there (really???) still is some stuff hardcoded into the core of wordpress. In my case line #4787 in wp-includes/post.php was causing an error if deleting attachments:
wp_delete_object_term_relationships($post_id, array('category', 'post_tag'));
So we will have to wait until this gets at least filterable...
If logged in as a user lower than administrator, the variable $submenu[ 'options-general.php' ]
is null
. This causes errors in your "admin_menu" function.
A quick fix for this is to check if the value is an array:
if( !is_array( $submenu[ 'options-general.php' ] ) )
return $parent_file;
I inserted this block just before this code:
// Add all options page instead
add_submenu_page(
'options-general.php'
,__( 'All Options' )
,__( 'All Settings' )
,'manage_options'
,'options.php'
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.