WordPress.org

Plugin Directory

Changeset 386527


Ignore:
Timestamp:
05/19/11 11:09:21 (3 years ago)
Author:
pross
Message:

Fixed new deprecated.
Content width filter added.
NetBeans file checks.
Fixed redundant checks.
Removed old cssopt file.
Props GaryJ

Location:
theme-check/trunk/checks
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • theme-check/trunk/checks/content-width.php

    r336084 r386527  
    1111        $php = implode( ' ', $php_files ); 
    1212        checkcount(); 
    13         if ( strpos( $php, '$content_width' ) === false && !preg_match( '/add_filter\(\s?("|\')embed_defaults/', $php ) ) { 
     13        if ( strpos( $php, '$content_width' ) === false && !preg_match( '/add_filter\(\s?("|\')embed_defaults/', $php ) && !preg_match( '/add_filter\(\s?("|\')content_width/', $php ) ) { 
    1414            $this->error[] = __( "<span class='tc-lead tc-required'>REQUIRED</span>: No content width has been defined. Example: <pre>if ( ! isset( \$content_width ) ) \$content_width = 900;</pre>", "themecheck" ); 
    1515            $ret = false; 
  • theme-check/trunk/checks/dep_recommend.php

    r365117 r386527  
    1010 
    1111        $checks = array( 
    12             array( 'get_users_of_blog' => 'get_users()', '3.1' ), 
     12            array( 'wp_timezone_supported' => 'No alternatives', '3.2' ) 
    1313            ); 
    1414 
  • theme-check/trunk/checks/deprecated.php

    r386257 r386527  
    117117            array( 'is_plugin_page' => '$plugin_page and/or get_plugin_page_hookname() hooks', '3.1' ), 
    118118            array( 'update_category_cache' => 'No alternatives', '3.1' ), 
    119             array( 'wp_timezone_supported' => 'No alternatives', '3.2' ), 
     119            array( 'get_users_of_blog' => 'get_users()', '3.1' ), 
    120120            // end wp-includes deprecated 
    121121 
  • theme-check/trunk/checks/filenames.php

    r340859 r386527  
    2121                'thumbs.db' => __( 'Windows thumbnail store', 'themecheck' ), 
    2222                'desktop.ini' => __( 'windows system file', 'themecheck' ), 
     23                'project.properties' => __( 'NetBeans Project File', 'themecheck' ), 
     24                'project.xml' => __( 'NetBeans Project File', 'themecheck' ), 
    2325                '\.kpf' => __( 'Komodo Project File', 'themecheck' ), 
    2426                '^\..*' => __( 'Hidden File', 'themecheck' ), 
  • theme-check/trunk/checks/more_deprecated.php

    r357342 r386527  
    99 
    1010        $checks = array( 
    11             'get_bloginfo\(\s?("|\')home("|\')\s?\)' => 'get_bloginfo( \'url\' )', 
    12             'bloginfo\(\s?("|\')home("|\')\s?\)' => 'bloginfo( \'url\' )' 
     11            'get_bloginfo\(\s?("|\')home("|\')\s?\)' => 'home_url()', 
     12            'bloginfo\(\s?("|\')home("|\')\s?\)' => 'echo home_url()' 
    1313            ); 
    1414 
Note: See TracChangeset for help on using the changeset viewer.