mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Remove unnecessary statics
This commit is contained in:
@@ -21,7 +21,7 @@ class Display_Featured_Image_Genesis_Description {
|
||||
* @return null Return early if not a single post with an excerpt.
|
||||
*/
|
||||
|
||||
public static function do_excerpt() {
|
||||
public function do_excerpt() {
|
||||
|
||||
if ( ! is_singular() || is_front_page() ) {
|
||||
return;
|
||||
@@ -53,7 +53,7 @@ class Display_Featured_Image_Genesis_Description {
|
||||
*
|
||||
* @return null Return early if not blog/front page.
|
||||
*/
|
||||
public static function do_front_blog_excerpt() {
|
||||
public function do_front_blog_excerpt() {
|
||||
|
||||
if ( ! is_front_page() && ! is_home() ) {
|
||||
return;
|
||||
@@ -96,7 +96,7 @@ class Display_Featured_Image_Genesis_Description {
|
||||
* @return null Return early if not the correct archive page, not page one, or no term meta is set.
|
||||
*/
|
||||
|
||||
public static function do_tax_description() {
|
||||
public function do_tax_description() {
|
||||
|
||||
global $wp_query;
|
||||
|
||||
@@ -136,7 +136,7 @@ class Display_Featured_Image_Genesis_Description {
|
||||
* @return null Return early if not author archive or not page one.
|
||||
*/
|
||||
|
||||
public static function do_author_description() {
|
||||
public function do_author_description() {
|
||||
|
||||
if ( ! is_author() || get_query_var( 'paged' ) >= 2 ) {
|
||||
return;
|
||||
@@ -168,7 +168,7 @@ class Display_Featured_Image_Genesis_Description {
|
||||
* @return null Return early if not on relevant post type archive.
|
||||
*/
|
||||
|
||||
public static function do_cpt_archive_description() {
|
||||
public function do_cpt_archive_description() {
|
||||
|
||||
if ( ! is_post_type_archive() || ! genesis_has_post_type_archive_support() ) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user