Making WordPress.org


Ignore:
Timestamp:
06/04/2019 07:02:56 AM (4 years ago)
Author:
dd32
Message:

Theme Directory: Add the requires and requires_php to the Theme objects.

Missed in [8895].
Props flixos90 for initial work, dd32.
See #3718.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php

    r1321 r8913  
    6969            case 'ticket' :
    7070                return $this->wp_post->_ticket_id[ $version ];
     71            case 'requires':
     72                $values = $this->wp_post->_requires;
     73                if ( isset( $values[ $version ] ) ) {
     74                    return $values[ $version ];
     75                }
     76                return '';
     77            case 'requires-php':
     78                $values = $this->wp_post->_requires_php;
     79                if ( isset( $values[ $version ] ) ) {
     80                    return $values[ $version ];
     81                }
     82                return '';
    7183            default:
    7284                return $this->wp_post->$name;
Note: See TracChangeset for help on using the changeset viewer.