return $this->url;
}
+ /*
+ * Get short description URL for a files based on the page ID
+ *
+ * @return string|null
+ * @since 1.27
+ */
+ public function getDescriptionShortUrl() {
+ return null;
+ }
+
/**
* Return a fully-qualified URL to the file.
* Upload URL paths _may or may not_ be fully qualified, so
if ( !$this->repo
|| !isset( $params['physicalWidth'] )
|| !isset( $params['physicalHeight'] )
- || !( $bucket = $this->getThumbnailBucket( $params['physicalWidth'] ) )
- || $bucket == $params['physicalWidth'] ) {
+ ) {
+ return false;
+ }
+
+ $bucket = $this->getThumbnailBucket( $params['physicalWidth'] );
+
+ if ( !$bucket || $bucket == $params['physicalWidth'] ) {
return false;
}