Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wp-file-manager
/
languages
/
File Content:
class-sitemaps-admin.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\XML Sitemaps */ /** * Class that handles the Admin side of XML sitemaps. */ class WPSEO_Sitemaps_Admin { /** * Post_types that are being imported. * * @var array */ private $importing_post_types = []; /** * Class constructor. */ public function __construct() { add_action( 'transition_post_status', [ $this, 'status_transition' ], 10, 3 ); add_action( 'admin_footer', [ $this, 'status_transition_bulk_finished' ] ); WPSEO_Sitemaps_Cache::register_clear_on_option_update( 'wpseo_titles', '' ); WPSEO_Sitemaps_Cache::register_clear_on_option_update( 'wpseo', '' ); } /** * Hooked into transition_post_status. Will initiate search engine pings * if the post is being published, is a post type that a sitemap is built for * and is a post that is included in sitemaps. * * @param string $new_status New post status. * @param string $old_status Old post status. * @param \WP_Post $post Post object. */ public function status_transition( $new_status, $old_status, $post ) { if ( $new_status !== 'publish' ) { return; } if ( defined( 'WP_IMPORTING' ) ) { $this->status_transition_bulk( $new_status, $old_status, $post ); return; } $post_type = get_post_type( $post ); wp_cache_delete( 'lastpostmodified:gmt:' . $post_type, 'timeinfo' ); // #17455. // Not something we're interested in. if ( $post_type === 'nav_menu_item' ) { return; } // If the post type is excluded in options, we can stop. if ( WPSEO_Options::get( 'noindex-' . $post_type, false ) ) { return; } if ( wp_get_environment_type() !== 'production' ) { return; } /** * Filter: 'wpseo_allow_xml_sitemap_ping' - Check if pinging is not allowed (allowed by default). * * @api boolean $allow_ping The boolean that is set to true by default. */ if ( apply_filters( 'wpseo_allow_xml_sitemap_ping', true ) === false ) { return; } if ( defined( 'YOAST_SEO_PING_IMMEDIATELY' ) && YOAST_SEO_PING_IMMEDIATELY ) { WPSEO_Sitemaps::ping_search_engines(); } elseif ( ! wp_next_scheduled( 'wpseo_ping_search_engines' ) ) { wp_schedule_single_event( ( time() + 300 ), 'wpseo_ping_search_engines' ); } } /** * While bulk importing, just save unique post_types. * * When importing is done, if we have a post_type that is saved in the sitemap * try to ping the search engines. * * @param string $new_status New post status. * @param string $old_status Old post status. * @param \WP_Post $post Post object. */ private function status_transition_bulk( $new_status, $old_status, $post ) { $this->importing_post_types[] = get_post_type( $post ); $this->importing_post_types = array_unique( $this->importing_post_types ); } /** * After import finished, walk through imported post_types and update info. */ public function status_transition_bulk_finished() { if ( ! defined( 'WP_IMPORTING' ) ) { return; } if ( empty( $this->importing_post_types ) ) { return; } $ping_search_engines = false; foreach ( $this->importing_post_types as $post_type ) { wp_cache_delete( 'lastpostmodified:gmt:' . $post_type, 'timeinfo' ); // #17455. // Just have the cache deleted for nav_menu_item. if ( $post_type === 'nav_menu_item' ) { continue; } if ( WPSEO_Options::get( 'noindex-' . $post_type, false ) === false ) { $ping_search_engines = true; } } // Nothing to do. if ( $ping_search_engines === false ) { return; } if ( WP_CACHE ) { do_action( 'wpseo_hit_sitemap_index' ); } WPSEO_Sitemaps::ping_search_engines(); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class.pack.database.php
30838 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260705194237.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706180650.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
exceptions.php
708 bytes
0644
inc.validator.php
5401 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
module.php
1297 bytes
0644
setup.php
2699 bytes
0644
wp-file-manager-af.mo
17155 bytes
0644
wp-file-manager-af.po
27236 bytes
0644
wp-file-manager-ar.mo
21701 bytes
0644
wp-file-manager-ar.po
32228 bytes
0644
wp-file-manager-az.mo
18700 bytes
0644
wp-file-manager-az.po
28852 bytes
0644
wp-file-manager-bel.mo
24363 bytes
0644
wp-file-manager-bel.po
35005 bytes
0644
wp-file-manager-bg_BG.mo
24400 bytes
0644
wp-file-manager-bg_BG.po
34929 bytes
0644
wp-file-manager-bn_BD.mo
28497 bytes
0644
wp-file-manager-bn_BD.po
39039 bytes
0644
wp-file-manager-bs_BA.mo
18256 bytes
0644
wp-file-manager-bs_BA.po
28359 bytes
0644
wp-file-manager-ca.mo
18768 bytes
0644
wp-file-manager-ca.po
28942 bytes
0644
wp-file-manager-ceb.mo
18369 bytes
0644
wp-file-manager-ceb.po
25299 bytes
0644
wp-file-manager-cs_CZ.mo
17768 bytes
0644
wp-file-manager-cs_CZ.po
27639 bytes
0644
wp-file-manager-cy.mo
17854 bytes
0644
wp-file-manager-cy.po
27819 bytes
0644
wp-file-manager-da_DK.mo
17300 bytes
0644
wp-file-manager-da_DK.po
27264 bytes
0644
wp-file-manager-de_DE.mo
18108 bytes
0644
wp-file-manager-de_DE.po
28004 bytes
0644
wp-file-manager-el.mo
26530 bytes
0644
wp-file-manager-el.po
33569 bytes
0644
wp-file-manager-eo.po
27126 bytes
0644
wp-file-manager-es_ES.mo
19000 bytes
0644
wp-file-manager-es_ES.po
25934 bytes
0644
wp-file-manager-et.mo
17282 bytes
0644
wp-file-manager-et.po
27150 bytes
0644
wp-file-manager-eu.mo
18020 bytes
0644
wp-file-manager-eu.po
27991 bytes
0644
wp-file-manager-fa_IR.mo
22688 bytes
0644
wp-file-manager-fa_IR.po
29688 bytes
0644
wp-file-manager-fi.mo
17591 bytes
0644
wp-file-manager-fi.po
27578 bytes
0644
wp-file-manager-fr_FR.mo
19227 bytes
0644
wp-file-manager-fr_FR.po
28731 bytes
0644
wp-file-manager-gd.mo
19324 bytes
0644
wp-file-manager-gd.po
29429 bytes
0644
wp-file-manager-gl_ES.mo
18745 bytes
0644
wp-file-manager-gl_ES.po
28880 bytes
0644
wp-file-manager-gu.mo
26969 bytes
0644
wp-file-manager-gu.po
33877 bytes
0644
wp-file-manager-he_IL.mo
19609 bytes
0644
wp-file-manager-he_IL.po
29486 bytes
0644
wp-file-manager-hi_IN - Copy.mo
444 bytes
0644
wp-file-manager-hi_IN.mo
27694 bytes
0644
wp-file-manager-hi_IN.po
38023 bytes
0644
wp-file-manager-hr.mo
18178 bytes
0644
wp-file-manager-hr.po
28236 bytes
0644
wp-file-manager-hu_HU.mo
19146 bytes
0644
wp-file-manager-hu_HU.po
29182 bytes
0644
wp-file-manager-hy.mo
24885 bytes
0644
wp-file-manager-hy.po
35514 bytes
0644
wp-file-manager-id_ID.mo
17419 bytes
0644
wp-file-manager-id_ID.po
27214 bytes
0644
wp-file-manager-is_IS.mo
17969 bytes
0644
wp-file-manager-is_IS.po
27831 bytes
0644
wp-file-manager-it_IT.mo
17850 bytes
0644
wp-file-manager-it_IT.po
27728 bytes
0644
wp-file-manager-ko_KR.mo
18508 bytes
0644
wp-file-manager-ko_KR.po
83399 bytes
0644
wp-file-manager-ms_MY.mo
17270 bytes
0644
wp-file-manager-ms_MY.po
79397 bytes
0644
wp-file-manager-nl_NL.mo
17513 bytes
0644
wp-file-manager-nl_NL.po
80150 bytes
0644
wp-file-manager-nn_NO.mo
17513 bytes
0644
wp-file-manager-nn_NO.po
78538 bytes
0644
wp-file-manager-pt_PT.mo
18127 bytes
0644
wp-file-manager-pt_PT.po
81089 bytes
0644
wp-file-manager-ro_RO.mo
18531 bytes
0644
wp-file-manager-ro_RO.po
28106 bytes
0644
wp-file-manager-ru_RU.mo
24533 bytes
0644
wp-file-manager-ru_RU.po
35326 bytes
0644
wp-file-manager-sk_SK.mo
18133 bytes
0644
wp-file-manager-sk_SK.po
81910 bytes
0644
wp-file-manager-sl_SI.mo
17997 bytes
0644
wp-file-manager-sl_SI.po
80265 bytes
0644
wp-file-manager-sq.mo
18572 bytes
0644
wp-file-manager-sq.po
83815 bytes
0644
wp-file-manager-sr_RS.mo
24078 bytes
0644
wp-file-manager-sr_RS.po
102326 bytes
0644
wp-file-manager-sv_SE.mo
17707 bytes
0644
wp-file-manager-sv_SE.po
79450 bytes
0644
wp-file-manager-te.mo
30008 bytes
0644
wp-file-manager-te.po
36918 bytes
0644
wp-file-manager-th.mo
27487 bytes
0644
wp-file-manager-th.po
37964 bytes
0644
wp-file-manager-tr_TR.mo
18220 bytes
0644
wp-file-manager-tr_TR.po
28199 bytes
0644
wp-file-manager-uk.mo
24435 bytes
0644
wp-file-manager-uk.po
35030 bytes
0644
wp-file-manager-ur.mo
22266 bytes
0644
wp-file-manager-ur.po
32450 bytes
0644
wp-file-manager-uz_UZ.mo
18380 bytes
0644
wp-file-manager-uz_UZ.po
25290 bytes
0644
wp-file-manager-vi.mo
20154 bytes
0644
wp-file-manager-vi.po
30257 bytes
0644
wp-file-manager-zh_CN.mo
16355 bytes
0644
wp-file-manager-zh_CN.po
25910 bytes
0644
wp-file-manager.pot
825 bytes
0644
N4ST4R_ID | Naxtarrr