Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: image_make_intermediate_size

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
689
690           // Set correct file permissions.
691           $stat  = stat( dirname( $filename ) );
692           $perms = $stat['mode'] & 0000666; // Same permissions as parent folder, strip off the executable bits.
693           chmod( $filename, $perms );
694
695           return array(
696                'path'      => $filename,
697                /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
698                'file'      => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ),
699                'width'     => $this->size['width'],
700                'height'    => $this->size['height'],
701                'mime-type' => $mime_type,
702           );
703      }
704
705      /**
706       * Streams current image to browser.
707       *