Code Monkey home page Code Monkey logo

factmaven / disable-blogging Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 8.0 694 KB

Turn WordPress into a non-blogging CMS platform. Disable Blogging is a plugin that disables all blog related functionalities (posts, comments, feeds, etc.) on the front-end and back-end. This results in a cleaner and simpler WordPress platform to be used for static websites.

Home Page: https://wordpress.org/plugins/disable-blogging/

PHP 97.93% CSS 2.07%
wordpress disable-blogging wordpress-plugin php css improvements settings blog test admin-dashboard

disable-blogging's People

Contributors

dkress59 avatar ethanosullivan avatar nielslange avatar sectsect avatar spartelfant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

disable-blogging's Issues

Fatal error with the setup WooCommerce

As stated here:

Can you change your function line 121 from functions-extra.php

because i get fatal error when i run the setup of woocommerce, like this :

Fatal error: Uncaught Error: Call to a member function remove_help_tabs() on null in /home/youpain/public_html/**********(private)/wp-content/plugins/disable-blogging/includes/functions-extra.php:63 Stack trace: #0 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(298): Fact_Maven_Disable_Blogging_Extra->help_tabs('') #1 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/youpain/public_html/**********(private)/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/youpain/public_html/**********(private)/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php(150): do_action('admin_head') #4 /home/youpain/public_html/**********(private)/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php(125): WC_Admin_Setup_Wizard->setup_wizard_header() #5 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(298): WC_Admin_Setup_Wizard->setup_wizard('') #6 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php in /home/youpain/public_html/**********(private)/wp-content/plugins/disable-blogging/includes/functions-extra.php on line 63

The plugin throws foreach() warnings

The plugin is throwing PHP warning.

1 at settings-page.php line 101 for invalid argument inside the foreach() and another error like this:

PHP Warning: Invalid argument supplied for foreach() in /home/example/public_html/example/wp-admin/includes/plugin.php on line 1422

Please make it stop. It is making my error_log file inside wp-admin huge.

Gutenberg glitch

Wordpress 5.6 shows a severe glitch in Gutenberg when disable-blogging is active. Please fix soon because this is a real showstopper 😅

Edit: Suddenly the issue is gone on my site … weird!

Plugin disabled:
disabled
Plugin enabled:
enabled

filter for disabling reordering of menu

Love the plugin, can you add some type of a filter to not reorder the admin menu to put pages at the top? While I want to disable blogging on a site I don't really want the menu order changed, at least on the current site I am working on since things like products are more important than pages.

Thanks,

~JH

Handling of Activity on the Dashboard

Hi @factmaven,

This is a proposal because it might be different from the purpose of this Plugin.
I'm using this Plugin to remove the default post type post.
In many cases, I have multiple custom post types.

Recent Posts and Recent Draft in activity on dashboard should be modified to all custom post types other than default post type post rather than be removed.

What do you think about it?

Disable alternative "Howdy," greetings in different languages

As stated in this support thread:

I just see that the “‘Howdy,’ greeting” not work with languages other than the default “en_US” (in French it’s “Salutations,” and in English (en_GB) it’s “How are you,”)..
Before your plugin I usually use this piece of code to remove this greeting (It’s more bully than yours :))

Infinite redirect loop on the wp-login page

I just install your plugin (1.2.1) and when it’s enabled, I cannot access wp-login and wp-cron anymore. It seems that redirect_canonical() in dsbl_feeds() makes WordPress to redirect to /wp-login.php/ and /wp-cron.php/ (with a trailing slash). I use a standard configuration on nginx and PHP-FPM.

Disable Gravatar when disabling comments

If you disable Gravatar by means of WP's own discussion settings, then disable comments using this plugin, suddenly Gravatar appears be enabled again. For example a Gravatar image will be loaded by the admin bar.

If you then re-enable comments and visit WP's discussion settings, Gravatar is also enabled again.

PS: Awesome plugin! <3 Huge thank you from my side.

Manage Comments link in admin bar not hidden (multisite)

I've installed the plugin and it works perfectly. However I realised that in multisite mode, the Manage Comments link in the toolbar menu for each site is not being hidden (however the linked page is properly redirected).
I am using the following to hide these links, and I thought you may add it to your plugin.

if ( is_multisite() ) {
  foreach ( get_sites() as $site ) {
    switch_to_blog( $site->blog_id );
    $blog_settings = get_option( 'factmaven_dsbl_general' );
    if ( is_array( $blog_settings ) || is_object( $blog_settings ) ) {
      if ( $blog_settings['comments'] == 'disable' ) {
        $wp_admin_bar->remove_node( "blog-{$site->blog_id}-c" );
      }
    }
    restore_current_blog();
  }
}

The code is to be added to the toolbar_menu function (called by the wp_before_admin_bar_render action) in includes/functions-general.php.
I tested it, it works well - not sure if there is a better method.
Luca

Category field on Menu

Hey guys, maybe is not to be a issue, but i was managing menu itens on my theme and i saw the "category" fields to select, like below:
image

should this be hidden?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.