Make WordPress Core

Changeset 22119


Ignore:
Timestamp:
10/04/2012 09:59:36 PM (12 years ago)
Author:
ryan
Message:

Avoid Strict Standards warnings. Props markoheijnen. see #6821

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-image-editor-gd.php

    r22094 r22119  
    3333     * @return boolean
    3434     */
    35     public static function test() {
     35    public function test() {
    3636        if ( ! extension_loaded('gd') || ! function_exists('gd_info') )
    3737            return false;
     
    100100     * @return boolean
    101101     */
    102     public static function supports_mime_type( $mime_type ) {
     102    public function supports_mime_type( $mime_type ) {
    103103        $allowed_mime_types = array( 'image/gif', 'image/png', 'image/jpeg' );
    104104
  • trunk/wp-includes/class-wp-image-editor-imagick.php

    r22098 r22119  
    3434     * @return boolean
    3535     */
    36     public static function test() {
     36    public function test() {
    3737        if ( ! extension_loaded( 'imagick' ) )
    3838            return false;
     
    144144     * @return boolean
    145145     */
    146     public static function supports_mime_type( $mime_type ) {
     146    public function supports_mime_type( $mime_type ) {
    147147        if ( ! $mime_type )
    148148            return false;
  • trunk/wp-includes/class-wp-image-editor.php

    r22094 r22119  
    7777    }
    7878
    79     abstract public static function test(); // returns bool
     79    abstract public function test(); // returns bool
    8080    abstract protected function load(); // returns bool|WP_Error
    81     abstract public static function supports_mime_type( $mime_type ); // returns bool
     81    abstract public function supports_mime_type( $mime_type ); // returns bool
    8282    abstract public function resize( $max_w, $max_h, $crop = false );
    8383    abstract public function multi_resize( $sizes );
Note: See TracChangeset for help on using the changeset viewer.