WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcaginesisstore/public_html/wp-content/plugins/comments-plus/includes/boot.php
<?php
/**
 * Admin boot
 *
 * @author    Alex Kovalev <alex.kovalevv@gmail.com>, Github: https://github.com/alexkovalevv
 *
 * @copyright Webcraftic 25.05.2017
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Получает список отключенных типов записей
 *
 * @return array|bool|mixed|void
 */
function wbcr_cmp_get_disabled_post_types() {

	$post_types = WCM_Plugin::app()->getPopulateOption( 'disable_comments_for_post_types' );

	if ( WCM_Plugin::app()->getPopulateOption( 'disable_comments', 'enable_comments' ) == 'disable_comments' ) {

		$args = [ 'public' => true ];

		if ( WCM_Plugin::app()->isNetworkActive() ) {
			$args['_builtin'] = true;
		}

		$all_post_types = get_post_types( $args, 'objects' );

		return array_keys( $all_post_types );
	}

	// Not all extra_post_types might be registered on this particular site
	/*if( $this->networkactive ) {
		foreach( (array) $this->options['extra_post_types'] as $extra ) {
			if( post_type_exists( $extra ) ) {
				$types[] = $extra;
			}
		}
	}*/

	if ( is_array( $post_types ) ) {
		return $post_types;
	}

	return explode( ',', $post_types );
}