Showing 7,504 of 7,504 total issues
Method do_meta_boxes
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_meta_boxes($page, $context, $object) {
global $wp_meta_boxes;
static $already_sorted = false;
//do_action('do_meta_boxes', $page, $context, $object);
Method _wp_ajax_delete_comment_response
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
$total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0;
$per_page = isset( $_POST['_per_page'] ) ? (int) $_POST['_per_page'] : 0;
$page = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0;
$url = isset( $_POST['_url'] ) ? esc_url_raw( $_POST['_url'] ) : '';
Method signup_user
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function signup_user( $user_name = '', $user_email = '', $errors = '' ) {
global $active_signup;
if ( !is_wp_error($errors) )
$errors = new WP_Error();
Method wp_getPageList
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getPageList($args) {
global $wpdb;
$this->escape($args);
Method css
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function css() {
?>
<style type="text/css">
.a-stats {
Method wp_set_comment_status
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_set_comment_status($comment_id, $comment_status, $wp_error = false) {
global $wpdb;
$status = '0';
switch ( $comment_status ) {
Method get_comment_count
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_comment_count( $post_id = 0 ) {
global $wpdb;
$post_id = (int) $post_id;
Method blogger_getRecentPosts
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blogger_getRecentPosts($args) {
$this->escape($args);
// $args[0] = appkey - ignored
Method LAMEpresetUsedLookup
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function LAMEpresetUsedLookup($LAMEtag) {
if ($LAMEtag['preset_used_id'] == 0) {
// no preset used (LAME >=3.93)
// no preset recorded (LAME <3.93)
Method get_post
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &get_post(&$post, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$null = null;
if ( empty($post) ) {
Method export_to_file
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function export_to_file($filename) {
$fh = fopen($filename, 'wb');
if ( !$fh ) return false;
$entries = array_filter($this->entries, create_function('$e', 'return !empty($e->translations);'));
ksort($entries);
Method __get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __get($name)
{
// isset() returns false for null, we don't want to do that
// Also why we use array_key_exists below instead of isset()
$props = get_object_vars($this);
Method build_time_query
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function build_time_query( $column, $compare, $hour = null, $minute = null, $second = null ) {
global $wpdb;
// Have to have at least one
if ( ! isset( $hour ) && ! isset( $minute ) && ! isset( $second ) )
Method init
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init () {
if ( defined('MAGPIE_INITALIZED') ) {
return;
}
else {
Method feed_end_element
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function feed_end_element ($p, $el) {
$el = strtolower($el);
if ( $el == 'item' or $el == 'entry' )
{
Method update_blog_status
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
global $wpdb;
if ( null !== $deprecated )
_deprecated_argument( __FUNCTION__, '3.1' );
Method EncodeQP
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EncodeQP( $input = '', $line_max = 76, $space_conv = false ) {
$hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
$lines = preg_split('/(?:\r\n|\r|\n)/', $input);
$eol = "\r\n";
$escape = '=';
Method comments_popup_link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
if ( false === $zero ) $zero = __( 'No Comments' );
if ( false === $one ) $one = __( '1 Comment' );
Method AttachAll
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AttachAll() {
/* Return text of body */
$mime = array();
/* Add all attachments */
Method processHeaders
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function processHeaders( $headers, $url = '' ) {
// split headers, one per array element
if ( is_string($headers) ) {
// tolerate line terminator: CRLF = LF (RFC 2616 19.3)
$headers = str_replace("\r\n", "\n", $headers);