[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.118.144.50: ~ $
<?php

namespace MailPoet\WP;

if (!defined('ABSPATH')) exit;


use MailPoet\WP\Functions as WPFunctions;

class Posts {
  public static function getTerms($args) {
    // Since WordPress 4.5.0 signature of get_terms changed to require
    // one argument array, where taxonomy is key of that array
    if (version_compare(WPFunctions::get()->getBloginfo('version'), '4.5.0', '>=')) {
      return WPFunctions::get()->getTerms($args);
    } else {
      $taxonomy = $args['taxonomy'];
      unset($args['taxonomy']);
      return WPFunctions::get()->getTerms($taxonomy, $args);
    }
  }

  public static function getTypes($args = [], $output = 'names', $operator = 'and') {
    $defaults = [
      'exclude_from_search' => false,
    ];
    $args = array_merge($defaults, $args);
    return WPFunctions::get()->getPostTypes($args, $output, $operator);
  }
}

Filemanager

Name Type Size Permission Actions
AutocompletePostListLoader.php File 2.93 KB 0644
DateTime.php File 2.08 KB 0644
Emoji.php File 2.04 KB 0644
Functions.php File 19.04 KB 0644
Notice.php File 2.62 KB 0644
Posts.php File 858 B 0644
Readme.php File 1.09 KB 0644
index.php File 0 B 0644