Showing 7,504 of 7,504 total issues
Method wp_ajax_save_attachment_compat
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_save_attachment_compat() {
if ( ! isset( $_REQUEST['id'] ) )
wp_send_json_error();
if ( ! $id = absint( $_REQUEST['id'] ) )
Method _post_states
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _post_states($post) {
$post_states = array();
if ( isset($_GET['post_status']) )
$post_status = $_GET['post_status'];
else
Method upgrade
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade($plugin) {
$this->init();
$this->upgrade_strings();
Method post_categories_meta_box
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function post_categories_meta_box($post) {
?>
<ul id="category-tabs">
<li class="tabs"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
<li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
Method extra_tablenav
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extra_tablenav( $which ) {
global $cat;
?>
<div class="alignleft actions">
<?php
Method dispatch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dispatch () {
if ( empty( $_GET['step'] ) ) {
$step = 0;
} else {
$step = (int) $_GET['step'];
Method display_setup_form
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function display_setup_form( $error = null ) {
// Ensure that Blogs appear in search engines by default
$blog_public = 1;
if ( isset($_POST) && !empty($_POST) ) {
$blog_public = isset($_POST['blog_public']);
Method wp_getPages
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getPages($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method get_file
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_file($postID) {
// check for not found
global $entry;
$this->set_current_entry($postID);
Method wp_insert_comment
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_insert_comment($commentdata) {
global $wpdb;
extract(stripslashes_deep($commentdata), EXTR_SKIP);
if ( ! isset($comment_author_IP) )
Method get_the_taxonomies
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_the_taxonomies($post = 0) {
if ( is_int($post) )
$post =& get_post($post);
elseif ( !is_object($post) )
$post =& $GLOBALS['post'];
Method APEtagItemIsUTF8Lookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function APEtagItemIsUTF8Lookup($itemkey) {
static $APEtagItemIsUTF8Lookup = array(
'title',
'subtitle',
'artist',
Method applicationIDLookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function applicationIDLookup($applicationid) {
// http://flac.sourceforge.net/id.html
static $lookup = array(
0x41544348 => 'FlacFile', // "ATCH"
0x42534F4C => 'beSolo', // "BSOL"
Method QuicktimeStoreFrontCodeLookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function QuicktimeStoreFrontCodeLookup($sfid) {
static $QuicktimeStoreFrontCodeLookup = array();
if (empty($QuicktimeStoreFrontCodeLookup)) {
$QuicktimeStoreFrontCodeLookup[143460] = 'Australia';
$QuicktimeStoreFrontCodeLookup[143445] = 'Austria';
Method output_javascript
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function output_javascript()
{
if (function_exists('ob_gzhandler'))
{
ob_start('ob_gzhandler');
Method fix_protocol
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function fix_protocol($url, $http = 1)
{
$url = SimplePie_Misc::normalize_url($url);
$parsed = SimplePie_Misc::parse_url($url);
if ($parsed['scheme'] !== '' && $parsed['scheme'] !== 'http' && $parsed['scheme'] !== 'https')
Method _wp_auto_add_pages_to_menu
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wp_auto_add_pages_to_menu( $new_status, $old_status, $post ) {
if ( 'publish' != $new_status || 'publish' == $old_status || 'page' != $post->post_type )
return;
if ( ! empty( $post->post_parent ) )
return;
Method form
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function form( $instance ) {
//Defaults
$instance = wp_parse_args( (array) $instance, array( 'images' => true, 'name' => true, 'description' => false, 'rating' => false, 'category' => false ) );
$link_cats = get_terms( 'link_category');
Method MagpieRSS
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MagpieRSS ($source) {
# if PHP xml isn't compiled in, die
#
if ( !function_exists('xml_parser_create') )
Method wp_ajax_update_widget
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function wp_ajax_update_widget() {
if ( ! is_user_logged_in() ) {
wp_die( 0 );
}