{"id":5580,"date":"2014-04-25T06:07:21","date_gmt":"2014-04-25T06:07:21","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/classes\/theme_upgrader\/current_before\/"},"modified":"2026-05-20T22:12:02","modified_gmt":"2026-05-20T22:12:02","slug":"theme_upgrader-current_before","status":"publish","type":"wp-parser-method","link":"https:\/\/developer.wordpress.org\/reference\/classes\/theme_upgrader\/current_before\/","title":{"rendered":"Theme_Upgrader::current_before()"},"excerpt":{"rendered":"<p>Turns on maintenance mode before attempting to upgrade the active theme.<\/p>\n","protected":false},"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"wp-parser-source-file":[732],"wp-parser-package":[374,3],"wp-parser-since":[29],"class_list":["post-5580","wp-parser-method","type-wp-parser-method","status-publish","hentry","wp-parser-source-file-wp-admin_includes_class-theme-upgrader-php","wp-parser-package-upgrader","wp-parser-package-wordpress","wp-parser-since-2-8-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/5580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-method"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=5580"}],"version-history":[{"count":5,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/5580\/revisions"}],"predecessor-version":[{"id":149616,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/5580\/revisions\/149616"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=5580"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=5580"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=5580"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=5580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}