| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/DataTransferObjects.tar |
TimestampData.php 0000666 00000001354 15114651463 0010027 0 ustar 00 <?php
namespace YoastSEO_Vendor\WordProof\SDK\DataTransferObjects;
class TimestampData
{
/**
* Get timestamp data from post object.
*
* @param \WP_Post $post
* @return array
*/
public static function fromPost($post)
{
if ($post->post_type === 'attachment') {
$file = \get_attached_file($post->ID);
$content = '';
if ($file) {
$content = \hash_file('sha256', $file);
}
} else {
$content = $post->post_content;
}
return ['uid' => $post->ID, 'date_modified' => \get_post_modified_time('c', \false, $post->ID), 'title' => $post->post_title, 'url' => \get_permalink($post), 'content' => $content];
}
}
.htaccess 0000666 00000000424 15114651463 0006354 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>