Showing 5,566 of 7,504 total issues
Method wp_save_nav_menu_items
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) {
$menu_id = (int) $menu_id;
$items_saved = array();
if ( 0 == $menu_id || is_nav_menu( $menu_id ) ) {
Method wp_get_revision_ui_diff
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
if ( ! $post = get_post( $post ) )
return false;
if ( $compare_from ) {
Method compression_test
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compression_test() {
?>
<script type="text/javascript">
/* <![CDATA[ */
var testCompression = {
Method redirect_post
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function redirect_post($post_ID = '') {
global $action;
$referredby = '';
if ( !empty($_POST['referredby']) ) {
Method list_core_update
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function list_core_update( $update ) {
global $wp_local_package;
$version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
$update->current : sprintf("%s–<strong>%s</strong>", $update->current, $update->locale);
$current = false;
Method links2wp
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function links2wp($links='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method comments2wp
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function comments2wp($comments='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method show_blog_form
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
$current_site = get_current_site();
// Blog name
if ( !is_subdomain_install() )
echo '<label for="blogname">' . __('Site Name:') . '</label>';
Method wp_editComment
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_editComment($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];
Method ParseVorbisPageHeader
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ParseVorbisPageHeader(&$filedata, &$filedataoffset, &$oggpageinfo) {
$info = &$this->getid3->info;
$info['audio']['dataformat'] = 'vorbis';
$info['audio']['lossless'] = false;
Method wp_kses_attr
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {
# Is there a closing XHTML slash at the end of the attributes?
$xhtml_slash = '';
if (preg_match('%\s/\s*$%', $attr))
Method set_iri
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set_iri($iri)
{
static $cache;
if (!$cache)
{
Method get_id
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_id($hash = false)
{
if (!$hash)
{
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'id'))
Method debug
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function debug(&$sp)
{
$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
$info .= 'PHP ' . PHP_VERSION . "\n";
if ($sp->error() !== null)
Method request
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function request($url, $args = array()) {
$defaults = array(
'method' => 'GET', 'timeout' => 5,
'redirection' => 5, 'httpversion' => '1.0',
'blocking' => true,
Method checkIPv6
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkIPv6($ip)
{
$ipPart = SimplePie_Net_IPv6::SplitV64($ip);
$count = 0;
if (!empty($ipPart[0]))
Method wp_initial_constants
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_initial_constants() {
global $blog_id;
// set memory limits
if ( !defined('WP_MEMORY_LIMIT') ) {
Method walk
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk( $elements, $max_depth) {
$args = array_slice(func_get_args(), 2);
$output = '';
Method walk
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk( $elements, $max_depth) {
$args = array_slice(func_get_args(), 2);
$output = '';
Method Authenticate
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Authenticate($username, $password) {
// Start authentication
fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF);
$rply = $this->get_lines();