Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ccma
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
File Content:
class-wpseo-statistics.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals */ /** * Class that generates interesting statistics about things. */ class WPSEO_Statistics { /** * Returns the post count for a certain SEO rank. * * @todo Merge/DRY this with the logic virtually the same in WPSEO_Metabox::column_sort_orderby(). * * @param WPSEO_Rank $rank The SEO rank to get the post count for. * * @return int */ public function get_post_count( $rank ) { if ( $rank->get_rank() === WPSEO_Rank::NO_FOCUS ) { $posts = [ 'meta_query' => [ 'relation' => 'OR', [ 'key' => WPSEO_Meta::$meta_prefix . 'focuskw', 'value' => 'needs-a-value-anyway', 'compare' => 'NOT EXISTS', ], ], ]; } elseif ( $rank->get_rank() === WPSEO_Rank::NO_INDEX ) { $posts = [ 'meta_key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex', 'meta_value' => '1', 'compare' => '=', ]; } else { $posts = [ 'meta_key' => WPSEO_Meta::$meta_prefix . 'linkdex', 'meta_value' => [ $rank->get_starting_score(), $rank->get_end_score() ], 'meta_compare' => 'BETWEEN', 'meta_type' => 'NUMERIC', ]; } $posts['fields'] = 'ids'; $posts['post_status'] = 'publish'; if ( current_user_can( 'edit_others_posts' ) === false ) { $posts['author'] = get_current_user_id(); } $posts = new WP_Query( $posts ); return (int) $posts->found_posts; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
exceptions
---
0755
options
---
0755
sitemaps
---
0755
class-addon-manager.php
26693 bytes
0644
class-my-yoast-api-request.php
4890 bytes
0644
class-post-type.php
3918 bytes
0644
class-rewrite.php
6951 bytes
0644
class-upgrade-history.php
3126 bytes
0644
class-upgrade.php
56236 bytes
0644
class-wpseo-admin-bar-menu.php
26958 bytes
0644
class-wpseo-content-images.php
2716 bytes
0644
class-wpseo-custom-fields.php
1766 bytes
0644
class-wpseo-custom-taxonomies.php
1628 bytes
0644
class-wpseo-image-utils.php
15453 bytes
0644
class-wpseo-installation.php
1139 bytes
0644
class-wpseo-meta.php
37807 bytes
0644
class-wpseo-primary-term.php
1739 bytes
0644
class-wpseo-rank.php
7350 bytes
0644
class-wpseo-replace-vars.php
52681 bytes
0644
class-wpseo-replacement-variable.php
1375 bytes
0644
class-wpseo-shortlinker.php
1132 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-wpseo-utils.php
29390 bytes
0644
class-yoast-dynamic-rewrites.php
5361 bytes
0644
date-helper.php
1752 bytes
0644
index.php
38 bytes
0644
interface-wpseo-wordpress-ajax-integration.php
294 bytes
0644
interface-wpseo-wordpress-integration.php
348 bytes
0644
language-utils.php
1313 bytes
0644
wpseo-functions-deprecated.php
68 bytes
0644
wpseo-functions.php
9218 bytes
0644
wpseo-non-ajax-functions.php
1593 bytes
0644
N4ST4R_ID | Naxtarrr