how a link to the author's feed and use this image URL as
* clickable anchor. Default empty.
* @type string $feed_type The feed type to link to. Possible values include 'rss2', 'atom'.
* Default is the value of get_default_feed().
* @type bool $echo Whether to output the result or instead return it. Default true.
* @type string $style If 'list', each author is wrapped in an `
` element, otherwise the authors
* will be separated by commas.
* @type bool $html Whether to list the items in HTML form or plaintext. Default true.
* @type int[]|string $exclude Array or comma/space-separated list of author IDs to exclude. Default empty.
* @type int[]|string $include Array or comma/space-separated list of author IDs to include. Default empty.
* }
* @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false.
*/
function wp_list_authors( $args = '' ) {
global $wpdb;
$defaults = array(
'orderby' => 'name',
'order' => 'ASC',
'number' => '',
'optioncount' => false,
'exclude_admin' => true,
'show_fullname' => false,
'hide_empty' => true,
'feed' => '',
'feed_image' => '',
'feed_type' => '',
'echo' => true,
'style' => 'list',
'html' => true,
'exclude' => '',
'include' => '',
);
$parsed_args = wp_parse_args( $args, $defaults );
$return = '';
$query_args = wp_array_slice_assoc( $parsed_args, array( 'orderby', 'order', 'number', 'exclude', 'include' ) );
$query_args['fields'] = 'ids';
/**
* Filters the query arguments for the list of all authors of the site.
*
* @since 6.1.0
*
* @param array $query_args The query arguments for get_users().
* @param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults.
*/
$query_args = apply_filters( 'wp_list_authors_args', $query_args, $parsed_args );
$authors = get_users( $query_args );
$post_counts = array();
/**
* Filters whether to short-circuit performing the query for author post counts.
*
* @since 6.1.0
*
* @param int[]|false $post_counts Array of post counts, keyed by author ID.
* @param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults.
*/
$post_counts = apply_filters( 'pre_wp_list_authors_post_counts_query', false, $parsed_args );
if ( ! is_array( $post_counts ) ) {
$post_counts = array();
$post_counts_query = $wpdb->get_results(
"SELECT DISTINCT post_author, COUNT(ID) AS count
FROM $wpdb->posts
WHERE " . get_private_posts_cap_sql( 'post' ) . '
GROUP BY post_author'
);
foreach ( (array) $post_counts_query as $row ) {
$post_counts[ $row->post_author ] = $row->count;
}
}
foreach ( $authors as $author_id ) {
$posts = isset( $post_counts[ $author_id ] ) ? $post_counts[ $author_id ] : 0;
if ( ! $posts && $parsed_args['hide_empty'] ) {
continue;
}
$author = get_userdata( $author_id );
if ( $parsed_args['exclude_admin'] && 'admin' === $author->display_name ) {
continue;
}
if ( $parsed_args['show_fullname'] && $author->first_name && $author->last_name ) {
$name = sprintf(
/* translators: 1: User's first name, 2: Last name. */
_x( '%1$s %2$s', 'Display name based on first name and last name' ),
$author->first_name,
$author->last_name
);
} else {
$name = $author->display_name;
}
if ( ! $parsed_args['html'] ) {
$return .= $name . ', ';
continue; // No need to go further to process HTML.
}
if ( 'list' === $parsed_args['style'] ) {
$return .= '';
}
$link = sprintf(
'%3$s',
esc_url( get_author_posts_url( $author->ID, $author->user_nicename ) ),
/* translators: %s: Author's display name. */
esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ),
$name
);
if ( ! empty( $parsed_args['feed_image'] ) || ! empty( $parsed_args['feed'] ) ) {
$link .= ' ';
if ( empty( $parsed_args['feed_image'] ) ) {
$link .= '(';
}
$link .= '';
} else {
$link .= $name;
}
$link .= '';
if ( empty( $parsed_args['feed_image'] ) ) {
$link .= ')';
}
}
if ( $parsed_args['optioncount'] ) {
$link .= ' (' . $posts . ')';
}
$return .= $link;
$return .= ( 'list' === $parsed_args['style'] ) ? '' : ', ';
}
$return = rtrim( $return, ', ' );
if ( $parsed_args['echo'] ) {
echo $return;
} else {
return $return;
}
}
/**
* Determines whether this site has more than one author.
*
* Checks to see if more than one author has published posts.
*
* For more information on this and similar theme functions, check out
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
* Conditional Tags} article in the Theme Developer Handbook.
*
* @since 3.2.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @return bool Whether or not we have more than one author
*/
function is_multi_author() {
global $wpdb;
$is_multi_author = get_transient( 'is_multi_author' );
if ( false === $is_multi_author ) {
$rows = (array) $wpdb->get_col( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2" );
$is_multi_author = 1 < count( $rows ) ? 1 : 0;
set_transient( 'is_multi_author', $is_multi_author );
}
/**
* Filters whether the site has more than one author with published posts.
*
* @since 3.2.0
*
* @param bool $is_multi_author Whether $is_multi_author should evaluate as true.
*/
return apply_filters( 'is_multi_author', (bool) $is_multi_author );
}
/**
* Helper function to clear the cache for number of authors.
*
* @since 3.2.0
* @access private
*/
function __clear_multi_author_cache() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
delete_transient( 'is_multi_author' );
}
. '/../..' . '/vendor_prefixed/php-di/php-di/src/Definition/Source/SourceChain.php',
'ElementorDeps\\DI\\Definition\\StringDefinition' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Definition/StringDefinition.php',
'ElementorDeps\\DI\\Definition\\ValueDefinition' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Definition/ValueDefinition.php',
'ElementorDeps\\DI\\DependencyException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/DependencyException.php',
'ElementorDeps\\DI\\FactoryInterface' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/FactoryInterface.php',
'ElementorDeps\\DI\\Factory\\RequestedEntry' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Factory/RequestedEntry.php',
'ElementorDeps\\DI\\Invoker\\DefinitionParameterResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Invoker/DefinitionParameterResolver.php',
'ElementorDeps\\DI\\Invoker\\FactoryParameterResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Invoker/FactoryParameterResolver.php',
'ElementorDeps\\DI\\NotFoundException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/NotFoundException.php',
'ElementorDeps\\DI\\Proxy\\ProxyFactory' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/php-di/src/Proxy/ProxyFactory.php',
'ElementorDeps\\Invoker\\CallableResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/CallableResolver.php',
'ElementorDeps\\Invoker\\Exception\\InvocationException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/Exception/InvocationException.php',
'ElementorDeps\\Invoker\\Exception\\NotCallableException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/Exception/NotCallableException.php',
'ElementorDeps\\Invoker\\Exception\\NotEnoughParametersException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/Exception/NotEnoughParametersException.php',
'ElementorDeps\\Invoker\\Invoker' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/Invoker.php',
'ElementorDeps\\Invoker\\InvokerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/InvokerInterface.php',
'ElementorDeps\\Invoker\\ParameterResolver\\AssociativeArrayResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\Container\\ParameterNameContainerResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\Container\\TypeHintContainerResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\DefaultValueResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\NumericArrayResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\ParameterResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/ParameterResolver.php',
'ElementorDeps\\Invoker\\ParameterResolver\\ResolverChain' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/ResolverChain.php',
'ElementorDeps\\Invoker\\ParameterResolver\\TypeHintResolver' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/ParameterResolver/TypeHintResolver.php',
'ElementorDeps\\Invoker\\Reflection\\CallableReflection' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/invoker/src/Reflection/CallableReflection.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Contracts\\Serializable' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Contracts/Serializable.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Contracts\\Signer' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Contracts/Signer.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Exceptions\\InvalidSignatureException' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Exceptions/InvalidSignatureException.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Exceptions\\MissingSecretKeyException' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Exceptions/MissingSecretKeyException.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Exceptions\\PhpVersionNotSupportedException' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Exceptions/PhpVersionNotSupportedException.php',
'ElementorDeps\\Laravel\\SerializableClosure\\SerializableClosure' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/SerializableClosure.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Serializers\\Native' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Serializers/Native.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Serializers\\Signed' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Serializers/Signed.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Signers\\Hmac' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Signers/Hmac.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Support\\ClosureScope' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Support/ClosureScope.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Support\\ClosureStream' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Support/ClosureStream.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Support\\ReflectionClosure' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Support/ReflectionClosure.php',
'ElementorDeps\\Laravel\\SerializableClosure\\Support\\SelfReference' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/Support/SelfReference.php',
'ElementorDeps\\Laravel\\SerializableClosure\\UnsignedSerializableClosure' => __DIR__ . '/../..' . '/vendor_prefixed/laravel/serializable-closure/src/UnsignedSerializableClosure.php',
'ElementorDeps\\PhpDocReader\\AnnotationException' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php',
'ElementorDeps\\PhpDocReader\\PhpDocReader' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/phpdoc-reader/src/PhpDocReader/PhpDocReader.php',
'ElementorDeps\\PhpDocReader\\PhpParser\\TokenParser' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/phpdoc-reader/src/PhpDocReader/PhpParser/TokenParser.php',
'ElementorDeps\\PhpDocReader\\PhpParser\\UseStatementParser' => __DIR__ . '/../..' . '/vendor_prefixed/php-di/phpdoc-reader/src/PhpDocReader/PhpParser/UseStatementParser.php',
'ElementorDeps\\Psr\\Container\\ContainerExceptionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/container/src/ContainerExceptionInterface.php',
'ElementorDeps\\Psr\\Container\\ContainerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/container/src/ContainerInterface.php',
'ElementorDeps\\Psr\\Container\\NotFoundExceptionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/container/src/NotFoundExceptionInterface.php',
);
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInit175d29babee7e330d642b349f38630ac::$classMap;
}, null, ClassLoader::class);
}
}
Fatal error: Uncaught Error: Class 'Composer\Autoload\ComposerStaticInit175d29babee7e330d642b349f38630ac' not found in /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor/vendor/composer/autoload_real.php:32
Stack trace:
#0 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor/vendor/autoload.php(25): ComposerAutoloaderInit175d29babee7e330d642b349f38630ac::getLoader()
#1 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor/elementor.php(47): require_once('/var/www/html/d...')
#2 /var/www/html/dportilho.com.br/web/wp-settings.php(526): include_once('/var/www/html/d...')
#3 /var/www/html/dportilho.com.br/web/wp-config.php(126): require_once('/var/www/html/d...')
#4 /var/www/html/dportilho.com.br/web/wp-load.php(50): require_once('/var/www/html/d...')
#5 /var/www/html/dportilho.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/d...')
#6 /var/www/html/dportilho.com.br/web/index.php(17): require('/var/www/html/d...')
#7 {main}
thrown in /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor/vendor/composer/autoload_real.php on line 32