PHP 8.2.31
Preview: bitly.php Size: 941 B
/home/nshryvcy/himaltourism.com/wp-content/plugins/jetpack/3rd-party/bitly.php

<?php
/**
 * Fixes issues with the Official Bitly for WordPress
 * https://wordpress.org/plugins/bitly/
 *
 * @package automattic/jetpack
 */

if ( class_exists( 'Bitly' ) ) {

	if ( isset( $GLOBALS['bitly'] ) ) {
		if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
			remove_action( 'wp_head', array( $GLOBALS['bitly'], 'og_tags' ) );
		}

		add_action( 'wp_head', 'jetpack_bitly_og_tag', 100 );
	}
}

/**
 * Adds bitly OG tags.
 */
function jetpack_bitly_og_tag() {
	if ( has_filter( 'wp_head', 'jetpack_og_tags' ) === false ) {
		// Add the bitly part again back if we don't have any jetpack_og_tags added.
		if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
			$GLOBALS['bitly']->og_tags();
		}
	} elseif ( isset( $GLOBALS['posts'] ) && $GLOBALS['posts'][0]->ID > 0 ) {
		printf( "<meta property=\"bitly:url\" content=\"%s\" /> \n", esc_attr( $GLOBALS['bitly']->get_bitly_link_for_post_id( $GLOBALS['posts'][0]->ID ) ) );
	}
}

Directory Contents

Dirs: 1 × Files: 22

Name Size Perms Modified Actions
debug-bar DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
2.17 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.97 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
452 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
941 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
503 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.12 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.33 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.63 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
16.83 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.04 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
815 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
733 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.57 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.55 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
638 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.04 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
974 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.48 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.57 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.59 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).