PHP 7.4.33
Preview: TermObjects.php Size: 1.65 KB
/var/www/candid-stg.bitkit.dk/httpdocs/wp-content/plugins/wp-graphql/deprecated/TermObjects.php
<?php

namespace WPGraphQL\Connection;

/**
 * @todo Remove in 3.0.0
 * @deprecated 1.13.0
 * @codeCoverageIgnore
 */
class TermObjects extends \WPGraphQL\Type\Connection\TermObjects {
	/**
	 * Message that this class will be removed in 3.0.0.
	 *
	 * @param string $function_name
	 */
	private static function doing_it_wrong( string $function_name ): void {
		_doing_it_wrong(
			__METHOD__,
			sprintf( /* translators: %s is the current class name, %s is the new class name */
				esc_html__( 'The %1$s class is deprecated and will be removed in the next major version of WPGraphQL. Use %2$s instead.', 'wp-graphql' ),
				esc_html( self::class ),
				esc_html( \WPGraphQL\Type\Connection\TermObjects::class )
			),
			'1.13.0'
		);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @deprecated 1.13.0
	 */
	public static function register_connections() {
		self::doing_it_wrong( __METHOD__ );
		_deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\TermObjects::register_connections' );
		parent::register_connections();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @deprecated 1.13.0
	 */
	public static function get_connection_config( $tax_object, $args = [] ) {
		self::doing_it_wrong( __METHOD__ );
		_deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\TermObjects::get_connection_config' );
		return parent::get_connection_config( $tax_object, $args );
	}

	/**
	 * {@inheritDoc}
	 *
	 * @deprecated 1.13.0
	 */
	public static function get_connection_args( $args = [] ) {
		self::doing_it_wrong( __METHOD__ );
		_deprecated_function( __METHOD__, '1.13.0', '\WPGraphQL\Type\Connection\TermObjects::get_connection_args' );
		return parent::get_connection_args( $args );
	}
}

Directory Contents

Dirs: 0 × Files: 13
Name Size Perms Modified Actions
1.59 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
2.64 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.31 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.71 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.71 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.81 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
812 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
853 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.65 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.83 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.52 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.27 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
721 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).